|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
ij.gui.ImageWindow
public class ImageWindow
A frame for displaying images.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected boolean |
closed
|
static int |
HGAP
|
protected ImageCanvas |
ic
|
protected ImageJ |
ij
|
protected ImagePlus |
imp
|
static int |
MIN_HEIGHT
|
static int |
MIN_WIDTH
|
boolean |
running
This variable is set false if the user presses the escape key or closes the window. |
boolean |
running2
This variable is set false if the user clicks in this window, presses the escape key, or closes the window. |
static int |
VGAP
|
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ImageWindow(ImagePlus imp)
|
|
ImageWindow(ImagePlus imp,
ImageCanvas ic)
|
|
ImageWindow(String title)
|
|
| Method Summary | |
|---|---|
Component |
add(Component comp)
|
static void |
centerNextImage()
Causes the next image to be opened to be centered on the screen and displayed without informational text above the image. |
boolean |
close()
Removes this window from the window list and disposes of it. |
void |
copy(boolean cut)
Copies the current ROI to the clipboard. |
String |
createSubtitle()
Creates the subtitle. |
void |
drawInfo(Graphics g)
Draws the subtitle. |
void |
focusGained(FocusEvent e)
|
void |
focusLost(FocusEvent e)
|
ImageCanvas |
getCanvas()
|
ImagePlus |
getImagePlus()
|
double |
getInitialMagnification()
|
Insets |
getInsets()
Override Container getInsets() to make room for some text above the image. |
Rectangle |
getMaximumBounds()
|
int |
getSliderHeight()
|
boolean |
isClosed()
Has this window been closed? |
void |
maximize()
|
void |
minimize()
|
void |
mouseMoved(int x,
int y)
This method is called by ImageCanvas.mouseMoved(MouseEvent). |
void |
mouseWheelMoved(MouseWheelEvent e)
|
void |
paint(Graphics g)
|
void |
paste()
|
void |
setImage(ImagePlus imp2)
|
void |
setLocationAndSize(int x,
int y,
int width,
int height)
Moves and resizes this window. |
static void |
setNextLocation(int x,
int y)
Causes the next image to be displayed at the specified location. |
static void |
setNextLocation(Point loc)
Causes the next image to be displayed at the specified location. |
void |
setSliderHeight(int height)
|
String |
toString()
|
void |
updateImage(ImagePlus imp)
|
void |
windowActivated(WindowEvent e)
|
void |
windowClosed(WindowEvent e)
|
void |
windowClosing(WindowEvent e)
|
void |
windowDeactivated(WindowEvent e)
|
void |
windowDeiconified(WindowEvent e)
|
void |
windowIconified(WindowEvent e)
|
void |
windowOpened(WindowEvent e)
|
void |
windowStateChanged(WindowEvent e)
|
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final int MIN_WIDTH
public static final int MIN_HEIGHT
public static final int HGAP
public static final int VGAP
protected ImagePlus imp
protected ImageJ ij
protected ImageCanvas ic
protected boolean closed
public boolean running
public boolean running2
| Constructor Detail |
|---|
public ImageWindow(String title)
public ImageWindow(ImagePlus imp)
public ImageWindow(ImagePlus imp,
ImageCanvas ic)
| Method Detail |
|---|
public double getInitialMagnification()
public Insets getInsets()
getInsets in class Containerpublic void drawInfo(Graphics g)
public String createSubtitle()
public void paint(Graphics g)
paint in class Windowpublic boolean close()
public ImagePlus getImagePlus()
public void setImage(ImagePlus imp2)
public void updateImage(ImagePlus imp)
public ImageCanvas getCanvas()
public Rectangle getMaximumBounds()
public Component add(Component comp)
add in class Containerpublic void maximize()
public void minimize()
public boolean isClosed()
public void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerpublic void windowStateChanged(WindowEvent e)
windowStateChanged in interface WindowStateListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenerpublic void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved in interface MouseWheelListenerpublic void copy(boolean cut)
public void paste()
public void mouseMoved(int x,
int y)
ImageCanvas.mouseMoved(java.awt.event.MouseEvent)public String toString()
toString in class Componentpublic static void centerNextImage()
public static void setNextLocation(Point loc)
public static void setNextLocation(int x,
int y)
public void setLocationAndSize(int x,
int y,
int width,
int height)
public void setSliderHeight(int height)
public int getSliderHeight()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||