Class RigidShapeBuilder.AbstractShapeEntry

  • All Implemented Interfaces:
    AVList, MessageListener, WWObject, java.beans.PropertyChangeListener, java.util.EventListener
    Enclosing class:
    RigidShapeBuilder

    protected static class RigidShapeBuilder.AbstractShapeEntry
    extends WWObjectImpl
    The AbstractShapeEntry class defines a shape entry in the AbstractShapeBuilderModel. Each entry contains an instance of an AbstractShape, its associated editor and attributes, and state variables indicating whether the entry is currently selected or being edited.
    • Method Detail

      • isEditing

        public boolean isEditing()
      • setEditing

        public void setEditing​(boolean editing)
      • isSelected

        public boolean isSelected()
      • setSelected

        public void setSelected​(boolean selected)
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getValue

        public java.lang.Object getValue​(java.lang.String key)
        Description copied from interface: AVList
        Returns the value for a specified key.
        Specified by:
        getValue in interface AVList
        Overrides:
        getValue in class AVListImpl
        Parameters:
        key - the attribute name. May not be null.
        Returns:
        the attribute value if one exists in the collection, otherwise null.
      • setValue

        public java.lang.Object setValue​(java.lang.String key,
                                         java.lang.Object value)
        Description copied from interface: AVList
        Adds a key/value pair to the list. Replaces an existing key/value pair if the list already contains the key.
        Specified by:
        setValue in interface AVList
        Overrides:
        setValue in class AVListImpl
        Parameters:
        key - the attribute name. May not be null.
        value - the attribute value. May be null, in which case any existing value for the key is removed from the collection.
        Returns:
        previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified key, if the implementation supports null values.
      • updateAttributes

        protected void updateAttributes()