public class AreaIconElement extends StyleElement
| Modifier and Type | Field and Description |
|---|---|
private MapImage |
iconImage
The icon that is displayed on the center of the area.
|
private RotationAngle |
iconImageAngle
The rotation of the
iconImageAngle |
private PositionForAreaStrategy |
iconPosition
The position of the icon inside the area.
|
defaultSelectedHandling, ICON_HEIGHT_IDX, ICON_IMAGE_IDX, ICON_OFFSET_X_IDX, ICON_OFFSET_Y_IDX, ICON_OPACITY_IDX, ICON_WIDTH_IDX, isModifier, majorZIndex, objectZIndex, zIndexCOLOR, DASHES, DASHES_BACKGROUND_COLOR, DASHES_BACKGROUND_OPACITY, DASHES_OFFSET, FILL_COLOR, FILL_EXTENT, FILL_EXTENT_THRESHOLD, FILL_IMAGE, FILL_OPACITY, FONT_FAMILY, FONT_SIZE, FONT_STYLE, FONT_WEIGHT, ICON_HEIGHT, ICON_IMAGE, ICON_OFFSET_X, ICON_OFFSET_Y, ICON_OPACITY, ICON_POSITION, ICON_ROTATION, ICON_WIDTH, LINECAP, LINEJOIN, MAJOR_Z_INDEX, MITERLIMIT, MODIFIER, OBJECT_Z_INDEX, OFFSET, OPACITY, REAL_WIDTH, REPEAT_IMAGE, REPEAT_IMAGE_ALIGN, REPEAT_IMAGE_HEIGHT, REPEAT_IMAGE_OFFSET, REPEAT_IMAGE_OPACITY, REPEAT_IMAGE_PHASE, REPEAT_IMAGE_SPACING, REPEAT_IMAGE_WIDTH, TEXT, TEXT_ANCHOR_HORIZONTAL, TEXT_ANCHOR_VERTICAL, TEXT_COLOR, TEXT_HALO_COLOR, TEXT_HALO_OPACITY, TEXT_HALO_RADIUS, TEXT_OFFSET, TEXT_OFFSET_X, TEXT_OFFSET_Y, TEXT_OPACITY, TEXT_POSITION, WAY_DIRECTION_ARROWS, WIDTH, Z_INDEX| Modifier | Constructor and Description |
|---|---|
protected |
AreaIconElement(Cascade c,
MapImage iconImage,
RotationAngle iconImageAngle,
PositionForAreaStrategy iconPosition) |
| Modifier and Type | Method and Description |
|---|---|
static AreaIconElement |
create(Environment env)
Create a new
AreaIconElement |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
paintPrimitive(IPrimitive osm,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member)
draws a primitive
|
java.lang.String |
toString() |
getFont, getWidth, isProperLineStyleprivate final RotationAngle iconImageAngle
iconImageAngleprivate final PositionForAreaStrategy iconPosition
protected AreaIconElement(Cascade c, MapImage iconImage, RotationAngle iconImageAngle, PositionForAreaStrategy iconPosition)
public void paintPrimitive(IPrimitive osm, MapPaintSettings paintSettings, StyledMapRenderer painter, boolean selected, boolean outermember, boolean member)
StyleElementpaintPrimitive in class StyleElementosm - primitive to drawpaintSettings - paint settingspainter - painterselected - true, if primitive is selectedoutermember - true, if primitive is not selected and outer member of a selected multipolygon relationmember - true, if primitive is not selected and member of a selected relationpublic static AreaIconElement create(Environment env)
AreaIconElementenv - The current style definitionsnull if there is no icon.public int hashCode()
hashCode in class StyleElementpublic boolean equals(java.lang.Object obj)
equals in class StyleElementpublic java.lang.String toString()
toString in class StyleElement