|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.event.ZSelectionResizeHandler
ZSelectionResizeHandler is a selection handler for use with
ZSelectionManager. ZSelectionResizeHandler
renders
resize "handles" over the current selection, and allows the user to
resize the selection by dragging these handles.
Resizing works as expected from drawing applications such as PowerPoint. Dragging a resize handle allows for unconstrained scaling while shift-drag allows constrained proportion scaling.
Warning: Serialized and ZSerialized objects of this class will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.
ZSelectionManager
,
ZSelectionModifyHandler
,
ZSelectionMoveHandler
,
ZSelectionDeleteHandler
,
ZSelectionScaleHandler
, Serialized FormInner Class Summary | |
static class |
ZSelectionResizeHandler.ResizeEvent
An event to signal that a node has been resized by this event handler. |
static interface |
ZSelectionResizeHandler.ResizeListener
Interface that a class must implement to handle the resizing of the selected nodes for a given ZSelectionResizeHandler. |
Field Summary | |
protected javax.swing.event.EventListenerList |
listenerList
registered event listeners |
protected static double |
RESIZE_HANDLE_SIZE
The resize handle size |
Constructor Summary | |
ZSelectionResizeHandler(ZNode node)
Construct a new ZSelectionResizeHandler which will be active across all cameras |
|
ZSelectionResizeHandler(ZNode node,
ZCamera camera)
Construct a new ZSelectionResizeHandler. |
Method Summary | |
void |
addResizeListener(ZSelectionResizeHandler.ResizeListener l)
Add a ResizeListener, registered for nodeResized events. |
protected void |
fireResizeEvent(ZSelectionResizeHandler.ResizeEvent re)
Fires the resize event on the appropriate listeners |
java.awt.Color |
getHighLightColor()
Gets the current highlight color |
protected void |
init()
Initializes this event handler |
boolean |
isActive()
Determines if this event handler is active. |
void |
nodeAdded(ZGroupEvent e)
required method of ZGroupListener: |
void |
nodeRemoved(ZGroupEvent e)
required method of ZGroupListener: |
void |
removeResizeListener(ZSelectionResizeHandler.ResizeListener l)
Remove a ResizeListener, registered for nodeResized events. |
void |
setActive(boolean active)
Specifies whether this event handler is active |
void |
setDefaultResizeListenerActive(boolean active)
Remove the default resize listener |
void |
setHighLightColor(java.awt.Color color)
Sets the highlight color for this resize handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static double RESIZE_HANDLE_SIZE
protected transient javax.swing.event.EventListenerList listenerList
Constructor Detail |
public ZSelectionResizeHandler(ZNode node)
node
- The node to which this handler attachespublic ZSelectionResizeHandler(ZNode node, ZCamera camera)
node
- The node to which this handler attachescamera
- The camera to which this handler attachesMethod Detail |
public void addResizeListener(ZSelectionResizeHandler.ResizeListener l)
l
- The resize listener to registerprotected void fireResizeEvent(ZSelectionResizeHandler.ResizeEvent re)
re
- The resize event to be firedpublic java.awt.Color getHighLightColor()
protected void init()
public boolean isActive()
isActive
in interface ZEventHandler
public void nodeAdded(ZGroupEvent e)
nodeAdded
in interface ZGroupListener
edu.umd.cs.jazz.event.ZGroupListener
e
- The group event.public void nodeRemoved(ZGroupEvent e)
nodeRemoved
in interface ZGroupListener
edu.umd.cs.jazz.event.ZGroupListener
e
- The group event.public void removeResizeListener(ZSelectionResizeHandler.ResizeListener l)
l
- The resize listener to un-registerpublic void setActive(boolean active)
setActive
in interface ZEventHandler
active
- True to make this event handler activepublic void setDefaultResizeListenerActive(boolean active)
public void setHighLightColor(java.awt.Color color)
color
- The new highlight color
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |