fcmodeler.attributes
Interface VisualAttribute

All Known Implementing Classes:
ColorAttribute, ConnectorEndAttribute, NodeShapeAttribute, FillAttribute, LineWidthAttribute, DashAttribute

public interface VisualAttribute

A visual attribute. This interface specifies two factory methods: one for a visual attribute editor and another for a visual attribute value. A client can thus retrieve both an editor and a value for the specific visual attribute represented by a concrete implementation, without needing to know the specific type of the implementation. Implementations of VisualAttribute are encouraged to be singletons, as no intrinsic state should be necessary. If an implementation is a singleton, it should provide a static factory method called getInstance.

Since:
JDK1.3
Version:
$Revision: 1.2 $
Author:
Zach Cox

Method Summary
 VisualAttributeEditor getEditor()
          Returns a visual attribute editor, appropriate for editing values of this type of visual attribute.
 VisualAttributeValue getValue(java.lang.String value)
          Returns a value of this type of visual attribute, using the specified string description.
 java.lang.String toString()
          Returns a string representation of this visual attribute.
 

Method Detail

getEditor

public VisualAttributeEditor getEditor()
Returns a visual attribute editor, appropriate for editing values of this type of visual attribute.
Returns:
an editor appropriate for editing values of this type of visual attribute.

getValue

public VisualAttributeValue getValue(java.lang.String value)
Returns a value of this type of visual attribute, using the specified string description.
Parameters:
value - the string description of the visual attribute value.
Returns:
a value of this type of visual attribute.

toString

public java.lang.String toString()
Returns a string representation of this visual attribute.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this visual attribute.