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 FiguregetFigure()Return nullintgetID()Return 0doublegetX()Return 0.0.doublegetY()Return 0.0.
-
-
-
Method Detail
-
getFigure
public Figure getFigure()
Return null- Specified by:
getFigurein interfaceSite- Specified by:
getFigurein classAbstractSite- Returns:
- The figure.
-
getID
public int getID()
Return 0- Specified by:
getIDin interfaceSite- Specified by:
getIDin classAbstractSite- Returns:
- The unique identifier.
-
getX
public double getX()
Return 0.0.- Specified by:
getXin interfaceSite- Specified by:
getXin classAbstractSite- Returns:
- The x-coordinate of the site.
-
getY
public double getY()
Return 0.0.- Specified by:
getYin interfaceSite- Specified by:
getYin classAbstractSite- Returns:
- The y-coordinate of the site.
-
-