|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GraphicIcon
The GraphicIcon defines a common abstraction for implementations that render icons on a drawing surface.
The rotation of the icon with respect to an external Coordinate Reference System is measured positively as a clockwise angle, starting from a reference line within the Coordinate Reference System and ending at the x-axis of the local Cartesian plane.
| Field Summary |
|---|
| Fields inherited from interface Graphic |
|---|
DEFAULT_AUTO_EDIT, DEFAULT_BLINK_PATTERN, DEFAULT_BLINKING, DEFAULT_DRAG_SELECTABLE, DEFAULT_MAX_SCALE, DEFAULT_MIN_SCALE, DEFAULT_PICKABLE, DEFAULT_SELECTED, DEFAULT_VISIBLE, DEFAULT_Z_ORDER |
| Method Summary | |
|---|---|
Icon |
getIcon()
Returns the icon represented by this GraphicIcon. |
Point2D |
getOffset()
Returns the location in the icon (as an offset from the upper left) that will be drawn over the icon's position. |
PointSymbolizer |
getPointSymbolizer()
Returns the GraphicStyle for this GraphicIcon,
which is required to be a PointSymbolizer. |
DirectPosition |
getPosition()
Returns the DirectPosition corresponding to the position of the icon. |
double |
getRotation(Unit unit)
Gets the angle by which to rotate the icon. |
boolean |
isAllowingRotation()
Indicates whether this primitive is displaying anchor handles that allow the user to change the rotation of this icon. |
void |
setAllowingRotation(boolean newValue)
Sets the boolean that indicates whether this primitive is displaying anchor handles that allow the user to change the rotation of this icon. |
void |
setIcon(Icon icon)
Sets the icon represented by this GraphicIcon. |
void |
setOffset(Point2D offset)
Sets the location in the icon (as an offset from the upper left) that will be drawn over the icon's position. |
void |
setPosition(DirectPosition coord)
Sets the DirectPosition corresponding to the position of the icon. |
void |
setRotation(double angle,
Unit unit)
Sets the angle by which to rotate the icon. |
| Method Detail |
|---|
void setIcon(Icon icon)
icon - the icon to be rendered.Icon getIcon()
void setPosition(DirectPosition coord)
coord - the wrapper for the positon.DirectPosition getPosition()
void setRotation(double angle,
Unit unit)
angle - the new rotation.unit - the Unit for the angle value.double getRotation(Unit unit)
unit - the Unit for the angle value.
void setOffset(Point2D offset)
Point2D getOffset()
PointSymbolizer getPointSymbolizer()
GraphicStyle for this GraphicIcon,
which is required to be a PointSymbolizer.
GraphicStyle.boolean isAllowingRotation()
void setAllowingRotation(boolean newValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||