public class BoxTextElemStyle extends ElemStyle
Modifier and Type | Class and Description |
---|---|
static interface |
BoxTextElemStyle.BoxProvider |
static class |
BoxTextElemStyle.BoxProviderResult |
static class |
BoxTextElemStyle.HorizontalTextAlignment |
static class |
BoxTextElemStyle.SimpleBoxProvider |
static class |
BoxTextElemStyle.VerticalTextAlignment |
Modifier and Type | Field and Description |
---|---|
protected java.awt.Rectangle |
box |
protected BoxTextElemStyle.BoxProvider |
boxProvider |
private static java.awt.Color |
DEFAULT_TEXT_COLOR |
BoxTextElemStyle.HorizontalTextAlignment |
hAlign |
static BoxTextElemStyle |
SIMPLE_NODE_TEXT_ELEMSTYLE |
TextElement |
text |
BoxTextElemStyle.VerticalTextAlignment |
vAlign |
static java.awt.Rectangle |
ZERO_BOX |
ICON_KEYS, isModifier, major_z_index, object_z_index, REPEAT_IMAGE_KEYS, z_index
COLOR, DASHES, DASHES_BACKGROUND_COLOR, DASHES_BACKGROUND_OPACITY, DASHES_OFFSET, FILL_COLOR, FILL_IMAGE, FILL_OPACITY, ICON_HEIGHT_IDX, ICON_IMAGE, ICON_IMAGE_IDX, ICON_OPACITY_IDX, ICON_WIDTH_IDX, MODIFIER, OBJECT_Z_INDEX, OFFSET, OPACITY, REAL_WIDTH, REPEAT_IMAGE, REPEAT_IMAGE_ALIGN, REPEAT_IMAGE_OFFSET, REPEAT_IMAGE_PHASE, REPEAT_IMAGE_SPACING, TEXT, TEXT_POSITION, WIDTH, Z_INDEX
Constructor and Description |
---|
BoxTextElemStyle(Cascade c,
TextElement text,
BoxTextElemStyle.BoxProvider boxProvider,
java.awt.Rectangle box,
BoxTextElemStyle.HorizontalTextAlignment hAlign,
BoxTextElemStyle.VerticalTextAlignment vAlign) |
Modifier and Type | Method and Description |
---|---|
static BoxTextElemStyle |
create(Environment env,
BoxTextElemStyle.BoxProvider boxProvider) |
static BoxTextElemStyle |
create(Environment env,
BoxTextElemStyle.BoxProvider boxProvider,
java.awt.Rectangle box) |
static BoxTextElemStyle |
create(Environment env,
java.awt.Rectangle box) |
boolean |
equals(java.lang.Object obj) |
java.awt.Rectangle |
getBox() |
int |
hashCode() |
private static void |
initDefaultParameters() |
void |
paintPrimitive(OsmPrimitive osm,
MapPaintSettings settings,
StyledMapRenderer painter,
boolean selected,
boolean member)
draws a primitive
|
java.lang.String |
toString() |
getFont, getWidth, isProperLineStyle
public static final java.awt.Rectangle ZERO_BOX
public TextElement text
protected BoxTextElemStyle.BoxProvider boxProvider
protected java.awt.Rectangle box
public BoxTextElemStyle.HorizontalTextAlignment hAlign
public BoxTextElemStyle.VerticalTextAlignment vAlign
public static final BoxTextElemStyle SIMPLE_NODE_TEXT_ELEMSTYLE
private static java.awt.Color DEFAULT_TEXT_COLOR
public BoxTextElemStyle(Cascade c, TextElement text, BoxTextElemStyle.BoxProvider boxProvider, java.awt.Rectangle box, BoxTextElemStyle.HorizontalTextAlignment hAlign, BoxTextElemStyle.VerticalTextAlignment vAlign)
public static BoxTextElemStyle create(Environment env, BoxTextElemStyle.BoxProvider boxProvider)
public static BoxTextElemStyle create(Environment env, java.awt.Rectangle box)
public static BoxTextElemStyle create(Environment env, BoxTextElemStyle.BoxProvider boxProvider, java.awt.Rectangle box)
public java.awt.Rectangle getBox()
private static void initDefaultParameters()
public void paintPrimitive(OsmPrimitive osm, MapPaintSettings settings, StyledMapRenderer painter, boolean selected, boolean member)
ElemStyle
paintPrimitive
in class ElemStyle
selected
- true, if primitive is selectedmember
- true, if primitive is not selected and member of a selected relation