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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPaletteIcon(SquareIcon[] icons, PaletteIcon.Orientation orientation) PaletteIcon(Palette palette, PaletteIcon.Orientation orientation) -
Method Summary
Modifier and TypeMethodDescriptiongetColorAt(int x, int y) intgetColorIndexAt(int x, int y) intReturns the icon's height.intReturns the icon's width.voidDraw 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:
getIconHeightin interfaceIcon- Returns:
- an int specifying the fixed height of the icon.
-
getIconWidth
public int getIconWidth()Returns the icon's width.- Specified by:
getIconWidthin 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.
-