Constructor and Description |
---|
ZoneIcon(Dimension size,
Rectangle[] rects,
int iHighlight)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Icon |
createZoneIcon(Dimension size,
int border,
uk.ac.starlink.ttools.plot2.Gang gang,
int izone)
Creates a zone icon from a gang.
|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
public ZoneIcon(Dimension size, Rectangle[] rects, int iHighlight)
size
- icon sizerects
- zone rectanglesiHighlight
- index into rects
giving the one to
highlight (may be negative for no highlight)createZoneIcon(java.awt.Dimension, int, uk.ac.starlink.ttools.plot2.Gang, int)
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public static Icon createZoneIcon(Dimension size, int border, uk.ac.starlink.ttools.plot2.Gang gang, int izone)
size
- total icon sizeborder
- empty border in pixels around all sidesgang
- gang defining zone positionsizone
- index of zone in gang to highlight
(may be null for no highlight)Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.