Package repast.simphony.gis.styleEditor
Class PaletteIcon
java.lang.Object
repast.simphony.gis.styleEditor.PaletteIcon
- All Implemented Interfaces:
Icon
- Author:
- Nick Collier
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionPaletteIcon
(SquareIcon[] icons, PaletteIcon.Orientation orientation) PaletteIcon
(Palette palette, PaletteIcon.Orientation orientation) -
Method Summary
Modifier and TypeMethodDescriptiongetColorAt
(int x, int y) int
getColorIndexAt
(int x, int y) int
Returns the icon's height.int
Returns the icon's width.void
Draw the icon at the specified location.
-
Constructor Details
-
PaletteIcon
-
PaletteIcon
-
-
Method Details
-
getColorAt
-
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.
-
paintIcon
Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.
-