|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ij2x.plugin.ControlbarJPanel
public class ControlbarJPanel
Title:
Description:
Copyright: Copyright (c) 2012
Company:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
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 | |
---|---|
javax.swing.JButton |
action
|
protected javax.swing.JButton |
captureButton
|
protected javax.swing.JButton |
clearButton
|
protected javax.swing.JButton |
clockButton
|
javax.swing.JLabel |
clockLabel
|
javax.swing.JButton |
closeButton
|
protected javax.swing.JButton |
colorpickerButton
|
javax.swing.JPanel |
controlBarPanel
|
static java.lang.String |
copyAction
|
protected javax.swing.JButton |
copyButton
|
static java.lang.String |
cutAction
|
protected javax.swing.JButton |
cutButton
|
protected java.util.Date |
date
|
static int |
DOUBLE_CLICK_THRESHOLD
|
javax.swing.JButton |
draggedButton
|
protected javax.swing.JButton |
drawButton
|
protected javax.swing.JButton |
drawOverlayButton
|
protected javax.swing.JButton |
duplicateButton
|
protected javax.swing.JButton |
fillButton
|
protected javax.swing.JButton |
hideOverlayButton
|
protected ImageJ |
ij
|
protected ImagePlus |
imp
|
javax.swing.JButton |
infoButton
|
javax.swing.JLabel |
label
|
protected javax.swing.JButton |
newButton
|
protected javax.swing.JButton |
nonselectButton
|
static java.lang.String |
openAction
|
protected javax.swing.JButton |
openButton
|
javax.swing.JPanel |
panel
|
protected javax.swing.JButton |
pasteButton
|
protected javax.swing.JButton |
removeOverlayButton
|
protected javax.swing.JButton |
roicolorButton
|
protected javax.swing.JButton |
rotateButton
|
protected javax.swing.JButton |
selectButton
|
protected javax.swing.JButton |
showOverlayButton
|
javax.swing.JLabel |
spaceLabel
|
protected javax.swing.JButton |
specifyButton
|
protected javax.swing.JButton |
splineButton
|
javax.swing.JButton |
undecoratedButton
|
protected javax.swing.JButton |
undoButton
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
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 | |
---|---|
ControlbarJPanel()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
javax.swing.JPanel |
createControlBar()
Create the toolbar. |
java.lang.String |
getTimeFormatToString()
|
static boolean |
hasAlpha(java.awt.Image image)
This method returns true if the specified image has transparent pixels Code taken from the Java Developers Almanac 1.4 http://javaalmanac.com/egs/java.awt.image/HasAlpha.html |
void |
labelEvent(java.awt.event.MouseEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
run()
|
void |
run(java.lang.String arg)
This method is called when the plugin is loaded. |
void |
setDate(java.util.Date date)
|
void |
setTimeFormatToString(java.lang.String time)
|
static java.awt.image.BufferedImage[] |
split(java.awt.Image image,
int count,
boolean isHorizontal)
Splits an image into count subimages. |
static java.awt.image.BufferedImage[][] |
splitAll(java.awt.Image image,
int arraycount,
int count,
boolean isHorizontal)
Splits an image into count subimages. |
void |
start()
|
void |
stop()
|
static java.awt.image.BufferedImage |
toBufferedImage(java.awt.Image image)
|
static java.awt.image.BufferedImage |
toBufferedImage(java.awt.Image image,
java.awt.Image icon)
|
static java.awt.image.BufferedImage |
toBufferedImage(java.awt.Image borderImage,
java.awt.Image bgImage,
java.awt.Image imageIcon)
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ImagePlus imp
protected ImageJ ij
public javax.swing.JButton infoButton
public javax.swing.JButton draggedButton
public javax.swing.JButton closeButton
public javax.swing.JButton undecoratedButton
public javax.swing.JButton action
protected javax.swing.JButton newButton
protected javax.swing.JButton openButton
protected javax.swing.JButton undoButton
protected javax.swing.JButton copyButton
protected javax.swing.JButton cutButton
protected javax.swing.JButton pasteButton
protected javax.swing.JButton clearButton
protected javax.swing.JButton fillButton
protected javax.swing.JButton drawButton
protected javax.swing.JButton drawOverlayButton
protected javax.swing.JButton removeOverlayButton
protected javax.swing.JButton roicolorButton
protected javax.swing.JButton colorpickerButton
protected javax.swing.JButton selectButton
protected javax.swing.JButton nonselectButton
protected javax.swing.JButton showOverlayButton
protected javax.swing.JButton hideOverlayButton
protected javax.swing.JButton splineButton
protected javax.swing.JButton duplicateButton
protected javax.swing.JButton captureButton
protected javax.swing.JButton rotateButton
protected javax.swing.JButton clockButton
protected javax.swing.JButton specifyButton
public static final int DOUBLE_CLICK_THRESHOLD
public javax.swing.JPanel controlBarPanel
public javax.swing.JLabel spaceLabel
public javax.swing.JLabel clockLabel
public javax.swing.JLabel label
public javax.swing.JPanel panel
protected java.util.Date date
public static final java.lang.String cutAction
public static final java.lang.String copyAction
public static final java.lang.String openAction
Constructor Detail |
---|
public ControlbarJPanel()
Method Detail |
---|
public void run(java.lang.String arg)
PlugIn
run
in interface PlugIn
public javax.swing.JPanel createControlBar()
public void labelEvent(java.awt.event.MouseEvent e)
public static java.awt.image.BufferedImage[] split(java.awt.Image image, int count, boolean isHorizontal)
public static java.awt.image.BufferedImage[][] splitAll(java.awt.Image image, int arraycount, int count, boolean isHorizontal)
public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)
public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image, java.awt.Image icon)
public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image borderImage, java.awt.Image bgImage, java.awt.Image imageIcon)
public static boolean hasAlpha(java.awt.Image image)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void setDate(java.util.Date date)
public java.lang.String getTimeFormatToString()
public void setTimeFormatToString(java.lang.String time)
public void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |