Class ConditionFactory.PseudoClasses
java.lang.Object
org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.PseudoClasses
- Enclosing class:
- ConditionFactory
Like CSS pseudo classes, MapCSS pseudo classes
are written in lower case with dashes between words.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static boolean_new(Environment e) :newtests whether the object is new.(package private) static boolean:anticlockwisewhether the way is closed and oriented anticlockwise, or non-closed and the 1st, 2nd and last node are in anticlockwise order.(package private) static boolean:area-styletests whether the object has an area style.(package private) static boolean:clockwisewhether 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:closedtests whether the way is closed or the relation is a closed multipolygon(package private) static boolean(package private) static boolean:completely_downloadedtests whether the object is completely downloaded(package private) static boolean:connectiontests whether the object is a connection node.(package private) static boolean:highlightedtests whether the object is highlighted (i.e.(package private) static boolean:in-downloaded-areatests whether the object is within source area ("downloaded area").(package private) static boolean:modifiedtests whether the object has been modified.(package private) static boolean:righthandtrafficchecks if there is right-hand traffic at the current location.(package private) static boolean:same-tagstests whether the object has the same tags as its child/parent.(package private) static boolean:selectedtests whether the object is selected in the editor(package private) static boolean:taggedtests whether the object is tagged.(package private) static boolean:unclosed-multipolygontests whether the object is an unclosed multipolygon.(package private) static boolean:unconnectedtests whether the object is an unconnected node.
-
Field Details
-
IN_DOWNLOADED_AREA
-
-
Constructor Details
-
PseudoClasses
private PseudoClasses()
-
-
Method Details
-
closed
:closedtests whether the way is closed or the relation is a closed multipolygon- Parameters:
e- MapCSS environment- Returns:
trueif the way is closed or the relation is a closed multipolygon
-
modified
:modifiedtests whether the object has been modified.- Parameters:
e- MapCSS environment- Returns:
trueif the object has been modified- See Also:
-
_new
:newtests whether the object is new.- Parameters:
e- MapCSS environment- Returns:
trueif the object is new- See Also:
-
connection
:connectiontests whether the object is a connection node.- Parameters:
e- MapCSS environment- Returns:
trueif the object is a connection node- See Also:
-
tagged
:taggedtests whether the object is tagged.- Parameters:
e- MapCSS environment- Returns:
trueif the object is tagged- See Also:
-
sameTags
:same-tagstests whether the object has the same tags as its child/parent.- Parameters:
e- MapCSS environment- Returns:
trueif the object has the same tags as its child/parent- See Also:
-
areaStyle
:area-styletests whether the object has an area style. This is useful for validators.- Parameters:
e- MapCSS environment- Returns:
trueif the object has an area style- See Also:
-
unconnected
:unconnectedtests whether the object is an unconnected node.- Parameters:
e- MapCSS environment- Returns:
trueif the object is an unconnected node
-
righthandtraffic
:righthandtrafficchecks if there is right-hand traffic at the current location.- Parameters:
e- MapCSS environment- Returns:
trueif there is right-hand traffic at the current location- See Also:
-
clockwise
:clockwisewhether the way is closed and oriented clockwise, or non-closed and the 1st, 2nd and last node are in clockwise order.- Parameters:
e- MapCSS environment- Returns:
trueif the way clockwise- See Also:
-
anticlockwise
:anticlockwisewhether the way is closed and oriented anticlockwise, or non-closed and the 1st, 2nd and last node are in anticlockwise order.- Parameters:
e- MapCSS environment- Returns:
trueif the way clockwise- See Also:
-
unclosed_multipolygon
:unclosed-multipolygontests whether the object is an unclosed multipolygon.- Parameters:
e- MapCSS environment- Returns:
trueif the object is an unclosed multipolygon
-
inDownloadedArea
:in-downloaded-areatests whether the object is within source area ("downloaded area").- Parameters:
e- MapCSS environment- Returns:
trueif the object is within source area ("downloaded area")- See Also:
-
completely_downloaded
:completely_downloadedtests whether the object is completely downloaded- Parameters:
e- MapCSS environment- Returns:
trueif the object is completely downloaded
-
closed2
-
selected
:selectedtests whether the object is selected in the editor- Parameters:
e- MapCSS environment- Returns:
trueif the object is selected
-
highlighted
:highlightedtests whether the object is highlighted (i.e. is hovered over)- Parameters:
e- The MapCSS environment- Returns:
trueif the object is highlighted- Since:
- 17862
- See Also:
-