| Constructor and Description |
|---|
DefaultMode(Display display) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply() |
boolean |
cancel() |
boolean |
canChangeLayer() |
boolean |
canPan() |
boolean |
canZoom() |
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 |
srcRectUpdated(Rectangle srcRect,
double magnification) |
void |
undoOneStep() |
public DefaultMode(Display display)
public GraphicsSource getGraphicsSource()
getGraphicsSource in interface Modepublic boolean canChangeLayer()
canChangeLayer in interface Modepublic boolean isDragging()
isDragging in interface Modepublic 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 undoOneStep()
undoOneStep in interface Modepublic void redoOneStep()
redoOneStep in interface Modepublic 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.