Package edu.cnu.mdi.graphics.rubberband
Class ALineClickRubberband
java.lang.Object
edu.cnu.mdi.graphics.rubberband.ARubberband
edu.cnu.mdi.graphics.rubberband.AClickRubberband
edu.cnu.mdi.graphics.rubberband.ALineClickRubberband
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener
- Direct Known Subclasses:
RubberLine
Click-based 2-point line gesture:
- first click anchors
- second click ends
Approval hooks allow TWO_CLICK_LINE behavior without policy switches.
-
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
ConstructorsModifierConstructorDescriptionprotectedALineClickRubberband(Component component, IRubberbanded rubberbanded, ARubberband.Policy policy) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanapprovePoint(Point p, boolean isFirstPoint) Hook for approval (e.g., TWO_CLICK_LINE).voidMethods inherited from class edu.cnu.mdi.graphics.rubberband.AClickRubberband
ensureStarted, isClickBased, mouseMovedMethods inherited from class edu.cnu.mdi.graphics.rubberband.ARubberband
addPoint, begin, cancel, computeVertices, draw, endRubberbanding, getCurrent, getRubberbandBounds, getRubberbandVertices, getStart, isActive, isGestureValid, modifyCurrentPoint, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseReleased, setActive, setCurrent, setFillColor, setHighlightColor1, setHighlightColor2, startRubberbanding
-
Constructor Details
-
ALineClickRubberband
protected ALineClickRubberband(Component component, IRubberbanded rubberbanded, ARubberband.Policy policy)
-
-
Method Details
-
approvePoint
Hook for approval (e.g., TWO_CLICK_LINE). Default accepts. -
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classARubberband
-