CH.ifa.draw.standard
Class NullHandle

java.lang.Object
  extended by CH.ifa.draw.standard.AbstractHandle
      extended by CH.ifa.draw.standard.LocatorHandle
          extended by CH.ifa.draw.standard.NullHandle
All Implemented Interfaces:
Handle

public class NullHandle
extends LocatorHandle

A handle that doesn't change the owned figure. Its only purpose is to show feedback that a figure is selected.


Design Patterns

 o NullObject
NullObject enables to treat handles that don't do anything in the same way as other handles.


Field Summary
protected  Locator fLocator
          The handle's locator.
 
Fields inherited from class CH.ifa.draw.standard.AbstractHandle
HANDLESIZE
 
Constructor Summary
NullHandle(Figure owner, Locator locator)
           
 
Method Summary
 void draw(java.awt.Graphics g)
          Draws the NullHandle.
 
Methods inherited from class CH.ifa.draw.standard.LocatorHandle
locate
 
Methods inherited from class CH.ifa.draw.standard.AbstractHandle
containsPoint, displayBox, invokeEnd, invokeEnd, invokeStart, invokeStart, invokeStep, invokeStep, owner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fLocator

protected Locator fLocator
The handle's locator.

Constructor Detail

NullHandle

public NullHandle(Figure owner,
                  Locator locator)
Method Detail

draw

public void draw(java.awt.Graphics g)
Draws the NullHandle. NullHandles are drawn as a red framed rectangle.

Specified by:
draw in interface Handle
Overrides:
draw in class AbstractHandle