Package edu.cnu.mdi.graphics.rubberband
Class RubberTwoClickLine
java.lang.Object
edu.cnu.mdi.graphics.rubberband.ARubberband
edu.cnu.mdi.graphics.rubberband.AClickRubberband
edu.cnu.mdi.graphics.rubberband.ALineClickRubberband
edu.cnu.mdi.graphics.rubberband.RubberLine
edu.cnu.mdi.graphics.rubberband.RubberTwoClickLine
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.cnu.mdi.graphics.rubberband.ARubberband
ARubberband.Policy -
Field Summary
Fields inherited from class edu.cnu.mdi.graphics.rubberband.ARubberband
active, backgroundImage, component, currentPt, fillColor, highlightColor1, highlightColor2, image, policy, poly, rubberbanded, started, startPt, tempPoly -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanapprovePoint(Point p, boolean isFirstPoint) Hook for approval (e.g., TWO_CLICK_LINE).Methods inherited from class edu.cnu.mdi.graphics.rubberband.RubberLine
computeVertices, draw, getRubberbandBounds, isGestureValidMethods inherited from class edu.cnu.mdi.graphics.rubberband.ALineClickRubberband
mousePressedMethods inherited from class edu.cnu.mdi.graphics.rubberband.AClickRubberband
ensureStarted, isClickBased, mouseMovedMethods inherited from class edu.cnu.mdi.graphics.rubberband.ARubberband
addPoint, begin, cancel, endRubberbanding, getCurrent, getRubberbandVertices, getStart, isActive, modifyCurrentPoint, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseReleased, setActive, setCurrent, setFillColor, setHighlightColor1, setHighlightColor2, startRubberbanding
-
Constructor Details
-
RubberTwoClickLine
-
-
Method Details
-
approvePoint
Description copied from class:ALineClickRubberbandHook for approval (e.g., TWO_CLICK_LINE). Default accepts.- Overrides:
approvePointin classALineClickRubberband
-