public final class Display extends DBObject implements ActionListener, ij.IJEventListener
Modifier and Type | Class and Description |
---|---|
protected class |
Display.GridOverlay |
Modifier and Type | Field and Description |
---|---|
static int |
CT_APPEND |
static int |
CT_PREAPPEND |
static int |
CT_REPLACE
coordinate transform transfer modes
|
protected Dispatcher |
dispatcher
A thread to handle user actions, for example an event sent from a popup menu.
|
protected Display.GridOverlay |
gridoverlay |
protected static int |
REPAINT_MULTI_LAYER |
protected static int |
REPAINT_RGB_LAYER |
protected static int |
REPAINT_SINGLE_LAYER |
Constructor and Description |
---|
Display(Project project,
Layer layer)
A new Display from scratch, to show the given Layer.
|
Display(Project project,
Layer layer,
Displayable displ)
Open a new Display centered around the given Displayable.
|
Display(Project project,
long id,
Layer layer,
HashMap<String,String> ht)
Reconstruct a Display from an XML entry, to be opened when everything is ready.
|
Display(Project project,
long id,
Layer layer,
Object[] props)
For reconstruction purposes.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ae) |
protected static void |
add(Layer layer,
Displayable displ) |
protected static void |
add(Layer layer,
Displayable displ,
boolean activate)
Find the displays that show the given Layer, and add the given Displayable to the GUI and sets it active only in the front Display and only if 'activate' is true.
|
protected static void |
add(LayerSet set,
ZDisplayable zdispl)
Add the ZDisplayable to all Displays that show a Layer belonging to the given LayerSet.
|
protected static void |
addAll(Layer layer,
Collection<? extends Displayable> coll) |
protected static void |
addAll(LayerSet set,
Collection<? extends ZDisplayable> coll) |
int |
addTab(String title,
Component comp)
Returns the tab index in this Display's JTabbedPane.
|
void |
adjustGroupProperties(Collection<Displayable> col)
Pops up a dialog to adjust the alpha, visible, color, locked and compositeMode of all Displayables in
col . |
void |
adjustMeasurementOptions() |
void |
adjustMinAndMaxGUI() |
void |
adjustProperties() |
void |
animateBrowsingTo(Coordinate<?> c) |
protected Image |
applyFilters(Image img) |
protected ij.ImagePlus |
applyFilters(ij.ImagePlus imp) |
protected ij.ImagePlus |
applyFilters(ij.process.ImageProcessor ip) |
Bureaucrat |
applyPatchTask(List<Patch> patches,
String taskTitle,
Operation<Boolean,Patch> task,
Filter<Patch> filter)
Meant for tasks that require setting an undo and regenerating mipmaps.
|
void |
center(Coordinate<?> c) |
void |
center(double x,
double y)
Center the view, if possible, on x,y.
|
static void |
centerAt(Coordinate c) |
static void |
centerAt(Coordinate<Displayable> c,
boolean select,
boolean shift_down) |
void |
centerIfNotWithinSrcRect(Coordinate<?> c) |
protected void |
choose(int screen_x_p,
int screen_y_p,
int x_p,
int y_p) |
protected void |
choose(int screen_x_p,
int screen_y_p,
int x_p,
int y_p,
boolean shift_down,
Class<?> c)
Find a Displayable to add to the selection under the given point (which is in offscreen coords); will use a popup menu to give the user a range of Displayable objects to select from.
|
protected void |
choose(int screen_x_p,
int screen_y_p,
int x_p,
int y_p,
Class<?> c) |
void |
clearColumnScreenshots() |
static void |
clearColumnScreenshots(LayerSet ls) |
static void |
clearSelection() |
static void |
clearSelection(Layer layer) |
static void |
clearSelection(Project p) |
static void |
close(Layer layer)
Find all Display instances that contain the layer and close them and remove the Display from the database.
|
static void |
close(Project project)
Find all Display instances that contain a Layer of the given project and close them without removing the Display entries from the database.
|
static void |
createDisplay(Project project,
Layer layer)
Creates a new Display with adjusted magnification to fit in the screen.
|
protected void |
destroy()
Release all resources held by this Display and close the frame.
|
protected void |
duplicateLinkAndSendTo(Displayable active,
int position,
Layer other_layer) |
void |
eventOccurred(int eventID) |
static void |
exportDTD(StringBuilder sb_header,
HashSet<String> hs,
String indent)
Export the DTD that defines this object.
|
static void |
exportXML(Project project,
Writer writer,
String indent,
XMLOptions options)
Export all displays of the given project as XML entries.
|
<T extends Displayable> |
find()
Open a
GenericDialog to ask for parameters to find all Displayable that abide to them. |
<T extends Displayable> |
find(String regex,
boolean visible_only,
Class<T> c,
int firstLayerIndex,
int lastLayerIndex) |
static <T extends Displayable> |
find(String regex,
boolean visible_only,
Class<T> c,
List<Layer> layers) |
static void |
flush(Displayable displ)
Cleanup internal lists that may contain the given Displayable.
|
static void |
flushAll()
Release memory captured by the offscreen images
|
Displayable |
getActive() |
Rectangle |
getBounds() |
DisplayCanvas |
getCanvas() |
int |
getChannelAlphas() |
int |
getChannelAlphasState() |
protected Set<Class<?>> |
getClassesToMultiPaint()
Only Patch, Stack; AreaList, Profile; and DLabel are considered.
|
int |
getDisplayChannelAlphas() |
static int |
getDisplayCount() |
static Vector<Display> |
getDisplays() |
JFrame |
getFrame() |
static Display |
getFront()
Can be null.
|
static Display |
getFront(Project project)
Get a pointer to a Display for @param project, or null if none.
|
static Layer |
getFrontLayer()
Get the layer of the front Display, or null if none.
|
static Layer |
getFrontLayer(Project project)
Get the layer of an open Display of the given Project, or null if none.
|
Layer |
getLayer() |
protected byte |
getLayerCompositeMode(Layer layer) |
LayerSet |
getLayerSet() |
Point |
getLocation() |
Mode |
getMode() |
DisplayNavigator |
getNavigator() |
static Display |
getOrCreateFront(Project project) |
protected int |
getPaintMode(HashMap<Color,Layer> hm,
ArrayList<LayerPanel> list)
Sets the values atomically, returns the painting mode.
|
protected JPopupMenu |
getPopupMenu()
Return a context-sensitive popup menu.
|
Roi |
getRoi()
Get the current
Roi , if any. |
int |
getScrollStep()
The number of layers to scroll through with the wheel; 1 by default.
|
static List<Displayable> |
getSelected()
Return the list of selected Displayable objects of the front Display, or an emtpy list if no Display or none selected.
|
static List<? extends Displayable> |
getSelected(Class<? extends Displayable> c)
Return the list of selected Displayable objects of class @param c of the front Display, or an emtpy list if no Display or none selected.
|
Selection |
getSelection() |
JTabbedPane |
getTabbedPane()
Feel free to add more tabs.
|
void |
hideDeselected(boolean not_images) |
void |
imageClosed(ij.ImagePlus imp) |
void |
imageOpened(ij.ImagePlus imp) |
protected Bureaucrat |
importImage() |
protected Bureaucrat |
importNextImage() |
protected boolean |
isActiveWindow() |
boolean |
isLiveFilteringEnabled() |
boolean |
isPartiallyWithinViewport(Displayable d)
Check if a panel for the given Displayable is partially visible in the JScrollPane
|
boolean |
isReadOnly() |
boolean |
isSelected(Displayable d) |
boolean |
isShowing(Layer layer) |
boolean |
isTransforming()
Find out whether this Display is Transforming its active Displayable.
|
static boolean |
isTransforming(Displayable displ)
Find whether any Display is transforming the given Displayable.
|
boolean |
isWithinViewport(Displayable d)
Check if a panel for the given Displayable is completely visible in the JScrollPane
|
void |
nextLayer(int modifiers)
If shift is down, scroll to the next non-empty layer; otherwise, if scroll_step is larger than 1, then scroll 'scroll_step' layers ahead; else just the next Layer.
|
static Bureaucrat |
openLater()
After reloading a project from the database, open the Displays that the project had.
|
void |
pack() |
static void |
pack(LayerSet ls) |
boolean |
paintsBelow(Displayable base,
Displayable other)
If the other paints under the base.
|
void |
previousLayer(int modifiers)
If shift is down, scroll to the previous non-empty layer; otherwise, if scroll_step is larger than 1, then scroll 'scroll_step' layers backward; else just the previous Layer.
|
boolean |
remove(boolean check)
Close this Display window.
|
static void |
remove(Layer layer)
Find all Display instances that are showing the layer and either move to the next or previous layer, or close it if none.
|
static void |
remove(Layer layer,
Displayable displ)
Find the displays that show the given Layer, and remove the given Displayable from the GUI.
|
static void |
remove(ZDisplayable zdispl) |
static Bureaucrat |
removeAlphaMasks(Collection<Patch> patches) |
Bureaucrat |
removeCoordinateTransforms(List<Patch> patches) |
Bureaucrat |
removeScalingRotationShear(List<Patch> patches) |
static void |
repaint()
Call repaint on all open Displays.
|
static void |
repaint(Displayable d) |
static void |
repaint(Layer layer)
Repaint the entire Layer, in all Displays showing it, including the tabs.
|
static void |
repaint(Layer layer,
Displayable displ)
Repaint the DisplayablePanel (and DisplayNavigator) only for the given Displayable, in all Displays showing the given Layer.
|
static void |
repaint(Layer layer,
Displayable displ,
int extra) |
static void |
repaint(Layer layer,
Displayable displ,
Rectangle r,
int extra) |
static void |
repaint(Layer layer,
Displayable displ,
Rectangle r,
int extra,
boolean repaint_navigator)
Find the displays that show the given Layer, and repaint the given Displayable; does NOT update graphics for the offscreen image.
|
static void |
repaint(Layer layer,
Displayable displ,
Rectangle r,
int extra,
boolean update_graphics,
boolean repaint_navigator) |
static void |
repaint(Layer layer,
int extra,
Rectangle r,
boolean update_navigator) |
static void |
repaint(Layer layer,
int extra,
Rectangle r,
boolean update_navigator,
boolean update_graphics) |
static void |
repaint(Layer layer,
Rectangle r,
int extra)
Repaint the given Rectangle in all Displays showing the layer, updating the offscreen image if any.
|
static void |
repaint(Layer layer,
Rectangle r,
int extra,
boolean update_graphics)
Repaint the given Rectangle in all Displays showing the layer, optionally updating the offscreen image (if any).
|
static void |
repaint(LayerSet set)
Repaint the entire LayerSet, in all Displays showing a Layer of it.
|
static void |
repaint(LayerSet set,
Displayable displ,
int extra) |
static void |
repaint(LayerSet set,
Displayable displ,
Rectangle r,
int extra) |
static void |
repaint(LayerSet set,
Displayable displ,
Rectangle r,
int extra,
boolean repaint_navigator)
Repaint the Displayable in every Display that shows a Layer belonging to the given LayerSet.
|
static void |
repaint(LayerSet set,
Rectangle box)
Repaint the given box in the LayerSet, in all Displays showing a Layer of it.
|
void |
repaintAll()
Repaint both the canvas and the navigator, updating the graphics, and the title and tabs.
|
void |
repaintAll2()
Repaint the canvas updating graphics, the navigator without updating graphics, and the title.
|
void |
repaintAll3()
Repaint the canvas updating graphics, and the navigator without updating graphics.
|
static void |
repaintSnapshot(Displayable displ)
Repaint the snapshot for the given Displayable both at the DisplayNavigator and on its panel,and only if it has not been painted before.
|
protected static void |
repaintSnapshots(Layer layer) |
protected static void |
repaintSnapshots(LayerSet set) |
static void |
repaintToolbar() |
void |
repairGUI()
Repair possibly missing panels and other components by simply resetting the same Layer
|
protected void |
resetLayerAlphas()
Set all layer alphas to zero, and repaint canvas.
|
protected void |
resetLayerColors()
Remove all red/blue coloring of layers, and repaint canvas.
|
protected void |
resetLayerComposites() |
void |
resizeCanvas() |
void |
resizeCanvas(Rectangle bounds) |
void |
select(Displayable d) |
void |
select(Displayable d,
boolean shift_down)
Select/deselect accordingly to the current state and the shift key.
|
protected void |
setActive(Displayable displ)
Used by the Selection exclusively.
|
static void |
setActive(Object event,
Displayable displ) |
void |
setActiveChannel(Channel channel)
Set the channel as active and the others as inactive.
|
void |
setChannel(int c,
float alpha)
Make the given channel have the given alpha (transparency).
|
protected void |
setColorChannel(Layer layer,
Color color)
Set a layer to be painted as a specific color channel in the canvas.
|
Bureaucrat |
setCoordinateTransform(List<Patch> patches,
CoordinateTransform ct,
boolean append)
Deprecated.
Use
setCoordinateTransform(List, CoordinateTransform, int) instead which implements pre-appending as a third mode. |
Bureaucrat |
setCoordinateTransform(List<Patch> patches,
CoordinateTransform ct,
int existingTransform) |
static void |
setCursorToAll(Cursor c) |
static void |
setFront(Layer layer,
Displayable displ)
Grab the last selected display (or create an new one if none) and show in it the layer,centered on the Displayable object.
|
void |
setLayer(Layer new_layer) |
protected void |
setLayerCompositeMode(Layer layer,
byte compositeMode) |
void |
setLocation(Point p) |
Bureaucrat |
setMeshResolution(List<Patch> patches,
int meshResolution) |
void |
setMode(Mode mode) |
static void |
setReceivesInput(Project project,
boolean b)
Toggle user input; pan and zoom are always enabled though.
|
protected static void |
setRepaint(boolean b)
Set a flag to enable/disable repainting of all Display instances.
|
void |
setScrollStep(int scroll_step) |
void |
setTransparencySlider(float transp) |
protected void |
setTranspOverlayAreas(boolean b) |
protected void |
setTranspOverlayImages(boolean b) |
protected void |
setTranspOverlayTextLabels(boolean b) |
void |
setUpdateGraphics(boolean b)
Whether to update the offscreen images or not.
|
static void |
setUpdateGraphics(Layer layer,
boolean update)
Flag the DisplayCanvas of Displays showing the given Layer to update their offscreen images.
|
static void |
setUpdateGraphics(Layer layer,
Displayable displ)
Mark the canvas for updating the offscreen images if the given Displayable is NOT the active.
|
void |
show(Layer layer,
Displayable displ,
boolean select,
boolean shift_down)
Set this Display to show the specific layer, centered at the @param displ, and perhaps selected,
adding to the selection instead of clearing it if @param shift_down is true.
|
static void |
showCentered(Layer layer,
Displayable displ,
boolean select,
boolean shift_down)
Show the given Displayable centered and selected.
|
static void |
showFront(Layer layer)
Show the layer in the front Display, or in a new Display if the front Display is showing a layer from a different LayerSet.
|
protected void |
showPopup(Component c,
int x,
int y) |
static Bureaucrat |
snap(Patch patch)
Snap a Patch to the most overlapping Patch, if any.
|
protected void |
storeLayerAlpha(LayerPanel lp,
float a)
Add to layer_alpha table, or remove if alpha is zero.
|
void |
toLayer(Layer la)
Calls setLayer(la) on the SetLayerThread.
|
static void |
toolChanged(int tool) |
static void |
toolChanged(String tool_name) |
static void |
update()
Update the entire GUI:
1 - The layer scroller
2 - The visible tab panels
3 - The toolbar
4 - The navigator
5 - The canvas
|
static void |
update(Layer layer)
Find all Display instances that contain the layer and repaint them, in the Swing GUI thread.
|
static void |
update(LayerSet set) |
static void |
update(LayerSet set,
boolean update_canvas_dimensions)
Find all Display instances showing a Layer of this LayerSet, and update the dimensions of the navigator and canvas and snapshots, and repaint, in the Swing GUI thread.
|
static void |
updateCheckboxes(Collection<Displayable> displs,
int cb)
Update the checkbox @param cb state to an appropriate value for each Displayable.
|
static void |
updateCheckboxes(Collection<Displayable> displs,
int cb,
boolean state)
Set the checkbox @param cb state to @param state value, for each Displayable.
|
static void |
updateCheckboxes(Displayable displ,
int cb,
boolean state)
Used by the Displayable to update the visibility and locking state checkboxes in other Displays.
|
static void |
updateComponentTreeUI() |
void |
updateFrameTitle()
Set a new title in the JFrame, showing info on the layer 'z' and the magnification.
|
static void |
updateLayerScroller(LayerSet set) |
protected void |
updateMultiPaint() |
static void |
updatePanel(Layer layer,
Displayable displ) |
static void |
updatePanelIndex(Layer layer,
Displayable displ)
Deprecated.
|
static void |
updateSelection() |
static void |
updateSelection(Display calling) |
static void |
updateTitle(Layer layer)
Update the Display's title in all Displays showing the given Layer.
|
static void |
updateTitle(Layer layer,
Displayable displ)
Update the title of the given Displayable in its DisplayablePanel, if any.
|
static void |
updateTitle(LayerSet ls)
Update the Display's title in all Displays showing a Layer of the given LayerSet.
|
static void |
updateTitle(Project project) |
static void |
updateTransform(Displayable displ)
Update in all displays the Transform for the given Displayable if it's selected.
|
static void |
updateVisibleTabs() |
static void |
updateVisibleTabs(Project p) |
static boolean |
willPaint(Displayable displ)
Check if any display will paint the given Displayable within its srcRect.
|
addToDatabase, exportXML, getId, getInfo, getProject, getShortTitle, getTitle, getUniqueIdentifier, removeFromDatabase, updateInDatabase, updateInDatabase
public static final int CT_REPLACE
public static final int CT_APPEND
public static final int CT_PREAPPEND
protected final Dispatcher dispatcher
protected Display.GridOverlay gridoverlay
protected static final int REPAINT_SINGLE_LAYER
protected static final int REPAINT_MULTI_LAYER
protected static final int REPAINT_RGB_LAYER
public Display(Project project, long id, Layer layer, Object[] props)
public Display(Project project, Layer layer)
public Display(Project project, Layer layer, Displayable displ)
public static final int getDisplayCount()
public static final void clearColumnScreenshots(LayerSet ls)
public final void clearColumnScreenshots()
public static void createDisplay(Project project, Layer layer)
public static Bureaucrat openLater()
public static void repaintToolbar()
public DisplayCanvas getCanvas()
public void setLayer(Layer new_layer)
public static void updateVisibleTabs()
public static void updateVisibleTabs(Project p)
public void setTransparencySlider(float transp)
public static void setUpdateGraphics(Layer layer, Displayable displ)
public static void setUpdateGraphics(Layer layer, boolean update)
public void setUpdateGraphics(boolean b)
public static void update()
public static void update(Layer layer)
public static void update(LayerSet set)
public static void update(LayerSet set, boolean update_canvas_dimensions)
protected void destroy()
public static void close(Project project)
public static void close(Layer layer)
public static void remove(Layer layer)
public boolean remove(boolean check)
public Layer getLayer()
public LayerSet getLayerSet()
public boolean isShowing(Layer layer)
public DisplayNavigator getNavigator()
public void repaintAll()
public void repaintAll2()
public void repaintAll3()
protected static void repaintSnapshots(LayerSet set)
protected static void repaintSnapshots(Layer layer)
public void pack()
public static void pack(LayerSet ls)
public static void setFront(Layer layer, Displayable displ)
protected static void add(Layer layer, Displayable displ, boolean activate)
protected static void add(Layer layer, Displayable displ)
protected static void add(LayerSet set, ZDisplayable zdispl)
protected static void addAll(Layer layer, Collection<? extends Displayable> coll)
protected static void addAll(LayerSet set, Collection<? extends ZDisplayable> coll)
public static void remove(Layer layer, Displayable displ)
public static void remove(ZDisplayable zdispl)
public static void repaint(Layer layer, Displayable displ, int extra)
public static void repaint(Layer layer, Displayable displ, Rectangle r, int extra)
public static void repaint(Layer layer, Displayable displ, Rectangle r, int extra, boolean repaint_navigator)
public static void repaint(Layer layer, Displayable displ, Rectangle r, int extra, boolean update_graphics, boolean repaint_navigator)
layer
- The layer to repaintr
- The Rectangle to repaint, in world coordinates (aka pixel coordinates or canvas coordinates).extra
- The number of pixels to pad @param r with.update_graphics
- Whether to recreate the offscreen image of the canvas, which is necessary for images.repaint_navigator
- Whether to repaint the navigator.public static void repaint(Displayable d)
public static void repaintSnapshot(Displayable displ)
public static void repaint(Layer layer, Rectangle r, int extra)
public static void repaint(Layer layer, int extra, Rectangle r, boolean update_navigator, boolean update_graphics)
public static void repaint(Layer layer, Rectangle r, int extra, boolean update_graphics)
public static void repaint(Layer layer, Displayable displ)
public static void repaint(LayerSet set, Displayable displ, int extra)
public static void repaint(LayerSet set, Displayable displ, Rectangle r, int extra)
public static void repaint(LayerSet set, Displayable displ, Rectangle r, int extra, boolean repaint_navigator)
public static void repaint(LayerSet set)
public static void repaint(LayerSet set, Rectangle box)
public static void repaint(Layer layer)
public static void repaint()
protected static void setRepaint(boolean b)
public Rectangle getBounds()
public Point getLocation()
public JFrame getFrame()
public JTabbedPane getTabbedPane()
public int addTab(String title, Component comp)
public void setLocation(Point p)
public Displayable getActive()
public void select(Displayable d)
public void select(Displayable d, boolean shift_down)
protected void choose(int screen_x_p, int screen_y_p, int x_p, int y_p, Class<?> c)
protected void choose(int screen_x_p, int screen_y_p, int x_p, int y_p)
protected void choose(int screen_x_p, int screen_y_p, int x_p, int y_p, boolean shift_down, Class<?> c)
protected void setActive(Displayable displ)
public boolean paintsBelow(Displayable base, Displayable other)
public static void setActive(Object event, Displayable displ)
public boolean isTransforming()
public static boolean isTransforming(Displayable displ)
public static Layer getFrontLayer()
public static Layer getFrontLayer(Project project)
public static Display getFront(Project project)
public static List<Displayable> getSelected()
public static List<? extends Displayable> getSelected(Class<? extends Displayable> c)
public boolean isReadOnly()
protected void showPopup(Component c, int x, int y)
protected JPopupMenu getPopupMenu()
public Bureaucrat removeScalingRotationShear(List<Patch> patches)
public Bureaucrat applyPatchTask(List<Patch> patches, String taskTitle, Operation<Boolean,Patch> task, Filter<Patch> filter)
patches
- task
- filter
- taskTitle
- Bureaucrat
in charge of the task.public Bureaucrat removeCoordinateTransforms(List<Patch> patches)
public Bureaucrat setCoordinateTransform(List<Patch> patches, CoordinateTransform ct, int existingTransform)
@Deprecated public Bureaucrat setCoordinateTransform(List<Patch> patches, CoordinateTransform ct, boolean append)
setCoordinateTransform(List, CoordinateTransform, int)
instead which implements pre-appending as a third mode.patches
- ct
- append
- public Bureaucrat setMeshResolution(List<Patch> patches, int meshResolution)
public boolean isWithinViewport(Displayable d)
public boolean isPartiallyWithinViewport(Displayable d)
public static void updateTitle(Layer layer, Displayable displ)
public static void updateTitle(Layer layer)
public static void updateTitle(Project project)
public static void updateTitle(LayerSet ls)
public void updateFrameTitle()
public void nextLayer(int modifiers)
public void toLayer(Layer la)
public void previousLayer(int modifiers)
public static void updateLayerScroller(LayerSet set)
public static void updatePanel(Layer layer, Displayable displ)
@Deprecated public static void updatePanelIndex(Layer layer, Displayable displ)
public void repairGUI()
public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
public void adjustMinAndMaxGUI()
public void adjustMeasurementOptions()
public void adjustGroupProperties(Collection<Displayable> col)
col
.col
- public void adjustProperties()
public static void updateTransform(Displayable displ)
public int getScrollStep()
public void setScrollStep(int scroll_step)
protected Bureaucrat importImage()
protected Bureaucrat importNextImage()
public void setChannel(int c, float alpha)
public void setActiveChannel(Channel channel)
public int getDisplayChannelAlphas()
public int getChannelAlphas()
public int getChannelAlphasState()
public static void showFront(Layer layer)
public static void showCentered(Layer layer, Displayable displ, boolean select, boolean shift_down)
public void show(Layer layer, Displayable displ, boolean select, boolean shift_down)
public final void center(double x, double y)
public final void center(Coordinate<?> c)
public final void centerIfNotWithinSrcRect(Coordinate<?> c)
public final void animateBrowsingTo(Coordinate<?> c)
public static final void centerAt(Coordinate c)
public static final void centerAt(Coordinate<Displayable> c, boolean select, boolean shift_down)
public void eventOccurred(int eventID)
eventOccurred
in interface ij.IJEventListener
public void imageClosed(ij.ImagePlus imp)
public void imageOpened(ij.ImagePlus imp)
public static void flushAll()
public static Display getFront()
public static void setCursorToAll(Cursor c)
public static void updateCheckboxes(Displayable displ, int cb, boolean state)
public static void updateCheckboxes(Collection<Displayable> displs, int cb, boolean state)
public static void updateCheckboxes(Collection<Displayable> displs, int cb)
protected boolean isActiveWindow()
public static void setReceivesInput(Project project, boolean b)
public static void exportDTD(StringBuilder sb_header, HashSet<String> hs, String indent)
public static void exportXML(Project project, Writer writer, String indent, XMLOptions options) throws Exception
Exception
public static void toolChanged(String tool_name)
public static void toolChanged(int tool)
public boolean isLiveFilteringEnabled()
protected ij.ImagePlus applyFilters(ij.process.ImageProcessor ip)
protected ij.ImagePlus applyFilters(ij.ImagePlus imp)
public Selection getSelection()
public final boolean isSelected(Displayable d)
public static void updateSelection()
public static void updateSelection(Display calling)
public static void clearSelection(Layer layer)
public static void clearSelection()
public static void clearSelection(Project p)
public static boolean willPaint(Displayable displ)
public void hideDeselected(boolean not_images)
public static void flush(Displayable displ)
public void resizeCanvas(Rectangle bounds)
public void resizeCanvas()
protected void duplicateLinkAndSendTo(Displayable active, int position, Layer other_layer)
protected void setTranspOverlayImages(boolean b)
protected void setTranspOverlayAreas(boolean b)
protected void setTranspOverlayTextLabels(boolean b)
protected void updateMultiPaint()
protected Set<Class<?>> getClassesToMultiPaint()
protected byte getLayerCompositeMode(Layer layer)
protected void setLayerCompositeMode(Layer layer, byte compositeMode)
protected void resetLayerComposites()
protected void resetLayerColors()
protected void resetLayerAlphas()
protected void storeLayerAlpha(LayerPanel lp, float a)
protected int getPaintMode(HashMap<Color,Layer> hm, ArrayList<LayerPanel> list)
protected void setColorChannel(Layer layer, Color color)
public static final void updateComponentTreeUI()
public static final Bureaucrat snap(Patch patch)
public void setMode(Mode mode)
public Mode getMode()
public static Bureaucrat removeAlphaMasks(Collection<Patch> patches)
public <T extends Displayable> List<T> find()
GenericDialog
to ask for parameters to find all Displayable
that abide to them.Displayable
instances found.find(String, boolean, Class, List)
public <T extends Displayable> List<T> find(String regex, boolean visible_only, Class<T> c, int firstLayerIndex, int lastLayerIndex)
find(String, boolean, Class, List)
public static <T extends Displayable> List<T> find(String regex, boolean visible_only, Class<T> c, List<Layer> layers)
regex
- The regular expression to match against the title of a Displayable
.visible_only
- Whether to gather only Displayable
instances that are visible.c
- The specific class of Displayable
; can be an interface like VectorData
, ImageData
or AreaContainer
. Use Displayable
to mean any.layers
- The range of Layer
to search in.Copyright © 2015–2021 Fiji. All rights reserved.