public class ContrastAdjustmentMode extends GroupingMode
GroupingMode.GroupedGraphicsSource, GroupingMode.Painter, GroupingMode.PatchRange, GroupingMode.SimpleThread
display, gs, layer, magnification, originalPatches, painter, ranges, screenPatchRanges, srcRect, updater
Constructor and Description |
---|
ContrastAdjustmentMode(Display display,
List<Displayable> selected) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply() |
boolean |
cancel() |
protected GroupingMode.GroupedGraphicsSource |
createGroupedGraphicSource() |
protected ini.trakem2.display.ContrastAdjustmentMode.ScreenPatchRange |
createScreenPathRange(GroupingMode.PatchRange range,
Rectangle srcRect,
double magnification) |
protected void |
doPainterUpdate(Rectangle r,
double m) |
boolean |
isDragging() |
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) |
canChangeLayer, canPan, canZoom, getGraphicsSource, getRepaintBounds, initThreads, magnificationUpdated, quitThreads, redoOneStep, srcRectUpdated, undoOneStep
public ContrastAdjustmentMode(Display display, List<Displayable> selected) throws Exception
Exception
protected void doPainterUpdate(Rectangle r, double m)
doPainterUpdate
in class GroupingMode
r
- The srcRectm
- The magnificationprotected GroupingMode.GroupedGraphicsSource createGroupedGraphicSource()
createGroupedGraphicSource
in class GroupingMode
protected ini.trakem2.display.ContrastAdjustmentMode.ScreenPatchRange createScreenPathRange(GroupingMode.PatchRange range, Rectangle srcRect, double magnification)
createScreenPathRange
in class GroupingMode
public void mousePressed(MouseEvent me, int x_p, int y_p, double magnification)
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)
public void mouseReleased(MouseEvent me, int x_p, int y_p, int x_d, int y_d, int x_r, int y_r)
public boolean isDragging()
public boolean apply()
public boolean cancel()
cancel
in interface Mode
cancel
in class GroupingMode
Copyright © 2015–2021 Fiji. All rights reserved.