Class AbstractDialLayer

    • Constructor Detail

      • AbstractDialLayer

        protected AbstractDialLayer()
        Creates a new instance.
    • Method Detail

      • isVisible

        public boolean isVisible()
        Returns true if this layer is visible (should be displayed), and false otherwise.
        Specified by:
        isVisible in interface DialLayer
        Returns:
        A boolean.
        See Also:
        setVisible(boolean)
      • setVisible

        public void setVisible​(boolean visible)
        Sets the flag that determines whether or not this layer is drawn by the plot, and sends a DialLayerChangeEvent to all registered listeners.
        Parameters:
        visible - the flag.
        See Also:
        isVisible()
      • equals

        public boolean equals​(Object obj)
        Tests this instance for equality with an arbitrary object.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code for this instance.
        Overrides:
        hashCode in class Object
        Returns:
        A hash code.
      • hasListener

        public boolean hasListener​(EventListener listener)
        Returns true if the specified object is registered with the dataset as a listener. Most applications won't need to call this method, it exists mainly for use by unit testing code.
        Specified by:
        hasListener in interface DialLayer
        Parameters:
        listener - the listener.
        Returns:
        A boolean.
      • notifyListeners

        protected void notifyListeners​(DialLayerChangeEvent event)
        Notifies all registered listeners that the dial layer has changed. The DialLayerChangeEvent provides information about the change.
        Parameters:
        event - information about the change to the axis.