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 booleanprotected Pointprotected booleanprotected booleanFields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidvoidsetDragging(boolean dragging) voidsetDraggingPrimed(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, unionMethods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, unionMethods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
isDraggingPrimedin interfaceDraggable
-
isDragging
public boolean isDragging()- Specified by:
isDraggingin interfaceDraggable
-
setDraggingPrimed
public void setDraggingPrimed(boolean primed) - Specified by:
setDraggingPrimedin interfaceDraggable
-
setDragging
public void setDragging(boolean dragging) - Specified by:
setDraggingin interfaceDraggable
-
setCurrentPoint
- Specified by:
setCurrentPointin interfaceDraggable
-
getCurrentPoint
- Specified by:
getCurrentPointin interfaceDraggable
-