Package hec.gfx2d
Class G2dZoomAdapter
java.lang.Object
hec.gfx2d.G2dMouseAdapter
hec.gfx2d.G2dZoomAdapter
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,Serializable
,EventListener
Zoom adapter .
- See Also:
-
Field Summary
FieldsFields inherited from class hec.gfx2d.G2dMouseAdapter
_g2dPanel, _propertyChangeSupport, _viewport
-
Constructor Summary
ConstructorsConstructorDescriptionG2dZoomAdapter
(G2dZoomComponent c, JPanel canvas) Constructs a new G2dZoomAdapter. -
Method Summary
Methods inherited from class hec.gfx2d.G2dMouseAdapter
abort, addPropertyChangeListener, addPropertyChangeListener, init, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved, pressedButton1, pressedButton2, pressedButton3, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
ZOOM_CURSOR
- See Also:
-
_zoomCursor
-
zComp
-
-
Constructor Details
-
G2dZoomAdapter
Constructs a new G2dZoomAdapter.- Parameters:
c
- - the component to get zoom notificationscanvas
- - the panel to set the cursor
-
-
Method Details
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classG2dMouseAdapter
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classG2dMouseAdapter
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classG2dMouseAdapter
-
setCursorImage
-
getCursor
- Overrides:
getCursor
in classG2dMouseAdapter
-