Class AreaElement
java.lang.Object
org.openstreetmap.josm.gui.mappaint.styleelement.StyleElement
org.openstreetmap.josm.gui.mappaint.styleelement.AreaElement
- All Implemented Interfaces:
StyleKeys
This is the style that defines how an area is filled.
-
Field Summary
FieldsModifier and TypeFieldDescriptionIf fillImage == null, color is the fill-color, otherwise an arbitrary color value sampled from the fillImage.private static final IntegerPropertyThe default opacity for the fill.Fill the area only partially from the bordersAreas smaller than this are filled no matter what valueextenthas.An image to cover this area.Fields inherited from class org.openstreetmap.josm.gui.mappaint.styleelement.StyleElement
defaultSelectedHandling, ICON_HEIGHT_IDX, ICON_IMAGE_IDX, ICON_OFFSET_X_IDX, ICON_OFFSET_Y_IDX, ICON_OPACITY_IDX, ICON_WIDTH_IDX, isModifier, majorZIndex, objectZIndex, zIndexFields inherited from interface org.openstreetmap.josm.gui.mappaint.StyleKeys
COLOR, 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, TEXT_ROTATION, WAY_DIRECTION_ARROWS, WIDTH, Z_INDEX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AreaElementcreate(Environment env) Create a newAreaElementbooleaninthashCode()voidpaintPrimitive(IPrimitive osm, MapPaintSettings paintSettings, StyledMapRenderer painter, boolean selected, boolean outermember, boolean member) draws a primitivetoString()Methods inherited from class org.openstreetmap.josm.gui.mappaint.styleelement.StyleElement
getFont, getWidth, isProperLineStyle
-
Field Details
-
DEFAULT_FILL_ALPHA
The default opacity for the fill. For historical reasons in range 0.255. -
color
If fillImage == null, color is the fill-color, otherwise an arbitrary color value sampled from the fillImage. The color may be fully transparent to indicate that the area should not be filled. -
fillImage
An image to cover this area. May be null to disable this feature. -
extent
Fill the area only partially from the bordersPublic access is discouraged.
-
extentThreshold
Areas smaller than this are filled no matter what valueextenthas.Public access is discouraged.
-
-
Constructor Details
-
AreaElement
-
-
Method Details
-
create
Create a newAreaElement- Parameters:
env- The current style definitions- Returns:
- The area element or
nullif the area should not be filled.
-
paintPrimitive
public void paintPrimitive(IPrimitive osm, MapPaintSettings paintSettings, StyledMapRenderer painter, boolean selected, boolean outermember, boolean member) Description copied from class:StyleElementdraws a primitive- Specified by:
paintPrimitivein classStyleElement- Parameters:
osm- 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 relation
-
equals
- Overrides:
equalsin classStyleElement
-
hashCode
- Overrides:
hashCodein classStyleElement
-
toString
- Overrides:
toStringin classStyleElement
-