Class LayerVisibility

java.lang.Object
lu.kbra.modelizer_next.domain.shared.LayerVisibility

public class LayerVisibility extends Object
Visibility flags for conceptual, logical, and physical diagram layers.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a layer visibility instance.
    Creates a layer visibility instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears all visibility flags.
    boolean
    Checks whether conceptual is enabled or applies.
    boolean
    Checks whether logical is enabled or applies.
    boolean
    Checks whether physical is enabled or applies.
    boolean
    Checks whether visible is enabled or applies.
    void
    set(boolean c, boolean l, boolean p)
    Sets the value for the requested panel or key.
    void
    set(PanelType... pts)
    Sets the value for the requested panel or key.
    void
    setConceptual(boolean conceptual)
    Sets the conceptual.
    void
    setLogical(boolean logical)
    Sets the logical.
    void
    setPhysical(boolean physical)
    Sets the physical.
    Builds a debug string for this layer visibility.

    Methods inherited from class java.lang.Object

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

    • LayerVisibility

      public LayerVisibility()
      Creates a layer visibility instance.
    • LayerVisibility

      public LayerVisibility(PanelType... pts)
      Creates a layer visibility instance.
      Parameters:
      pts - values for pts
  • Method Details

    • clear

      public void clear()
      Clears all visibility flags.
    • isConceptual

      public boolean isConceptual()
      Checks whether conceptual is enabled or applies.
      Returns:
      true if conceptual is enabled or applies; otherwise false
    • isLogical

      public boolean isLogical()
      Checks whether logical is enabled or applies.
      Returns:
      true if logical is enabled or applies; otherwise false
    • isPhysical

      public boolean isPhysical()
      Checks whether physical is enabled or applies.
      Returns:
      true if physical is enabled or applies; otherwise false
    • isVisible

      public boolean isVisible(PanelType pt)
      Checks whether visible is enabled or applies.
      Parameters:
      pt - pt value used by the operation
      Returns:
      true if visible is enabled or applies; otherwise false
    • set

      public void set(boolean c, boolean l, boolean p)
      Sets the value for the requested panel or key.
      Parameters:
      c - whether c is enabled
      l - whether l is enabled
      p - whether p is enabled
    • set

      public void set(PanelType... pts)
      Sets the value for the requested panel or key.
      Parameters:
      pts - values for pts
    • setConceptual

      public void setConceptual(boolean conceptual)
      Sets the conceptual.
      Parameters:
      conceptual - whether conceptual is enabled
    • setLogical

      public void setLogical(boolean logical)
      Sets the logical.
      Parameters:
      logical - whether logical is enabled
    • setPhysical

      public void setPhysical(boolean physical)
      Sets the physical.
      Parameters:
      physical - whether physical is enabled
    • toString

      public String toString()
      Builds a debug string for this layer visibility.
      Overrides:
      toString in class Object
      Returns:
      a debug string for this object