|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.gui.mappaint.ElemStyle
org.openstreetmap.josm.gui.mappaint.BoxTextElemStyle
public class BoxTextElemStyle
Text style attached to a style with a bounding box, like an icon or a symbol.
| Nested Class Summary | |
|---|---|
static interface |
BoxTextElemStyle.BoxProvider
|
static class |
BoxTextElemStyle.BoxProviderResult
|
static class |
BoxTextElemStyle.HorizontalTextAlignment
|
static class |
BoxTextElemStyle.SimpleBoxProvider
|
static class |
BoxTextElemStyle.VerticalTextAlignment
|
| Field Summary | |
|---|---|
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
|
| Fields inherited from class org.openstreetmap.josm.gui.mappaint.ElemStyle |
|---|
isModifier, major_z_index, object_z_index, z_index |
| Fields inherited from interface org.openstreetmap.josm.gui.mappaint.StyleKeys |
|---|
COLOR, DASHES, DASHES_BACKGROUND_COLOR, DASHES_BACKGROUND_OPACITY, DASHES_OFFSET, FILL_COLOR, FILL_IMAGE, FILL_OPACITY, ICON_IMAGE, MODIFIER, OBJECT_Z_INDEX, OFFSET, OPACITY, REAL_WIDTH, TEXT, TEXT_POSITION, WIDTH, Z_INDEX |
| Constructor Summary | |
|---|---|
BoxTextElemStyle(Cascade c,
TextElement text,
BoxTextElemStyle.BoxProvider boxProvider,
java.awt.Rectangle box,
BoxTextElemStyle.HorizontalTextAlignment hAlign,
BoxTextElemStyle.VerticalTextAlignment vAlign)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.openstreetmap.josm.gui.mappaint.ElemStyle |
|---|
getFont, getWidth, isProperLineStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public BoxTextElemStyle(Cascade c,
TextElement text,
BoxTextElemStyle.BoxProvider boxProvider,
java.awt.Rectangle box,
BoxTextElemStyle.HorizontalTextAlignment hAlign,
BoxTextElemStyle.VerticalTextAlignment vAlign)
| Method Detail |
|---|
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 ElemStyleselected - true, if primitive is selectedmember - true, if primitive is not selected and member of a selected relationpublic boolean equals(java.lang.Object obj)
equals in class ElemStylepublic int hashCode()
hashCode in class ElemStylepublic java.lang.String toString()
toString in class ElemStyle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||