Uses of Class
org.openstreetmap.josm.gui.mappaint.Cascade
-
Packages that use Cascade Package Description org.openstreetmap.josm.gui.mappaint Drawing system allowing to display and render OSM map data in a user-friendly and customizable way, through map styles.
Two implementations are provided: XML: this was the system used by default JOSM map style for a long time.org.openstreetmap.josm.gui.mappaint.mapcss Drawing system based on MapCSS map styles.org.openstreetmap.josm.gui.mappaint.styleelement Style elements defining how a map paint style is rendered. -
-
Uses of Cascade in org.openstreetmap.josm.gui.mappaint
Fields in org.openstreetmap.josm.gui.mappaint with type parameters of type Cascade Modifier and Type Field Description private java.util.Map<java.lang.String,Cascade>
MultiCascade. layers
Methods in org.openstreetmap.josm.gui.mappaint that return Cascade Modifier and Type Method Description Cascade
Environment. getCascade()
Gets the current cascade for the current layer of this environmentCascade
Environment. getCascade(java.lang.String layer)
Gets the current cascade for a given layerCascade
MultiCascade. getCascade(java.lang.String layer)
Read-only version ofMultiCascade.getOrCreateCascade(java.lang.String)
.Cascade
MultiCascade. getOrCreateCascade(java.lang.String layer)
Return the cascade with the given name.Methods in org.openstreetmap.josm.gui.mappaint that return types with arguments of type Cascade Modifier and Type Method Description java.util.Collection<java.util.Map.Entry<java.lang.String,Cascade>>
MultiCascade. getLayers()
Gets all cascades for the known layersMethods in org.openstreetmap.josm.gui.mappaint with parameters of type Cascade Modifier and Type Method Description static StyleSetting.StyleSettingGroup
StyleSetting.StyleSettingGroup. create(Cascade c, StyleSource parentStyle, java.lang.String key)
Creates a newStyleSettingGroup
.static StyleSetting
StyleSettingFactory. create(Cascade c, StyleSource parentStyle, java.lang.String key)
Creates a newStyleSetting
based on the specified type byc
.private static <T> StyleSetting
StyleSettingFactory. forLabelAndDefault(Cascade c, java.lang.Class<T> type, java.util.function.BiFunction<java.lang.String,T,StyleSetting> function)
Constructors in org.openstreetmap.josm.gui.mappaint with parameters of type Cascade Constructor Description Cascade(Cascade other)
Constructs a newCascade
from existing one. -
Uses of Cascade in org.openstreetmap.josm.gui.mappaint.mapcss
Methods in org.openstreetmap.josm.gui.mappaint.mapcss that return Cascade Modifier and Type Method Description private Cascade
MapCSSStyleSource. constructSpecial(java.lang.String type)
-
Uses of Cascade in org.openstreetmap.josm.gui.mappaint.styleelement
Methods in org.openstreetmap.josm.gui.mappaint.styleelement with parameters of type Cascade Modifier and Type Method Description protected static LabelCompositionStrategy
TextLabel. buildLabelCompositionStrategy(Cascade c, boolean defaultAnnotate)
Derives a suitable label composition strategy from the style properties inc
.private static java.lang.Float
LineElement. computeOffset(LineElement.LineType type, Cascade c, Cascade cDef, java.lang.Float width)
private static float
LineElement. computeRealWidth(Environment env, LineElement.LineType type, Cascade c)
private static java.lang.Float
LineElement. computeWidth(LineElement.LineType type, Cascade c, Cascade cDef)
protected static java.awt.Font
StyleElement. getFont(Cascade c, java.lang.String s)
static java.awt.geom.Point2D
TextLabel. getTextOffset(Cascade c)
Gets the text-offset property from a cascadeprotected static java.lang.Float
StyleElement. getWidth(Cascade c, java.lang.String key, java.lang.Float relativeTo)
Get a property value of type WidthConstructors in org.openstreetmap.josm.gui.mappaint.styleelement with parameters of type Cascade Constructor Description AreaElement(Cascade c, java.awt.Color color, MapImage fillImage, java.lang.Float extent, java.lang.Float extentThreshold)
AreaIconElement(Cascade c, MapImage iconImage, RotationAngle iconImageAngle, PositionForAreaStrategy iconPosition)
BoxTextElement(Cascade c, TextLabel text, BoxTextElement.BoxProvider boxProvider, int offsetX, int offsetY, BoxTextElement.HorizontalTextAlignment hAlign, BoxTextElement.VerticalTextAlignment vAlign)
Create a newBoxTextElement
LineElement(Cascade c, float defaultMajorZindex, java.awt.BasicStroke line, java.awt.Color color, java.awt.BasicStroke dashesLine, java.awt.Color dashesBackground, float offset, float realWidth, boolean wayDirectionArrows)
NodeElement(Cascade c, MapImage mapImage, Symbol symbol, float defaultMajorZindex, RotationAngle rotationAngle)
RepeatImageElement(Cascade c, MapImage pattern, float offset, float spacing, float phase, float opacity, RepeatImageElement.LineImageAlignment align)
Create a new image elementStyleElement(Cascade c, float defaultMajorZindex)
TextElement(Cascade c, TextLabel text, PositionForAreaStrategy labelPositionStrategy)
Create a new way/area text element definition
-