Package org.openstreetmap.josm.data.osm
Interface Stylable
-
- All Known Subinterfaces:
INode
,IPrimitive
,IRelation<M>
,IWay<N>
- All Known Implementing Classes:
AbstractPrimitive
,Node
,NodeData
,OsmPrimitive
,PrimitiveData
,Relation
,RelationData
,VectorNode
,VectorPrimitive
,VectorRelation
,VectorWay
,Way
,WayData
public interface Stylable
Object that can be rendered using a cacheable style.- Since:
- 13636
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
clearCachedStyle()
Clears the cached style.void
declareCachedStyleUpToDate()
Declare that the cached style for this primitive is up to date.StyleCache
getCachedStyle()
Returns the cached style.boolean
isCachedStyleUpToDate()
Check if the cached style for this primitive is up to date.void
setCachedStyle(StyleCache mappaintStyle)
Sets the cached style.
-
-
-
Method Detail
-
getCachedStyle
StyleCache getCachedStyle()
Returns the cached style.- Returns:
- the cached style
-
setCachedStyle
void setCachedStyle(StyleCache mappaintStyle)
Sets the cached style.- Parameters:
mappaintStyle
- the cached style
-
clearCachedStyle
default void clearCachedStyle()
Clears the cached style. This should not be called from outside. Fixing the UI to add relevant get/set functions calling this implicitly is preferred, so we can have transparent cache handling in the future.
-
isCachedStyleUpToDate
boolean isCachedStyleUpToDate()
Check if the cached style for this primitive is up to date.- Returns:
- true if the cached style for this primitive is up to date
- Since:
- 13420
-
declareCachedStyleUpToDate
void declareCachedStyleUpToDate()
Declare that the cached style for this primitive is up to date.- Since:
- 13420
-
-