fcmodeler.attributes
Class ConnectorEndValue

java.lang.Object
  |
  +--fcmodeler.attributes.ConnectorEndValue
All Implemented Interfaces:
EdgeVisualAttributeValue, VisualAttributeValue

public class ConnectorEndValue
extends java.lang.Object
implements VisualAttributeValue, EdgeVisualAttributeValue

Author:
xein

Constructor Summary
ConnectorEndValue()
          Creates a new ConnectorEndValue using a ArrowheadExt as the default ConnectorEnd
ConnectorEndValue(diva.canvas.connector.ConnectorEnd connectorEnd)
          Creates a new ConnectorEndValue using the specified connector end.
ConnectorEndValue(java.lang.String connectorEnd)
          Creates a new ConnectorEndValue using the specified string description of the connector end.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares the specified object with this visual attribute value for equality.
 VisualAttribute getAttribute()
           
 diva.canvas.connector.ConnectorEnd getConnectorEnd()
          Returns the connector end of this connector end value.
 int hashCode()
          Returns the hash code for this visual attribute value.
 void setEdgeValue(EdgeFigure figure)
          Sets the visual attribute of the specified edge figure to the value contained in this visual attribute value.
 void setPermanentEdgeValue(EdgeFigure figure)
          Sets the permanent visual attribute of the specified edge figure to the value contained in this visual attribute value.
 java.lang.String toString()
          Returns a string representation of this visual attribute value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectorEndValue

public ConnectorEndValue()
Creates a new ConnectorEndValue using a ArrowheadExt as the default ConnectorEnd

ConnectorEndValue

public ConnectorEndValue(diva.canvas.connector.ConnectorEnd connectorEnd)
Creates a new ConnectorEndValue using the specified connector end. The supplied ConnectorEnd is cloned in order to create a defensive copy.
Parameters:
connectorEnd - the connector end to use for this connector end value.

ConnectorEndValue

public ConnectorEndValue(java.lang.String connectorEnd)
Creates a new ConnectorEndValue using the specified string description of the connector end.
Parameters:
connectorEnd - the string description of the connector end for this connector end value.
Method Detail

equals

public boolean equals(java.lang.Object o)
Compares the specified object with this visual attribute value for equality.
Specified by:
equals in interface VisualAttributeValue
Overrides:
equals in class java.lang.Object
Parameters:
o - the object to be compared for equality with this visual attribute value.
Returns:
true if the specified object is equal to this visual attribute value.

getAttribute

public VisualAttribute getAttribute()
Specified by:
getAttribute in interface VisualAttributeValue

hashCode

public int hashCode()
Returns the hash code for this visual attribute value.
Specified by:
hashCode in interface VisualAttributeValue
Overrides:
hashCode in class java.lang.Object
Returns:
the hash code for this visual attribute value.

toString

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

getConnectorEnd

public diva.canvas.connector.ConnectorEnd getConnectorEnd()
Returns the connector end of this connector end value.
Returns:
the connector end of this connector end value.

setEdgeValue

public void setEdgeValue(EdgeFigure figure)
Sets the visual attribute of the specified edge figure to the value contained in this visual attribute value.
Specified by:
setEdgeValue in interface EdgeVisualAttributeValue
Parameters:
figure - the edge figure to update.

setPermanentEdgeValue

public void setPermanentEdgeValue(EdgeFigure figure)
Sets the permanent visual attribute of the specified edge figure to the value contained in this visual attribute value.
Specified by:
setPermanentEdgeValue in interface EdgeVisualAttributeValue
Parameters:
figure - the edge figure to update.