Constructor and Description |
---|
AffineTransformMode(Display display) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply() |
protected void |
applyAndPropagate(Set<Layer> sublist)
Skips current layer, since its done already.
|
boolean |
cancel() |
boolean |
canChangeLayer() |
boolean |
canPan() |
boolean |
canZoom() |
void |
centerFloater() |
int |
getFloaterX() |
int |
getFloaterY() |
GraphicsSource |
getGraphicsSource() |
Rectangle |
getRepaintBounds() |
boolean |
isDragging() |
void |
magnificationUpdated(Rectangle srcRect,
double magnification) |
void |
mouseDragged(MouseEvent me,
int x_p,
int y_p,
int x_d,
int y_d,
int x_d_old,
int y_d_old) |
void |
mousePressed(MouseEvent me,
int x_p,
int y_p,
double magnification) |
void |
mouseReleased(MouseEvent me,
int x_p,
int y_p,
int x_d,
int y_d,
int x_r,
int y_r) |
void |
redoOneStep() |
void |
resetBox()
Recalculate box and reset handles.
|
void |
rotate(double angle,
int xo,
int yo)
Rotate the objects in the current selection by the given angle, in degrees, relative to the x_o, y_o origin.
|
void |
scale(double sx,
double sy)
Scale all selected objects and their links by by the given scales, relative to the floater position.
|
void |
setFloater(int x,
int y)
No display bounds are checked, the floater can be placed wherever you want.
|
void |
srcRectUpdated(Rectangle srcRect,
double magnification) |
void |
translate(double dx,
double dy)
Translate all selected objects and their links by the given differentials.
|
void |
undoOneStep() |
public AffineTransformMode(Display display)
public void undoOneStep()
undoOneStep
in interface Mode
public void redoOneStep()
redoOneStep
in interface Mode
public boolean isDragging()
isDragging
in interface Mode
public GraphicsSource getGraphicsSource()
getGraphicsSource
in interface Mode
public boolean canChangeLayer()
canChangeLayer
in interface Mode
public void centerFloater()
public void setFloater(int x, int y)
public int getFloaterX()
public int getFloaterY()
protected void applyAndPropagate(Set<Layer> sublist)
public void mousePressed(MouseEvent me, int x_p, int y_p, double magnification)
mousePressed
in interface Mode
public void mouseDragged(MouseEvent me, int x_p, int y_p, int x_d, int y_d, int x_d_old, int y_d_old)
mouseDragged
in interface Mode
public void mouseReleased(MouseEvent me, int x_p, int y_p, int x_d, int y_d, int x_r, int y_r)
mouseReleased
in interface Mode
public void resetBox()
public void rotate(double angle, int xo, int yo)
public void translate(double dx, double dy)
public void scale(double sx, double sy)
public Rectangle getRepaintBounds()
getRepaintBounds
in interface Mode
public void srcRectUpdated(Rectangle srcRect, double magnification)
srcRectUpdated
in interface Mode
public void magnificationUpdated(Rectangle srcRect, double magnification)
magnificationUpdated
in interface Mode
Copyright © 2015–2021 Fiji. All rights reserved.