Package | Description |
---|---|
org.openstreetmap.josm.gui.mappaint.styleelement |
Style elements defining how a map paint style is rendered.
|
Modifier and Type | Class and Description |
---|---|
static class |
LabelCompositionStrategy.DeriveLabelFromNameTagsCompositionStrategy
Strategy where the label is given by the value of one of the configured "name tags".
|
static class |
LabelCompositionStrategy.StaticLabelCompositionStrategy
Strategy where the label is given by a static text specified in the MapCSS style file.
|
static class |
LabelCompositionStrategy.TagLookupCompositionStrategy
Strategy where the label is given by the content of a tag whose name specified in the MapCSS style file.
|
Modifier and Type | Field and Description |
---|---|
static LabelCompositionStrategy |
TextLabel.AUTO_LABEL_COMPOSITION_STRATEGY
The default strategy to use when determining the label of a element.
|
LabelCompositionStrategy |
TextLabel.labelCompositionStrategy
The strategy for building the actual label value for a given a
OsmPrimitive . |
Modifier and Type | Method and Description |
---|---|
protected static LabelCompositionStrategy |
TextLabel.buildLabelCompositionStrategy(Cascade c,
boolean defaultAnnotate)
Derives a suitable label composition strategy from the style properties in
c . |
Constructor and Description |
---|
TextLabel(LabelCompositionStrategy strategy,
java.awt.Font font,
java.awt.Color color,
java.lang.Float haloRadius,
java.awt.Color haloColor)
Creates a new text element
|