Class VisibleCtls

java.lang.Object
org.ka2ddo.yaac.osm.VisibleCtls
All Implemented Interfaces:
Serializable

public final class VisibleCtls extends Object implements Serializable
Caching class specifying whether instances of enums are visible or not.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Report whether the specified Enum value is registered in this VisibleEnum.
    void
    Copy the settings in this VisibleCtls into another instance.
    boolean
    Indicate whether OSM objects tagged with this enum are visible.
    void
    Remove the specified Enum from the map.
    void
    setVisible(Enum e, boolean visible)
    Set whether OSM objects tagged with this enum should be visible.
    int
    Report the number of Enums with associated visibility flags.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VisibleCtls

      public VisibleCtls()
  • Method Details

    • isVisible

      public boolean isVisible(Enum e)
      Indicate whether OSM objects tagged with this enum are visible.
      Parameters:
      e - Enum whose visibility should be tested
      Returns:
      boolean true if object should be visible
    • setVisible

      public void setVisible(Enum e, boolean visible)
      Set whether OSM objects tagged with this enum should be visible.
      Parameters:
      e - Enum whose visibility should be specified
      visible - boolean true if tagged objects should be visible
    • remove

      public void remove(Enum e)
      Remove the specified Enum from the map.
      Parameters:
      e - Enum to remove
    • size

      public int size()
      Report the number of Enums with associated visibility flags.
      Returns:
      count of Enums
    • containsEnum

      public boolean containsEnum(Enum e)
      Report whether the specified Enum value is registered in this VisibleEnum.
      Parameters:
      e - Enum to test for
      Returns:
      boolean true if the Enum is recorded in this object
    • copyInto

      public void copyInto(VisibleCtls dest)
      Copy the settings in this VisibleCtls into another instance.
      Parameters:
      dest - VisibleCtls object to receive copied settings from this object