|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.instrument.Link<ScaleShapes,DnD,Border>
net.sf.latexdraw.instruments.Border.DnD2Scale
private static class Border.DnD2Scale
This link maps a DnD interaction on a scale handler to an action that scales the selection.
Field Summary | |
---|---|
protected IPoint |
p1
The point corresponding to the 'press' position. |
protected double |
xGap
The x gap (gap between the pressed position and the targeted position) of the X-scaling. |
protected double |
yGap
The y gap (gap between the pressed position and the targeted position) of the Y-scaling. |
Fields inherited from class org.malai.instrument.Link |
---|
action, clazzAction, execute, instrument, interaction |
Constructor Summary | |
---|---|
protected |
Border.DnD2Scale(Border ins)
|
Method Summary | |
---|---|
private ScaleHandler |
getScaleHandler()
|
void |
initAction()
After being created by method createAction, the action must be initialised by this method. |
void |
interimFeedback()
Defines the interim feedback of the link. |
boolean |
isConditionRespected()
|
private void |
setXGap(IShape.Position refPosition,
IPoint tl,
IPoint br)
|
private void |
setYGap(IShape.Position refPosition,
IPoint tl,
IPoint br)
|
void |
updateAction()
Updates the current action. |
Methods inherited from class org.malai.instrument.Link |
---|
addEventable, clearEvents, createAction, getAction, getInstrument, getInteraction, interactionAborts, interactionStarts, interactionStops, interactionUpdates, isActivated, isExecute, isInteractionMustBeAborted, isRunnable, isRunning, setActivated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IPoint p1
protected double xGap
protected double yGap
Constructor Detail |
---|
protected Border.DnD2Scale(Border ins) throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException
Method Detail |
---|
private void setXGap(IShape.Position refPosition, IPoint tl, IPoint br)
private void setYGap(IShape.Position refPosition, IPoint tl, IPoint br)
public void initAction()
Link
initAction
in class Link<ScaleShapes,DnD,Border>
public void updateAction()
Link
updateAction
in class Link<ScaleShapes,DnD,Border>
public boolean isConditionRespected()
isConditionRespected
in class Link<ScaleShapes,DnD,Border>
public void interimFeedback()
Link
interimFeedback
in class Link<ScaleShapes,DnD,Border>
private ScaleHandler getScaleHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |