Package com.xinapse.multisliceimage.roi
Class InsertionPointHandle
java.lang.Object
java.awt.geom.Point2D
java.awt.Point
com.xinapse.multisliceimage.roi.Handle
com.xinapse.multisliceimage.roi.InsertionPointHandle
- All Implemented Interfaces:
Serializable
,Cloneable
A Handle to indicate and move the insertion point for a RadialDivider. The handle also has a
little 'stick' to show the direction in which the segments will be assessed.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
-
Field Summary
Fields inherited from class com.xinapse.multisliceimage.roi.Handle
DESIGN_SIZE_LARGE, DESIGN_SIZE_SMALL, SIZE_LARGE, SIZE_SMALL
-
Constructor Summary
ConstructorDescriptionInsertionPointHandle
(int x, int y, int slice, Point2D centreOfRotation) Creates a new InsertionPointHandle at the location (x,y), in screen pixels. -
Method Summary
Methods inherited from class com.xinapse.multisliceimage.roi.Handle
clone, getBorderColor, getColor, getSize, getSize, getSize, pointOver, 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
-
Constructor Details
-
InsertionPointHandle
Creates a new InsertionPointHandle at the location (x,y), in screen pixels.- Parameters:
x
- the x location of the InsertionPointHandle in screen coords.y
- the y location of the InsertionPointHandle in screen coords.slice
- the image slice number on which the InsertionPointHandle is drawn.centreOfRotation
- the point in window coordinates about which the ROIs will be rotated when using this handle. Used to assist in the drawing of the segment direction arrow.
-
-
Method Details
-
getSlice
public int getSlice()Returns the physical slice number to which this InsertionPointHandle applies.- Returns:
- the physical slice number of this InsertionPointHandle.
-
draw
Draws this InsertionPointHandle using the given Graphics context. -
toString
Description copied from class:Handle
Returns a java.lang.String describing this Handle.
-