Interface VisualObject

All Superinterfaces:
ComponentProducer
All Known Implementing Classes:
AbstractVisualObject, VisualArray, VisualBoolean, VisualChoice, VisualColor, VisualFont, VisualInteger, VisualOverlay, VisualString, VisualStroke, VisualSymbol

public interface VisualObject extends ComponentProducer
The VisualObject interface defines the methods required for objects to have a visual onscreen representation. The onscreen version may be used to manipulate the properties of the object.
Since:
3.1.7
Author:
Peter Hollemans
  • Method Details

    • showChooser

      void showChooser()
      Shows the chooser dialog used to manipulate the object's properties. In some cases, a visual object may not have a chooser, in which case hasChooser() returns false and this method has no effect.
    • hasChooser

      boolean hasChooser()
      Gets the chooser flag.
      Returns:
      true if this object has a chooser, or false if not.
    • getValue

      Object getValue()
      Gets the object value.
      Returns:
      the value that this visual object currently holds.
    • addPropertyChangeListener

      void addPropertyChangeListener(PropertyChangeListener listener)
      Adds a listener to receive property change events for when this object's value changes.
      Parameters:
      listener - the listener to add.
    • firePropertyChange

      void firePropertyChange()
      Fires a property change event for this object's value.
    • setRestrictions

      void setRestrictions(Object restrict)
      Sets restrictions on the allowed object values.
      Parameters:
      restrict - the restictions, a custom object that is known to the child class.