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 Type
    Method
    Description
    boolean
    Get binary property used internally by the filter mechanism.
    boolean
    Get binary property used internally by the filter mechanism.
    boolean
    setDisabledState(boolean hidden)
    Make the primitive disabled (e.g. if a filter applies).
    void
    setDisabledType(boolean isExplicit)
    Set binary property used internally by the filter mechanism.
    void
    setHiddenType(boolean isExplicit)
    Set binary property used internally by the filter mechanism.
    boolean
    Remove the disabled flag from the primitive.
  • Method Details

    • getHiddenType

      boolean getHiddenType()
      Get binary property used internally by the filter mechanism.
      Returns:
      true if this object has the "hidden type" flag enabled
    • getDisabledType

      boolean getDisabledType()
      Get binary property used internally by the filter mechanism.
      Returns:
      true if this object has the "disabled type" flag enabled
    • setDisabledState

      boolean setDisabledState(boolean hidden)
      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

      Remove the disabled flag from the primitive. Afterwards, the primitive is displayed normally and can be selected again.
      Returns:
      true if a change occurred
    • setDisabledType

      void setDisabledType(boolean isExplicit)
      Set binary property used internally by the filter mechanism.
      Parameters:
      isExplicit - new "disabled type" flag value
    • setHiddenType

      void setHiddenType(boolean isExplicit)
      Set binary property used internally by the filter mechanism.
      Parameters:
      isExplicit - new "hidden type" flag value