fcmodeler.view.figures
Class BlobDiamondHeadExt
java.lang.Object
|
+--diva.canvas.connector.Blob
|
+--fcmodeler.view.figures.BlobDiamondHeadExt
- All Implemented Interfaces:
- java.lang.Cloneable, diva.canvas.connector.ConnectorEnd, ConnectorEndExt
- public class BlobDiamondHeadExt
- extends diva.canvas.connector.Blob
- implements ConnectorEndExt
This class specifically extends Blob
to provide a diamond
connector end. Besides the inherited methods from Blob
, String
representation of this diamond connector end and the clone() method
implementation are also added.
- Author:
- xein
Fields inherited from class diva.canvas.connector.Blob |
BLOB_CIRCLE, BLOB_DIAMOND, stroke |
Constructor Summary |
BlobDiamondHeadExt()
Constructor for the BlobDiamondHeadExt object |
BlobDiamondHeadExt(double x,
double y,
double normal)
Constructor for the BlobDiamondHeadExt object |
Method Summary |
java.lang.Object |
clone()
Creates and returns a copy of this BlobDiamondHeadExt . |
java.lang.String |
toString()
Return the String representatin for BlobCircleHeadExt |
Methods inherited from class diva.canvas.connector.Blob |
getBounds, getConnection, getOrigin, getSizeUnit, getStyle, isFilled, paint, reshape, setFilled, setNormal, setOrigin, setSizeUnit, setStyle, 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 |
BlobDiamondHeadExt
public BlobDiamondHeadExt()
- Constructor for the BlobDiamondHeadExt object
BlobDiamondHeadExt
public BlobDiamondHeadExt(double x,
double y,
double normal)
- Constructor for the BlobDiamondHeadExt object
- Parameters:
x
- x-coordinate of this BlobDiamondHeadExt
objecty
- y-coordinate of this BlobDiamondHeadExt
objectnormal
- the angle in radian
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Creates and returns a copy of this
BlobDiamondHeadExt
. The returned
Object
is guaranteed to be of type BlobDiamondHeadExt
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
BlobDiamondHeadExt
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 representatin for
BlobCircleHeadExt
- Overrides:
toString
in class java.lang.Object
- Returns:
- Description of the Returned Value