Package org.openstreetmap.josm.data.osm
Interface IFilterablePrimitive
- All Known Implementing Classes:
AbstractPrimitive,Node,NodeData,OsmPrimitive,PrimitiveData,Relation,RelationData,VectorNode,VectorPrimitive,VectorRelation,VectorWay,Way,WayData
public interface IFilterablePrimitive
An interface used to indicate that a primitive is filterable
- Since:
- 17862
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGet binary property used internally by the filter mechanism.booleanGet binary property used internally by the filter mechanism.booleansetDisabledState(boolean hidden) Make the primitive disabled (e.g. if a filter applies).voidsetDisabledType(boolean isExplicit) Set binary property used internally by the filter mechanism.voidsetHiddenType(boolean isExplicit) Set binary property used internally by the filter mechanism.booleanRemove the disabled flag from the primitive.
-
Method Details
-
getHiddenType
boolean getHiddenType()Get binary property used internally by the filter mechanism.- Returns:
trueif this object has the "hidden type" flag enabled
-
getDisabledType
boolean getDisabledType()Get binary property used internally by the filter mechanism.- Returns:
trueif this object has the "disabled type" flag enabled
-
setDisabledState
Make the primitive disabled (e.g. if a filter applies). To enable the primitive again, use unsetDisabledState.- Parameters:
hidden- if the primitive should be completely hidden from view or just shown in gray color.- Returns:
- true, any flag has changed; false if you try to set the disabled state to the value that is already preset
-
unsetDisabledState
boolean unsetDisabledState()Remove the disabled flag from the primitive. Afterwards, the primitive is displayed normally and can be selected again.- Returns:
trueif a change occurred
-
setDisabledType
Set binary property used internally by the filter mechanism.- Parameters:
isExplicit- new "disabled type" flag value
-
setHiddenType
Set binary property used internally by the filter mechanism.- Parameters:
isExplicit- new "hidden type" flag value
-