com.xinapse.multisliceimage.roi
Class VertexHandle

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.Point
          extended by com.xinapse.multisliceimage.roi.Handle
              extended by com.xinapse.multisliceimage.roi.VertexHandle
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class VertexHandle
extends Handle

A Class representing a Handle at one of the vertices of an EditableOutlineROI.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float
 
Field Summary
 
Fields inherited from class com.xinapse.multisliceimage.roi.Handle
SIZE_LARGE, SIZE_SMALL
 
Fields inherited from class java.awt.Point
x, y
 
Constructor Summary
VertexHandle(int x, int y)
          Creates a new VertexHandle at the location (x,y) with the given size in screen pixels.
 
Method Summary
 void draw(java.awt.Graphics g)
          Draws this Handle using the given Graphics context.
 boolean pointOver(java.awt.Point point)
          Returns true if the specified point is over this handle; false otherwise.
 java.lang.String toString()
          Returns a java.lang.String describing this Handle.
 
Methods inherited from class com.xinapse.multisliceimage.roi.Handle
clone, getBorderColor, getColor, getSize, getSize, getSize, setBorderColor, setColor, setSize
 
Methods inherited from class java.awt.Point
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, translate
 
Methods inherited from class java.awt.geom.Point2D
distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VertexHandle

public VertexHandle(int x,
                    int y)
Creates a new VertexHandle at the location (x,y) with the given size in screen pixels.

Parameters:
x - the x location of the Handle in screen coords.
y - the y location of the Handle in screen coords.
Method Detail

draw

public final void draw(java.awt.Graphics g)
Description copied from class: Handle
Draws this Handle using the given Graphics context.

Overrides:
draw in class Handle
Parameters:
g - the Graphics object on which the drawing operation is to be peformed.

pointOver

public final boolean pointOver(java.awt.Point point)
Returns true if the specified point is over this handle; false otherwise.

Overrides:
pointOver in class Handle
Returns:
true if the specified point is over this handle; false otherwise.

toString

public java.lang.String toString()
Description copied from class: Handle
Returns a java.lang.String describing this Handle.

Specified by:
toString in class Handle
Returns:
a String describing this Handle.


Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.