Package cnuphys.splot.plot
Class DraggableRectangle
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.Rectangle
cnuphys.splot.plot.DraggableRectangle
- All Implemented Interfaces:
Draggable
,Shape
,Serializable
,Cloneable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
Rectangle2D.Double, Rectangle2D.Float
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected Point
protected boolean
protected boolean
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
void
setDragging
(boolean dragging) void
setDraggingPrimed
(boolean primed) Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
-
Field Details
-
_dragging
protected boolean _dragging -
_draggingPrimed
protected boolean _draggingPrimed -
_currentPoint
-
_beenMoved
protected boolean _beenMoved
-
-
Constructor Details
-
DraggableRectangle
public DraggableRectangle()
-
-
Method Details
-
isDraggingPrimed
public boolean isDraggingPrimed()- Specified by:
isDraggingPrimed
in interfaceDraggable
-
isDragging
public boolean isDragging()- Specified by:
isDragging
in interfaceDraggable
-
setDraggingPrimed
public void setDraggingPrimed(boolean primed) - Specified by:
setDraggingPrimed
in interfaceDraggable
-
setDragging
public void setDragging(boolean dragging) - Specified by:
setDragging
in interfaceDraggable
-
setCurrentPoint
- Specified by:
setCurrentPoint
in interfaceDraggable
-
getCurrentPoint
- Specified by:
getCurrentPoint
in interfaceDraggable
-