Package diva.canvas.connector
Class NullSite
- java.lang.Object
-
- diva.canvas.AbstractSite
-
- diva.canvas.connector.NullSite
-
- All Implemented Interfaces:
Site
public class NullSite extends AbstractSite
A site that doesn't do anything useful. Sometimes this is needed as a placeholder for objects that expect sites, but because other objects they depend on haven't been created yet, can't have them.- Version:
- $Id$
- Author:
- John Reekie
-
-
Field Summary
-
Fields inherited from class diva.canvas.AbstractSite
_hasNormal, _normal
-
-
Constructor Summary
Constructors Constructor Description NullSite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Figure
getFigure()
Return nullint
getID()
Return 0double
getX()
Return 0.0.double
getY()
Return 0.0.
-
-
-
Method Detail
-
getFigure
public Figure getFigure()
Return null- Specified by:
getFigure
in interfaceSite
- Specified by:
getFigure
in classAbstractSite
- Returns:
- The figure.
-
getID
public int getID()
Return 0- Specified by:
getID
in interfaceSite
- Specified by:
getID
in classAbstractSite
- Returns:
- The unique identifier.
-
getX
public double getX()
Return 0.0.- Specified by:
getX
in interfaceSite
- Specified by:
getX
in classAbstractSite
- Returns:
- The x-coordinate of the site.
-
getY
public double getY()
Return 0.0.- Specified by:
getY
in interfaceSite
- Specified by:
getY
in classAbstractSite
- Returns:
- The y-coordinate of the site.
-
-