Class AttributeComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, GraffitiViewComponent
Direct Known Subclasses:
AbstractAttributeComponent

public abstract class AttributeComponent
extends JComponent
implements GraffitiViewComponent
This component represents a org.graffiti.attributes.Attribute.
Version:
$Revision: 1.9 $
See Also:
Serialized Form
  • Constructor Details

    • AttributeComponent

      public AttributeComponent()
  • Method Details

    • setAttribute

      public abstract void setAttribute​(Attribute attr)
      Sets an instance of attribute which this component displays.
      Parameters:
      attr -
    • getAttribute

      public abstract Attribute getAttribute()
      Returns the attribute that is displayed by this component.
      Returns:
      the attribute that is displayed by this component.
    • setGraphElementShape

      public abstract void setGraphElementShape​(GraphElementShape geShape)
      Sets shape of graph element to which the attribute of this component belongs.
      Parameters:
      geShape -
    • adjustComponentSize

      public abstract void adjustComponentSize()
      adjust the component size and position
    • adjustComponentPosition

      public abstract void adjustComponentPosition()
      adjust the component position only
    • setShift

      public abstract void setShift​(Point shift)
      DOCUMENT ME!
      Parameters:
      shift - DOCUMENT ME!
    • attributeChanged

      public abstract void attributeChanged​(Attribute attr) throws ShapeNotFoundException
      Called when a graphics attribute of the attribute represented by this component has changed.
      Specified by:
      attributeChanged in interface GraffitiViewComponent
      Parameters:
      attr - the attribute that has triggered the event.
      Throws:
      ShapeNotFoundException
    • recreate

      public abstract void recreate() throws ShapeNotFoundException
      Used when the shape changed in the datastructure. Makes the painter to create a new shape.
      Throws:
      ShapeNotFoundException
    • highlight

      public void highlight​(boolean value, MouseEvent e)
    • setHidden

      public void setHidden​(boolean hidden)
    • setAlpha

      public void setAlpha​(float alpha)