fcmodeler.view.figures
Class ArrowheadExt
java.lang.Object
|
+--diva.canvas.connector.Arrowhead
|
+--fcmodeler.view.figures.ArrowheadExt
- All Implemented Interfaces:
- java.lang.Cloneable, diva.canvas.connector.ConnectorEnd, ConnectorEndExt
- public class ArrowheadExt
- extends diva.canvas.connector.Arrowhead
- implements ConnectorEndExt
This class specifically extends Arrowhead
to provide a String
representation of this diamond connector end and the clone() method
implementation.
- Author:
- xein
Constructor Summary |
ArrowheadExt()
Constructor for the ArrowheadExt object |
ArrowheadExt(double x,
double y,
double normal)
Constructor for the ArrowheadExt object |
Method Summary |
java.lang.Object |
clone()
Creates and returns a copy of this ArrowheadExt . |
java.lang.String |
toString()
Return the String representation for ArrowheadExt |
Methods inherited from class diva.canvas.connector.Arrowhead |
getBounds, getConnection, getLength, getOrigin, paint, reshape, setLength, setNormal, setOrigin, translate |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface diva.canvas.connector.ConnectorEnd |
getBounds, getConnection, getOrigin, paint, setNormal, setOrigin, translate |
ArrowheadExt
public ArrowheadExt()
- Constructor for the ArrowheadExt object
ArrowheadExt
public ArrowheadExt(double x,
double y,
double normal)
- Constructor for the ArrowheadExt object
- Parameters:
x
- x-coordinate of this ArrowheadExt
objecty
- y-coordinate of this ArrowheadExt
objectnormal
- the angle in radian
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Creates and returns a copy of this
ArrowheadExt
. The returned
Object
is guaranteed to be of type ArrowheadExt
and is also guaranteed to have copies of any mutable fields of this object.
- Specified by:
clone
in interface ConnectorEndExt
- Overrides:
clone
in class java.lang.Object
- Returns:
- a clone of this
ArrowheadExt
object. - Throws:
java.lang.CloneNotSupportedException
- should never be thrown, as this class extends Object
and implements
Cloneable
by implementing ConnectorEndExt
.
toString
public java.lang.String toString()
- Return the String representation for
ArrowheadExt
- Overrides:
toString
in class java.lang.Object
- Returns:
- the String representation for
ArrowheadExt