public class LineElement extends StyleElement
Modifier and Type | Class and Description |
---|---|
static class |
LineElement.LineType |
Modifier and Type | Field and Description |
---|---|
Color |
color |
Color |
dashesBackground |
private BasicStroke |
dashesLine |
private BasicStroke |
line |
float |
offset |
float |
realWidth |
static LineElement |
UNTAGGED_WAY |
ICON_HEIGHT_IDX, ICON_IMAGE_IDX, ICON_KEYS, ICON_OFFSET_X_IDX, ICON_OFFSET_Y_IDX, ICON_OPACITY_IDX, ICON_WIDTH_IDX, isModifier, majorZIndex, objectZIndex, REPEAT_IMAGE_KEYS, zIndex
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_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, WIDTH, Z_INDEX
Modifier | Constructor and Description |
---|---|
protected |
LineElement(Cascade c,
float default_major_z_index,
BasicStroke line,
Color color,
BasicStroke dashesLine,
Color dashesBackground,
float offset,
float realWidth) |
Modifier and Type | Method and Description |
---|---|
static LineElement |
createCasing(Environment env) |
private static LineElement |
createImpl(Environment env,
LineElement.LineType type) |
static LineElement |
createLeftCasing(Environment env) |
static LineElement |
createLine(Environment env) |
static LineElement |
createRightCasing(Environment env) |
static LineElement |
createSimpleLineStyle(Color color,
boolean isAreaEdge) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isProperLineStyle() |
String |
linecapToString(int linecap) |
String |
linejoinToString(int linejoin) |
void |
paintPrimitive(OsmPrimitive primitive,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member)
draws a primitive
|
String |
toString() |
getFont, getWidth
public static final LineElement UNTAGGED_WAY
private BasicStroke line
public Color dashesBackground
public float offset
public float realWidth
private BasicStroke dashesLine
protected LineElement(Cascade c, float default_major_z_index, BasicStroke line, Color color, BasicStroke dashesLine, Color dashesBackground, float offset, float realWidth)
public static LineElement createSimpleLineStyle(Color color, boolean isAreaEdge)
public static LineElement createLine(Environment env)
public static LineElement createLeftCasing(Environment env)
public static LineElement createRightCasing(Environment env)
public static LineElement createCasing(Environment env)
private static LineElement createImpl(Environment env, LineElement.LineType type)
public void paintPrimitive(OsmPrimitive primitive, MapPaintSettings paintSettings, StyledMapRenderer painter, boolean selected, boolean outermember, boolean member)
StyleElement
paintPrimitive
in class StyleElement
primitive
- 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 boolean isProperLineStyle()
isProperLineStyle
in class StyleElement
public boolean equals(Object obj)
equals
in class StyleElement
public int hashCode()
hashCode
in class StyleElement
public String toString()
toString
in class StyleElement
public String linejoinToString(int linejoin)
public String linecapToString(int linecap)