|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the general interface for any graph element visualization that
can and will be arranged by a Layout class and satisfies its
configuration requirements.
The first of these requirements mandates that an object which implements
the Layoutable interface must be able to set a context
name that identifies a layouter with a particular configuration. This is
the layouter which arranges this graph element.
Some layouters require that nodes or edges be configured because these graph objects necessitate special treatment. For this reason it is possible to set these attributes for a node or edge directly.
This interface consolidates the common methods that would have been
duplicated in interfaces LayoutableNode and LayoutEdge.
| Method Summary | |
java.lang.String |
getEdgeLayoutContext()
Returns a String identifier which is used to note a specified
edge layout context for this Object, which may be used to link this
object with a specific EdgeLayout and configuration.
|
AttributeSet |
getLayoutAttributeSet()
Returns an AttributeSet which contains the specified Layout
attributes for the graph object.
|
java.lang.String |
getLayoutContext()
Deprecated. This method is about to be removed in future releases. Please use setNodeLayoutContext(String) and
setEdgeLayoutContext(String) instead. |
java.lang.String |
getNodeLayoutContext()
Returns a String identifier which is used to denote a specified
node layout context for this Object, which may be used to link this
object with a specific NodeLayout and configuration.
|
long |
getUniqueID()
Returns the identifier of this object. |
void |
setEdgeLayoutContext(java.lang.String layoutcontext)
Sets the edge layout context for this object. |
void |
setLayoutAttributes(AttributeSet attributes)
This method allows client code to configure a Layoutable object with an AttributeSet that contains all necessary Layout attributes.
|
void |
setLayoutContext(java.lang.String layoutcontext)
Deprecated. This method is about to be removed in future releases. Please use setNodeLayoutContext(String) and
setEdgeLayoutContext(String) instead. |
void |
setNodeLayoutContext(java.lang.String layoutcontext)
Sets the layout context for this object. |
| Method Detail |
public long getUniqueID()
public java.lang.String getLayoutContext()
setNodeLayoutContext(String) and
setEdgeLayoutContext(String) instead.
String identifier used to denote a specified
node layout context for this Object.
A layout context may be used to link this object with a specific
Layout and configuration which will be used to arrange this object
whenever a Layout process is performed.
public void setLayoutContext(java.lang.String layoutcontext)
setNodeLayoutContext(String) and
setEdgeLayoutContext(String) instead.
String identifier which is
used to specify a Layout and configuration
that should be used to arrange this object whenever a Layout process
is performed.
layoutcontext - The according layout context.public void setNodeLayoutContext(java.lang.String layoutcontext)
String identifier which is
used to specify a NodeLayout and configuration
that should be used to arrange this object whenever a Layout process
is performed.
layoutcontext - The according layout context.public java.lang.String getNodeLayoutContext()
String identifier which is used to denote a specified
node layout context for this Object, which may be used to link this
object with a specific NodeLayout and configuration.
The resulting configured node layout context will be used to arrange
this object whenever a NodeLayout process is performed.
public java.lang.String getEdgeLayoutContext()
String identifier which is used to note a specified
edge layout context for this Object, which may be used to link this
object with a specific EdgeLayout and configuration.
The configured edge layout context will be used to arrange this object
whenever an EdgeLayout process is performed.
public void setEdgeLayoutContext(java.lang.String layoutcontext)
String identifier which is
used to specify the EdgeLayout and its configuration, which is then
responsible for arranging this Object.
layoutcontext - The according edge layout context.public void setLayoutAttributes(AttributeSet attributes)
AttributeSet that contains all necessary Layout attributes.
AttributeSet is usually provided by an associated Layout
object to allow for special treatment of different graph objects.
getLayoutAttributeSet() is invoked.
attributes - the new layout attributes.public AttributeSet getLayoutAttributeSet()
AttributeSet which contains the specified Layout
attributes for the graph object.
This AttributeSet is usually provided by an associated Layout
object to allow for special treatment of different graph objects.
null.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||