Package | Description |
---|---|
org.openstreetmap.josm.data.validation.tests | |
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 |
Modifier and Type | Method and Description |
---|---|
(package private) TestError |
MapCSSTagChecker.TagCheck.getErrorForPrimitive(OsmPrimitive p,
Selector matchingSelector,
Environment env) |
(package private) Selector |
MapCSSTagChecker.TagCheck.whichSelectorMatchesEnvironment(Environment env) |
Modifier and Type | Method and Description |
---|---|
Environment |
Environment.withChild(OsmPrimitive child)
Creates a clone of this environment, with the specified child.
|
Environment |
Environment.withChildAndIndexAndLinkContext(OsmPrimitive child,
int index,
int count)
Creates a clone of this environment, with the specified child, index, and context set to
Condition.Context.LINK . |
Environment |
Environment.withContext(Condition.Context context)
Creates a clone of this environment, with the specified
Condition.Context . |
Environment |
Environment.withIndex(int index,
int count)
Creates a clone of this environment, with the specified index.
|
Environment |
Environment.withLinkContext()
Creates a clone of this environment, with context set to
Condition.Context.LINK . |
Environment |
Environment.withParent(OsmPrimitive parent)
Creates a clone of this environment, with the specified parent.
|
Environment |
Environment.withParentAndIndexAndLinkContext(OsmPrimitive parent,
int index,
int count)
Creates a clone of this environment, with the specified parent, index, and context set to
Condition.Context.LINK . |
Environment |
Environment.withPrimitive(OsmPrimitive osm)
Creates a clone of this environment, with the specified primitive.
|
Constructor and Description |
---|
Environment(Environment other)
Creates a clone of the environment
other . |
Modifier and Type | Field and Description |
---|---|
private Environment |
Selector.ChildOrParentSelector.MatchingReferrerFinder.e |
protected Environment |
Selector.ChildOrParentSelector.AbstractFinder.e |
Modifier and Type | Method and Description |
---|---|
(package private) static boolean |
Condition.PseudoClasses._new(Environment e)
;new tests whether the object is new. |
(package private) static boolean |
Condition.PseudoClasses.anticlockwise(Environment e)
anticlockwise whether the way is closed and oriented anticlockwise,
or non-closed and the 1st, 2nd and last node are in anticlockwise order. |
abstract boolean |
Condition.applies(Environment e) |
boolean |
Condition.SimpleKeyValueCondition.applies(Environment e) |
boolean |
Condition.KeyValueCondition.applies(Environment env) |
boolean |
Condition.KeyValueRegexpCondition.applies(Environment env) |
boolean |
Condition.RoleCondition.applies(Environment env) |
boolean |
Condition.IndexCondition.applies(Environment env) |
boolean |
Condition.KeyCondition.applies(Environment e) |
boolean |
Condition.ClassCondition.applies(Environment env) |
boolean |
Condition.PseudoClassCondition.applies(Environment e) |
boolean |
Condition.OpenEndPseudoClassCondition.applies(Environment e) |
boolean |
Condition.ExpressionCondition.applies(Environment env) |
static java.lang.Float |
ExpressionFactory.Functions.areasize(Environment env)
Returns the area of a closed way or multipolygon in square meters or
null . |
(package private) static boolean |
Condition.PseudoClasses.areaStyle(Environment e)
:area-style tests whether the object has an area style. |
static java.lang.String |
ExpressionFactory.Functions.child_tag(Environment env,
java.lang.String key)
Gets the value of the key
key from the object's child. |
(package private) static boolean |
Condition.PseudoClasses.clockwise(Environment e)
clockwise whether the way is closed and oriented clockwise,
or non-closed and the 1st, 2nd and last node are in clockwise order. |
(package private) static boolean |
Condition.PseudoClasses.closed(Environment e)
closed tests whether the way is closed or the relation is a closed multipolygon |
(package private) static boolean |
Condition.PseudoClasses.closed2(Environment e) |
(package private) static boolean |
Condition.PseudoClasses.completely_downloaded(Environment e) |
(package private) static boolean |
Condition.PseudoClasses.connection(Environment e)
:connection tests whether the object is a connection node. |
java.lang.Object |
ExpressionFactory.NullExpression.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.CondOperator.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.AndOperator.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.OrOperator.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.LengthFunction.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.MinMaxFunction.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.ParameterFunction.evaluate(Environment env) |
java.lang.Object |
ExpressionFactory.ArrayFunction.evaluate(Environment env) |
java.lang.Object |
Expression.evaluate(Environment env)
Evaluate this expression.
|
java.lang.Object |
LiteralExpression.evaluate(Environment env) |
void |
Instruction.execute(Environment env) |
void |
Instruction.AssignmentInstruction.execute(Environment env) |
void |
MapCSSRule.execute(Environment env)
Executes the instructions against the environment
env |
void |
MapCSSRule.Declaration.execute(Environment env)
Executes the instructions against the environment
env |
java.lang.String |
Subpart.getId(Environment env) |
java.lang.String |
Subpart.StringSubpart.getId(Environment env) |
java.lang.String |
Subpart.ExpressionSubpart.getId(Environment env) |
static boolean |
ExpressionFactory.Functions.has_tag_key(Environment env,
java.lang.String key)
Determines whether the object has a tag with the given key.
|
static java.lang.Float |
ExpressionFactory.Functions.index(Environment env)
Returns the index of node in parent way or member in parent relation.
|
(package private) static boolean |
Condition.PseudoClasses.inDownloadedArea(Environment e)
in-downloaded-area tests whether the object is within source area ("downloaded area"). |
static boolean |
ExpressionFactory.Functions.is_anticlockwise(Environment env)
Determines whether the way is
closed and oriented anticlockwise ,
or non-closed and the 1st, 2nd and last node are in anticlockwise order . |
static boolean |
ExpressionFactory.Functions.is_clockwise(Environment env)
Determines whether the way is
closed and oriented clockwise ,
or non-closed and the 1st, 2nd and last node are in clockwise order . |
static java.lang.Boolean |
ExpressionFactory.Functions.is_prop_set(Environment env,
java.lang.String key)
Determines whether property
key is set. |
static java.lang.Boolean |
ExpressionFactory.Functions.is_prop_set(Environment env,
java.lang.String key,
java.lang.String layer)
Determines whether property
key is set on layer layer . |
static boolean |
ExpressionFactory.Functions.is_right_hand_traffic(Environment env)
check if there is right-hand traffic at the current location
|
static java.lang.String |
ExpressionFactory.Functions.JOSM_pref(Environment env,
java.lang.String key,
java.lang.String def)
|
static java.lang.Boolean |
ExpressionFactory.Functions.JOSM_search(Environment env,
java.lang.String searchStr)
Determines whether the JOSM search with
searchStr applies to the object. |
protected boolean |
Condition.KeyValueRegexpCondition.matches(Environment env) |
protected boolean |
Condition.RegexpKeyValueRegexpCondition.matches(Environment env) |
boolean |
Selector.matches(Environment env)
Apply the selector to the primitive and check if it matches.
|
boolean |
Selector.ChildOrParentSelector.matches(Environment e) |
boolean |
Selector.AbstractSelector.matches(Environment env)
Determines if all conditions match the given environment.
|
boolean |
Selector.LinkSelector.matches(Environment env) |
boolean |
Selector.GeneralSelector.matches(Environment e) |
boolean |
Selector.OptimizedGeneralSelector.matchesBase(Environment e) |
boolean |
Selector.GeneralSelector.matchesConditions(Environment e) |
(package private) static boolean |
Condition.PseudoClasses.modified(Environment e)
:modified tests whether the object has been modified. |
static int |
ExpressionFactory.Functions.number_of_tags(Environment env)
Get the number of tags for the current primitive.
|
static long |
ExpressionFactory.Functions.osm_id(Environment env)
Returns the OSM id of the current object.
|
static java.lang.String |
ExpressionFactory.Functions.parent_tag(Environment env,
java.lang.String key)
Gets the first non-null value of the key
key from the object's parent(s). |
static java.util.List<java.lang.String> |
ExpressionFactory.Functions.parent_tags(Environment env,
java.lang.String key)
Gets a list of all non-null values of the key
key from the object's parent(s). |
static java.lang.Object |
ExpressionFactory.Functions.prop(Environment env,
java.lang.String key)
Returns the value of the property
key , e.g., prop("width") . |
static java.lang.Object |
ExpressionFactory.Functions.prop(Environment env,
java.lang.String key,
java.lang.String layer)
Returns the value of the property
key from layer layer . |
(package private) static boolean |
Condition.PseudoClasses.righthandtraffic(Environment e)
righthandtraffic checks if there is right-hand traffic at the current location. |
static java.lang.String |
ExpressionFactory.Functions.role(Environment env)
Returns the role of current object in parent relation, or role of child if current object is a relation.
|
(package private) static boolean |
Condition.PseudoClasses.sameTags(Environment e)
:same-tags tests whether the object has the same tags as its child/parent. |
(package private) static boolean |
Condition.PseudoClasses.selected(Environment e) |
static java.lang.Object |
ExpressionFactory.Functions.setting(Environment env,
java.lang.String key)
Get value of a setting.
|
static java.lang.String |
ExpressionFactory.Functions.tag(Environment env,
java.lang.String key)
Gets the value of the key
key from the object in question. |
(package private) static boolean |
Condition.PseudoClasses.tagged(Environment e)
:tagged tests whether the object is tagged. |
(package private) static boolean |
Condition.PseudoClasses.unclosed_multipolygon(Environment e)
unclosed-multipolygon tests whether the object is an unclosed multipolygon. |
(package private) static boolean |
Condition.PseudoClasses.unconnected(Environment e)
unconnected : tests whether the object is a unconnected node. |
static java.lang.Float |
ExpressionFactory.Functions.waylength(Environment env)
Returns the length of the way in metres or
null . |
Constructor and Description |
---|
AbstractFinder(Environment e) |
ContainsFinder(Environment e) |
CrossingFinder(Environment e) |
MatchingReferrerFinder(Environment e)
Constructor
|
MultipolygonOpenEndFinder(Environment e) |
Modifier and Type | Method and Description |
---|---|
static AreaElement |
AreaElement.create(Environment env) |
static RepeatImageElement |
RepeatImageElement.create(Environment env) |
static LineTextElement |
LineTextElement.create(Environment env) |
static NodeElement |
NodeElement.create(Environment env) |
static BoxTextElement |
BoxTextElement.create(Environment env,
BoxTextElement.BoxProvider boxProvider) |
static BoxTextElement |
BoxTextElement.create(Environment env,
BoxTextElement.BoxProvider boxProvider,
java.awt.Rectangle box) |
static TextLabel |
TextLabel.create(Environment env,
java.awt.Color defaultTextColor,
boolean defaultAnnotate)
Builds a text element from style properties in
c and the
default text color defaultTextColor |
private static NodeElement |
NodeElement.create(Environment env,
float default_major_z_index,
boolean allowDefault) |
static BoxTextElement |
BoxTextElement.create(Environment env,
java.awt.Rectangle box) |
static LineElement |
LineElement.createCasing(Environment env) |
static MapImage |
NodeElement.createIcon(Environment env,
java.lang.String[] keys) |
private static LineElement |
LineElement.createImpl(Environment env,
LineElement.LineType type) |
static LineElement |
LineElement.createLeftCasing(Environment env) |
static LineElement |
LineElement.createLine(Environment env) |
static LineElement |
LineElement.createRightCasing(Environment env) |
private static NodeElement.Symbol |
NodeElement.createSymbol(Environment env) |