ij.plugin.frame
Class Layout

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by ij.plugin.frame.PlugInFrame
                      extended by ij.plugin.frame.Layout
All Implemented Interfaces:
PlugIn, java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.MouseListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class Layout
extends PlugInFrame

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.lang.String CHART
           
static java.lang.String IMAGE
           
static java.lang.String LABEL
           
static int LANDSCAPE_MODE
           
 int pix_height
           
 int pix_width
           
static int PORTRAIT_MODE
           
 
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
Layout()
           
Layout(java.io.File layoutFile)
           
Layout(int layoutMode)
           
Layout(java.lang.String layoutName)
           
 
Method Summary
 void addComponent(ChartFramePlugIn component)
           
 void addComponent(ImagePlus component)
           
 void addComponent(LayoutComponent component)
           
 void addComponent(PlugInFrame component, int lx, int ly)
           
 void addComponent(java.lang.String windowTitle, int lx, int ly)
           
 void addText(java.lang.String text, java.awt.Color color, java.awt.Font font, int x, int y)
           
 void addText(java.lang.String text, java.awt.Color color, int x, int y)
           
 void addText(java.lang.String text, int x, int y)
           
 void deselectAll()
           
 void deselectLayoutComponent(LayoutComponent component)
           
 void drawLine(int x1, int y1, int x2, int y2, java.awt.Color color, int thickness)
           
 void exportToEps()
           
 void exportToEps(java.lang.String filename)
           
 void exportToJpeg()
           
 void exportToJpeg(java.lang.String filename)
           
 void exportToPDF()
           
 void exportToPDF(java.lang.String filename)
           
 void exportToTiff()
           
 void exportToTiff(java.lang.String filename)
           
 LayoutComponent getLayoutComponent(int x, int y)
           
 LayoutComponent getLayoutComponent(java.lang.String title)
           
 java.util.Vector getLayoutComponents()
           
 java.util.Vector getLayoutComponents(java.lang.String type)
           
 int getLayoutMode()
           
 LayoutPanel getLayoutPanel()
           
 java.awt.Dimension getLayoutSize()
           
 java.lang.String getUniqueName()
           
 boolean isLocked()
           
 void loadLayout()
           
 void loadLayout(java.io.File file)
           
 void moveBackward()
           
 void moveForward()
           
 void moveToBack()
           
 void moveToFront()
           
 void saveLayout()
           
 void saveLayout(java.io.File file)
           
 void saveLayout(java.lang.String filename)
           
 void saveLayoutTemplate()
           
 void saveLayoutTemplate(java.io.File file)
           
 void selectLayoutComponent(LayoutComponent component)
           
 void selectLayoutComponents(java.awt.Rectangle rect)
           
 void setLayoutComponent(int index, java.awt.Frame frame)
           
 void setLayoutComponent(int index, ImagePlus image)
           
 void setLayoutComponentPosition(java.lang.String windowTitle, int lx, int ly)
           
 void setLayoutSize(java.awt.Dimension dimensions)
           
 void setLayoutSize(int width, int height)
           
 void setLocked(boolean tf)
           
 void toggleLockedLayout()
           
 void update(java.awt.Graphics g)
           
 
Methods inherited from class ij.plugin.frame.PlugInFrame
actionPerformed, close, focusGained, focusLost, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, run, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
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.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
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

CHART

public static java.lang.String CHART

IMAGE

public static java.lang.String IMAGE

LABEL

public static java.lang.String LABEL

pix_width

public int pix_width

pix_height

public int pix_height

PORTRAIT_MODE

public static int PORTRAIT_MODE

LANDSCAPE_MODE

public static int LANDSCAPE_MODE
Constructor Detail

Layout

public Layout()

Layout

public Layout(int layoutMode)

Layout

public Layout(java.lang.String layoutName)

Layout

public Layout(java.io.File layoutFile)
Method Detail

getUniqueName

public java.lang.String getUniqueName()

loadLayout

public void loadLayout(java.io.File file)

loadLayout

public void loadLayout()

saveLayout

public void saveLayout()

saveLayout

public void saveLayout(java.lang.String filename)

saveLayout

public void saveLayout(java.io.File file)

saveLayoutTemplate

public void saveLayoutTemplate()

saveLayoutTemplate

public void saveLayoutTemplate(java.io.File file)

setLayoutComponent

public void setLayoutComponent(int index,
                               ImagePlus image)

setLayoutComponent

public void setLayoutComponent(int index,
                               java.awt.Frame frame)

addText

public void addText(java.lang.String text,
                    int x,
                    int y)

addText

public void addText(java.lang.String text,
                    java.awt.Color color,
                    int x,
                    int y)

addText

public void addText(java.lang.String text,
                    java.awt.Color color,
                    java.awt.Font font,
                    int x,
                    int y)

setLayoutComponentPosition

public void setLayoutComponentPosition(java.lang.String windowTitle,
                                       int lx,
                                       int ly)

addComponent

public void addComponent(java.lang.String windowTitle,
                         int lx,
                         int ly)

addComponent

public void addComponent(ImagePlus component)

addComponent

public void addComponent(PlugInFrame component,
                         int lx,
                         int ly)

addComponent

public void addComponent(ChartFramePlugIn component)

addComponent

public void addComponent(LayoutComponent component)

exportToEps

public void exportToEps()

exportToEps

public void exportToEps(java.lang.String filename)

exportToPDF

public void exportToPDF()

exportToPDF

public void exportToPDF(java.lang.String filename)

exportToTiff

public void exportToTiff()

exportToTiff

public void exportToTiff(java.lang.String filename)

exportToJpeg

public void exportToJpeg()

exportToJpeg

public void exportToJpeg(java.lang.String filename)

selectLayoutComponents

public void selectLayoutComponents(java.awt.Rectangle rect)

moveForward

public void moveForward()

moveToFront

public void moveToFront()

moveToBack

public void moveToBack()

moveBackward

public void moveBackward()

selectLayoutComponent

public void selectLayoutComponent(LayoutComponent component)

deselectLayoutComponent

public void deselectLayoutComponent(LayoutComponent component)

deselectAll

public void deselectAll()

getLayoutComponent

public LayoutComponent getLayoutComponent(java.lang.String title)

getLayoutComponent

public LayoutComponent getLayoutComponent(int x,
                                          int y)

getLayoutComponents

public java.util.Vector getLayoutComponents()

getLayoutComponents

public java.util.Vector getLayoutComponents(java.lang.String type)

update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Container

toggleLockedLayout

public void toggleLockedLayout()

setLocked

public void setLocked(boolean tf)

isLocked

public boolean isLocked()

getLayoutPanel

public LayoutPanel getLayoutPanel()

setLayoutSize

public void setLayoutSize(int width,
                          int height)

setLayoutSize

public void setLayoutSize(java.awt.Dimension dimensions)

getLayoutSize

public java.awt.Dimension getLayoutSize()

getLayoutMode

public int getLayoutMode()

drawLine

public void drawLine(int x1,
                     int y1,
                     int x2,
                     int y2,
                     java.awt.Color color,
                     int thickness)