diva.canvas.connector
Class NullSite

java.lang.Object
  extended by diva.canvas.AbstractSite
      extended by 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: NullSite.java 38798 2005-07-08 20:00:01Z cxh $
Author:
John Reekie

Field Summary
 
Fields inherited from class diva.canvas.AbstractSite
_hasNormal, _normal
 
Constructor Summary
NullSite()
           
 
Method Summary
 Figure getFigure()
          Return null
 int getID()
          Return 0
 double getX()
          Return 0.0.
 double getY()
          Return 0.0.
 
Methods inherited from class diva.canvas.AbstractSite
getNormal, getPoint, getPoint, getPoint, getPoint, getTransformContext, hasNormal, isNormal, setNormal, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullSite

public NullSite()
Method Detail

getFigure

public Figure getFigure()
Return null

Specified by:
getFigure in interface Site
Specified by:
getFigure in class AbstractSite

getID

public int getID()
Return 0

Specified by:
getID in interface Site
Specified by:
getID in class AbstractSite

getX

public double getX()
Return 0.0.

Specified by:
getX in interface Site
Specified by:
getX in class AbstractSite

getY

public double getY()
Return 0.0.

Specified by:
getY in interface Site
Specified by:
getY in class AbstractSite