Package edu.cnu.mdi.splot.plot
Class PlotToolHandler
java.lang.Object
edu.cnu.mdi.graphics.toolbar.DefaultToolHandler
edu.cnu.mdi.splot.plot.PlotToolHandler
- All Implemented Interfaces:
IToolHandler
-
Constructor Summary
ConstructorsConstructorDescriptionPlotToolHandler(PlotPanel plotPanel) Create a tool handler for the given plot panel. -
Method Summary
Modifier and TypeMethodDescriptionvoidboxZoomRubberbanding(GestureContext gc, Rectangle bounds) Box-zoom rubberband completion (or continuous feedback depending on tool).voidGet the toolbar associated with this tool handler.voidinfo(GestureContext gc) voidprint(GestureContext gc) voidvoidzoomIn(GestureContext gc) voidMethods inherited from class edu.cnu.mdi.graphics.toolbar.DefaultToolHandler
approveConnectionPoint, beginDragObject, createConnection, createEllipse, createLine, createPolygon, createPolyline, createRadArc, createRectangle, createTextItem, delete, doNotDrag, dragObjectBy, endDragObject, hitTest, magnifyDoneMove, magnifyStartMove, magnifyUpdateMove, panDoneDrag, panStartDrag, panUpdateDrag, pointerClick, pointerDoubleClick, pointerRubberbanding, recenter, styleEdit, undoZoom
-
Constructor Details
-
PlotToolHandler
Create a tool handler for the given plot panel.- Parameters:
plotPanel- Plot panel
-
-
Method Details
-
getToolBar
Get the toolbar associated with this tool handler.- Returns:
- Toolbar
-
info
- Specified by:
infoin interfaceIToolHandler- Overrides:
infoin classDefaultToolHandler- Parameters:
gc- context (non-null)
-
boxZoomRubberbanding
Description copied from interface:IToolHandlerBox-zoom rubberband completion (or continuous feedback depending on tool).- Specified by:
boxZoomRubberbandingin interfaceIToolHandler- Overrides:
boxZoomRubberbandingin classDefaultToolHandler- Parameters:
gc- gesture context (non-null)bounds- rubberband bounds (non-null)
-
zoomIn
- Specified by:
zoomInin interfaceIToolHandler- Overrides:
zoomInin classDefaultToolHandler- Parameters:
gc- context (non-null)
-
zoomOut
- Specified by:
zoomOutin interfaceIToolHandler- Overrides:
zoomOutin classDefaultToolHandler- Parameters:
gc- context (non-null)
-
resetZoom
- Specified by:
resetZoomin interfaceIToolHandler- Overrides:
resetZoomin classDefaultToolHandler- Parameters:
gc- context (non-null)
-
captureImage
- Specified by:
captureImagein interfaceIToolHandler- Overrides:
captureImagein classDefaultToolHandler- Parameters:
gc- context (non-null)
-
print
- Specified by:
printin interfaceIToolHandler- Overrides:
printin classDefaultToolHandler- Parameters:
gc- context (non-null)
-