public abstract class GroupingMode extends Object implements Mode
| Modifier and Type | Class and Description |
|---|---|
protected class |
GroupingMode.GroupedGraphicsSource |
protected class |
GroupingMode.Painter |
protected static class |
GroupingMode.PatchRange |
protected static class |
GroupingMode.ScreenPatchRange<T> |
protected class |
GroupingMode.SimpleThread |
| Modifier and Type | Field and Description |
|---|---|
protected Display |
display |
protected GroupingMode.GroupedGraphicsSource |
gs |
protected Layer |
layer |
protected double |
magnification |
protected List<Patch> |
originalPatches |
protected GroupingMode.Painter |
painter |
protected List<GroupingMode.PatchRange> |
ranges |
protected HashMap<Paintable,GroupingMode.ScreenPatchRange<?>> |
screenPatchRanges |
protected Rectangle |
srcRect |
protected ini.trakem2.display.GroupingMode.Updater |
updater |
| Constructor and Description |
|---|
GroupingMode(Display display,
List<Displayable> selected) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel() |
boolean |
canChangeLayer() |
boolean |
canPan() |
boolean |
canZoom() |
protected abstract GroupingMode.GroupedGraphicsSource |
createGroupedGraphicSource() |
protected abstract GroupingMode.ScreenPatchRange<?> |
createScreenPathRange(GroupingMode.PatchRange range,
Rectangle srcRect,
double magnification) |
protected abstract void |
doPainterUpdate(Rectangle r,
double m) |
GraphicsSource |
getGraphicsSource() |
Rectangle |
getRepaintBounds() |
protected void |
initThreads() |
void |
magnificationUpdated(Rectangle srcRect,
double magnification) |
protected void |
quitThreads() |
void |
redoOneStep() |
void |
srcRectUpdated(Rectangle srcRect,
double magnification) |
void |
undoOneStep() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, isDragging, mouseDragged, mousePressed, mouseReleasedprotected final Display display
protected final Layer layer
protected final ini.trakem2.display.GroupingMode.Updater updater
protected final GroupingMode.Painter painter
protected Rectangle srcRect
protected double magnification
protected final GroupingMode.GroupedGraphicsSource gs
protected final List<GroupingMode.PatchRange> ranges
protected HashMap<Paintable,GroupingMode.ScreenPatchRange<?>> screenPatchRanges
public GroupingMode(Display display, List<Displayable> selected)
protected final void initThreads()
protected final void quitThreads()
protected abstract GroupingMode.GroupedGraphicsSource createGroupedGraphicSource()
protected abstract GroupingMode.ScreenPatchRange<?> createScreenPathRange(GroupingMode.PatchRange range, Rectangle srcRect, double magnification)
protected abstract void doPainterUpdate(Rectangle r, double m)
r - The srcRectm - The magnificationpublic boolean canChangeLayer()
canChangeLayer in interface Modepublic void srcRectUpdated(Rectangle srcRect, double magnification)
srcRectUpdated in interface Modepublic void magnificationUpdated(Rectangle srcRect, double magnification)
magnificationUpdated in interface Modepublic void redoOneStep()
redoOneStep in interface Modepublic void undoOneStep()
undoOneStep in interface Modepublic Rectangle getRepaintBounds()
getRepaintBounds in interface Modepublic GraphicsSource getGraphicsSource()
getGraphicsSource in interface ModeCopyright © 2015–2021 Fiji. All rights reserved.