|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--edu.umd.cs.jazz.event.ZFilteredEventHandler
|
+--edu.umd.cs.jazz.event.ZSelectionScaleHandler
ZSelectionScaleHandler is a selection handler for use with a
ZSelectionManager. ZSelectionScaleHandler allows
the user to scale the current selection using the PgUp / PgDn keys.
ZSelectionManager,
ZCompositeSelectionHandler| Nested Class Summary |
| Nested classes inherited from class edu.umd.cs.jazz.event.ZFilteredEventHandler |
ZFilteredEventHandler.ZFilteredEventDispatcher |
| Field Summary |
| Fields inherited from class edu.umd.cs.jazz.event.ZFilteredEventHandler |
fFilteredEventDispatcher, fMouseFilter |
| Constructor Summary | |
ZSelectionScaleHandler(ZCamera aIgnoredCamera,
ZCanvas aFilteredKeyEventSouce)
Deprecated. As of Jazz version 1.2, use ZSelectionScaleHandler(ZCanvas aFilteredKeyEventSouce) instead. |
|
ZSelectionScaleHandler(ZCanvas aFilteredKeyEventSouce)
Constructs a new ZSelectionScaleHandler. |
|
| Method Summary | |
protected void |
filteredKeyPressed(java.awt.event.KeyEvent e)
Invoked when a key is pressed on the key event souce and the event filter accepts the event. |
double |
getScaleFactor()
Get the scale factor for incremental scales. |
protected void |
scaleSelectionBy(double aScaleFactor)
Scale the selection by the given scale factor around the centerpoint of the bounds for the entire selection. |
protected void |
scaleSelectionDown()
Scale the selection down by the current scale factor. |
protected void |
scaleSelectionUp()
Scale the selection up by the current scale factor. |
void |
setScaleFactor(double aScaleFactor)
Set the scale factor for incremental scales. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZSelectionScaleHandler(ZCanvas aFilteredKeyEventSouce)
aFilteredKeyEventSouce - the source for filtered KeyEvents. See the ZFilteredEventHandler class comment
to customize this behavior.
public ZSelectionScaleHandler(ZCamera aIgnoredCamera,
ZCanvas aFilteredKeyEventSouce)
ZSelectionScaleHandler(ZCanvas aFilteredKeyEventSouce) instead.
| Method Detail |
public double getScaleFactor()
public void setScaleFactor(double aScaleFactor)
protected void filteredKeyPressed(java.awt.event.KeyEvent e)
filteredKeyPressed in class ZFilteredEventHandlere - the filtered key pressed event accepted by the event filter.protected void scaleSelectionUp()
protected void scaleSelectionDown()
protected void scaleSelectionBy(double aScaleFactor)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||