Package repast.simphony.gis.styleEditor
Class PaletteIcon
- java.lang.Object
-
- repast.simphony.gis.styleEditor.PaletteIcon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PaletteIcon.Orientation
-
Constructor Summary
Constructors Constructor Description PaletteIcon(SquareIcon[] icons, PaletteIcon.Orientation orientation)
PaletteIcon(Palette palette, PaletteIcon.Orientation orientation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getColorAt(int x, int y)
int
getColorIndexAt(int x, int y)
int
getIconHeight()
Returns the icon's height.int
getIconWidth()
Returns the icon's width.void
paintIcon(Component c, Graphics g, int x, int y)
Draw the icon at the specified location.
-
-
-
Constructor Detail
-
PaletteIcon
public PaletteIcon(Palette palette, PaletteIcon.Orientation orientation)
-
PaletteIcon
public PaletteIcon(SquareIcon[] icons, PaletteIcon.Orientation orientation)
-
-
Method Detail
-
getColorAt
public Color getColorAt(int x, int y)
-
getColorIndexAt
public int getColorIndexAt(int x, int y)
-
getIconHeight
public int getIconHeight()
Returns the icon's height.- Specified by:
getIconHeight
in interfaceIcon
- Returns:
- an int specifying the fixed height of the icon.
-
getIconWidth
public int getIconWidth()
Returns the icon's width.- Specified by:
getIconWidth
in interfaceIcon
- Returns:
- an int specifying the fixed width of the icon.
-
-