| 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 Modepublic void redoOneStep()
redoOneStep in interface Modepublic boolean isDragging()
isDragging in interface Modepublic GraphicsSource getGraphicsSource()
getGraphicsSource in interface Modepublic boolean canChangeLayer()
canChangeLayer in interface Modepublic 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 Modepublic 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 Modepublic 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 Modepublic 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 Modepublic void srcRectUpdated(Rectangle srcRect, double magnification)
srcRectUpdated in interface Modepublic void magnificationUpdated(Rectangle srcRect, double magnification)
magnificationUpdated in interface ModeCopyright © 2015–2021 Fiji. All rights reserved.