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 Rectangle |
box |
protected BoxTextElemStyle.BoxProvider |
boxProvider |
private static Color |
DEFAULT_TEXT_COLOR |
BoxTextElemStyle.HorizontalTextAlignment |
hAlign |
static BoxTextElemStyle |
SIMPLE_NODE_TEXT_ELEMSTYLE |
TextElement |
text |
BoxTextElemStyle.VerticalTextAlignment |
vAlign |
static 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,
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,
Rectangle box) |
static BoxTextElemStyle |
create(Environment env,
Rectangle box) |
boolean |
equals(Object obj) |
Rectangle |
getBox() |
int |
hashCode() |
private static void |
initDefaultParameters() |
void |
paintPrimitive(OsmPrimitive osm,
MapPaintSettings settings,
StyledMapRenderer painter,
boolean selected,
boolean member)
draws a primitive
|
String |
toString() |
getFont, getWidth, isProperLineStyle
public TextElement text
protected BoxTextElemStyle.BoxProvider boxProvider
public BoxTextElemStyle.HorizontalTextAlignment hAlign
public BoxTextElemStyle.VerticalTextAlignment vAlign
public static final BoxTextElemStyle SIMPLE_NODE_TEXT_ELEMSTYLE
private static Color DEFAULT_TEXT_COLOR
public BoxTextElemStyle(Cascade c, TextElement text, BoxTextElemStyle.BoxProvider boxProvider, Rectangle box, BoxTextElemStyle.HorizontalTextAlignment hAlign, BoxTextElemStyle.VerticalTextAlignment vAlign)
public static BoxTextElemStyle create(Environment env, BoxTextElemStyle.BoxProvider boxProvider)
public static BoxTextElemStyle create(Environment env, Rectangle box)
public static BoxTextElemStyle create(Environment env, BoxTextElemStyle.BoxProvider boxProvider, Rectangle box)
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