|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--venice.VCompositeSelectionHandler
VCompositeSelectionHandler
is a convenience class that allows
applications to use a single event handler to manage the multiple jazz
selection event handlers. Class is derived from ZCompositeSelectionHandler.
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.
THIS IS A MODIFIED VERSION OF ZCOMPOSITESELECTIONHANDLER FROM JAZZ CODE!
Field Summary | |
private boolean |
active
true when event handler is active |
static int |
ALL_AVAILABLE
Flag used to indicate all available selection behaviors |
private edu.umd.cs.jazz.ZCamera |
camera
non-null only if this event handler is active on a single camera |
private edu.umd.cs.jazz.util.ZCanvas |
canvas
canvas this event handler attaches to |
static int |
DELETE
Flag used to indicate selection deletion |
private edu.umd.cs.jazz.event.ZSelectionDeleteHandler |
deleteHandler
Selection delete handler |
private int |
enabledFlag
The current enabled event handlers |
private boolean |
globallyActive
true if this event handler is active on all cameras |
private edu.umd.cs.jazz.ZLayerGroup |
layer
Marquee layer |
static int |
MODIFY
Flag used to indicate selection modification |
private VSelectionModifyHandler |
modifyHandler
Selection modify handler |
static int |
MOVE
Flag used to indicate selection movement |
private edu.umd.cs.jazz.event.ZSelectionMoveHandler |
moveHandler
Selection move handler |
private edu.umd.cs.jazz.ZNode |
node
node this event handler attaches to |
static int |
RESIZE
Flag used to indicate selection resizing |
private edu.umd.cs.jazz.event.ZSelectionResizeHandler |
resizeHandler
Selection resize handler |
static int |
SCALE
Flag used to indicate selection keyboard scaling |
private edu.umd.cs.jazz.event.ZSelectionScaleHandler |
scaleHandler
Selection scale handler |
Constructor Summary | |
VCompositeSelectionHandler(edu.umd.cs.jazz.ZNode node,
edu.umd.cs.jazz.ZCamera camera,
edu.umd.cs.jazz.util.ZCanvas canvas,
edu.umd.cs.jazz.ZLayerGroup marqueeLayer)
Creates a composite selection handler with all available selection event handler types enabled. |
|
VCompositeSelectionHandler(edu.umd.cs.jazz.ZNode node,
edu.umd.cs.jazz.ZCamera camera,
edu.umd.cs.jazz.util.ZCanvas canvas,
edu.umd.cs.jazz.ZLayerGroup marqueeLayer,
int flags)
Creates a composite selection handler with the specified enabled selection event handler types. |
|
VCompositeSelectionHandler(edu.umd.cs.jazz.ZNode node,
edu.umd.cs.jazz.util.ZCanvas canvas,
edu.umd.cs.jazz.ZLayerGroup marqueeLayer)
Creates a composite selection handler with all available selection event handler types enabled. |
|
VCompositeSelectionHandler(edu.umd.cs.jazz.ZNode node,
edu.umd.cs.jazz.util.ZCanvas canvas,
edu.umd.cs.jazz.ZLayerGroup marqueeLayer,
int flags)
Creates a composite selection handler with the specified enabled selection event handler types. |
Method Summary | |
edu.umd.cs.jazz.ZLayerGroup |
getMarqueeLayer()
|
edu.umd.cs.jazz.event.ZSelectionDeleteHandler |
getSelectionDeleteHandler()
This method returns the current selection delete handler if ZCompositeSelectionHandler.DELETE is enabled. |
VSelectionModifyHandler |
getSelectionModifyHandler()
This method returns the current selection modify handler if ZCompositeSelectionHandler.MODIFY is enabled. |
edu.umd.cs.jazz.event.ZSelectionMoveHandler |
getSelectionMoveHandler()
This method returns the current selection move handler if ZCompositeSelectionHandler.MOVE is enabled. |
edu.umd.cs.jazz.event.ZSelectionResizeHandler |
getSelectionResizeHandler()
This method returns the current selection resize handler if ZCompositeSelectionHandler.RESIZE is enabled. |
edu.umd.cs.jazz.event.ZSelectionScaleHandler |
getSelectionScaleHandler()
This method returns the current selection scale handler if ZCompositeSelectionHandler.SCALE is enabled. |
boolean |
isActive()
Determines if this event handler is active. |
void |
setActive(boolean active)
Specifies whether this event handler is active |
void |
setEnabled(int flags,
boolean enable)
Sets whether the specified event handlers are enabled. |
void |
setMarqueeLayer(edu.umd.cs.jazz.ZLayerGroup layer)
Sets the marquee layer for this event handler |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int MODIFY
public static final int MOVE
public static final int SCALE
public static final int DELETE
public static final int RESIZE
public static final int ALL_AVAILABLE
private int enabledFlag
private boolean active
private boolean globallyActive
private edu.umd.cs.jazz.ZNode node
private edu.umd.cs.jazz.ZCamera camera
private edu.umd.cs.jazz.util.ZCanvas canvas
private edu.umd.cs.jazz.ZLayerGroup layer
private VSelectionModifyHandler modifyHandler
private edu.umd.cs.jazz.event.ZSelectionMoveHandler moveHandler
private edu.umd.cs.jazz.event.ZSelectionScaleHandler scaleHandler
private edu.umd.cs.jazz.event.ZSelectionDeleteHandler deleteHandler
private edu.umd.cs.jazz.event.ZSelectionResizeHandler resizeHandler
Constructor Detail |
public VCompositeSelectionHandler(edu.umd.cs.jazz.ZNode node, edu.umd.cs.jazz.util.ZCanvas canvas, edu.umd.cs.jazz.ZLayerGroup marqueeLayer)
node
- The node to which this event hander attachescanvas
- The canvas for which this event handler is activemarqueeLayer
- The layer on which marquee selection is drawnpublic VCompositeSelectionHandler(edu.umd.cs.jazz.ZNode node, edu.umd.cs.jazz.ZCamera camera, edu.umd.cs.jazz.util.ZCanvas canvas, edu.umd.cs.jazz.ZLayerGroup marqueeLayer)
node
- The node to which this event hander attachescamera
- The camera on which this event handler operatescanvas
- The canvas for which this event handler is activemarqueeLayer
- The layer on which marquee selection is drawnpublic VCompositeSelectionHandler(edu.umd.cs.jazz.ZNode node, edu.umd.cs.jazz.util.ZCanvas canvas, edu.umd.cs.jazz.ZLayerGroup marqueeLayer, int flags)
flags
include boolean combinations of
MOVE
, MODIFY
, SCALE
,
DELETE
, and ALL_AVAILABLE
.node
- The node to which this event hander attachescanvas
- The canvas for which this event handler is activemarqueeLayer
- The layer on which marquee selection is drawnflags
- The event handlers to enablepublic VCompositeSelectionHandler(edu.umd.cs.jazz.ZNode node, edu.umd.cs.jazz.ZCamera camera, edu.umd.cs.jazz.util.ZCanvas canvas, edu.umd.cs.jazz.ZLayerGroup marqueeLayer, int flags)
flags
include boolean combinations of
MOVE
, MODIFY
, SCALE
,
DELETE
, and ALL_AVAILABLE
.node
- The node to which this event hander attachescamera
- The camera on which this event handler operatescanvas
- The canvas for which this event handler is activemarqueeLayer
- The layer on which marquee selection is drawnflags
- The event handlers to enableMethod Detail |
public void setActive(boolean active)
setActive
in interface edu.umd.cs.jazz.event.ZEventHandler
active
- True to make this event handler activepublic boolean isActive()
isActive
in interface edu.umd.cs.jazz.event.ZEventHandler
public edu.umd.cs.jazz.ZLayerGroup getMarqueeLayer()
public void setMarqueeLayer(edu.umd.cs.jazz.ZLayerGroup layer)
layer
- The new marquee layerpublic void setEnabled(int flags, boolean enable)
flags
include boolean combinations of
MOVE
, MODIFY
, SCALE
,
DELETE
, and ALL_AVAILABLE
.flags
- The event handlers to enable or disableenable
- Should the specified event handlers be enabled or disabledpublic VSelectionModifyHandler getSelectionModifyHandler()
ZCompositeSelectionHandler.MODIFY
is enabled. Otherwise
it returns null.public edu.umd.cs.jazz.event.ZSelectionMoveHandler getSelectionMoveHandler()
ZCompositeSelectionHandler.MOVE
is enabled. Otherwise
it returns null.public edu.umd.cs.jazz.event.ZSelectionScaleHandler getSelectionScaleHandler()
ZCompositeSelectionHandler.SCALE
is enabled. Otherwise
it returns null.public edu.umd.cs.jazz.event.ZSelectionDeleteHandler getSelectionDeleteHandler()
ZCompositeSelectionHandler.DELETE
is enabled. Otherwise
it returns null.public edu.umd.cs.jazz.event.ZSelectionResizeHandler getSelectionResizeHandler()
ZCompositeSelectionHandler.RESIZE
is enabled. Otherwise
it returns null.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |