|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
ij.gui.Toolbar
public class Toolbar
The ImageJ toolbar.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Canvas |
|---|
Canvas.AccessibleAWTCanvas |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
ANGLE
|
static int |
BRUSH_ROI
|
static String |
CORNER_DIAMETER
|
static int |
CROSSHAIR
|
static int |
CUSTOM1
|
static int |
CUSTOM2
|
static int |
CUSTOM3
|
static int |
CUSTOM4
|
static int |
CUSTOM5
|
static int |
CUSTOM6
|
static int |
CUSTOM7
|
static int |
DOUBLE_CLICK_THRESHOLD
|
static int |
DROPPER
|
static int |
ELLIPSE_ROI
|
static int |
FREELINE
|
static int |
FREEROI
|
static int |
HAND
|
static int |
LINE
|
static int |
MAGNIFIER
|
static int |
OVAL
|
static int |
OVAL_ROI
|
static int |
POINT
|
static int |
POLYGON
|
static int |
POLYLINE
|
static int |
RECTANGLE
|
static int |
SPARE1
Obsolete public constants |
static int |
SPARE2
Obsolete public constants |
static int |
SPARE3
Obsolete public constants |
static int |
SPARE4
Obsolete public constants |
static int |
SPARE5
Obsolete public constants |
static int |
SPARE6
Obsolete public constants |
static int |
SPARE7
Obsolete public constants |
static int |
SPARE8
Obsolete public constants |
static int |
SPARE9
Obsolete public constants |
static int |
TEXT
|
static String |
TOOL_KEY
|
static int |
UNUSED
|
static int |
WAND
|
| 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 | |
|---|---|
Toolbar()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addMacroTool(String name,
MacroInstaller macroInstaller)
Used by the MacroInstaller class to add a macro tool to the toolbar. |
void |
addMacroTool(String name,
MacroInstaller macroInstaller,
int id)
Used by the MacroInstaller class to install a set of macro tools. |
static void |
addPlugInTool(PlugInTool tool)
Adds a plugin tool to the first available toolbar slot, or to the last slot if the toolbar is full. |
int |
addTool(String toolTip)
Adds a tool to the toolbar. |
static Color |
getBackgroundColor()
|
static int |
getBrushSize()
Returns the size of the selection brush tool, or 0 if the brush tool is not enabled. |
static int |
getButtonSize()
|
Color |
getColor()
Deprecated. replaced by getForegroundColor() |
static Color |
getForegroundColor()
|
static Toolbar |
getInstance()
Returns a reference to the ImageJ toolbar. |
Dimension |
getMinimumSize()
|
static boolean |
getMultiPointMode()
Returns 'true' if the multi-point tool is enabled. |
int |
getNumTools()
|
static int |
getOvalToolType()
Returns the oval tool type (OVAL_ROI, ELLIPSE_ROI or BRUSH_ROI). |
static PlugInTool |
getPlugInTool()
|
Dimension |
getPreferredSize()
|
static int |
getRoundRectArcSize()
Returns the rounded rectangle arc size, or 0 if the rounded rectangle tool is not enabled. |
static int |
getToolId()
Returns the ID of the current tool (Toolbar.RECTANGLE, Toolbar.OVAL, etc.). |
int |
getToolId(String name)
Returns the ID of the tool whose name (the description displayed in the status bar) starts with the specified string, or -1 if the tool is not found. |
static String |
getToolName()
Returns the name of the current tool. |
static boolean |
installStartupMacrosTools()
|
void |
installStartupTools()
|
void |
itemStateChanged(ItemEvent e)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paint(Graphics g)
|
static void |
removeMacroTools()
|
void |
restorePreviousTool()
|
static void |
restoreTools()
|
static void |
setBackgroundColor(Color c)
|
static void |
setBrushSize(int size)
Set the size of the selection brush tool, in pixels. |
void |
setColor(Color c)
Deprecated. replaced by setForegroundColor() |
static void |
setForegroundColor(Color c)
|
static void |
setRoundRectArcSize(int size)
Sets the rounded rectangle corner diameter (pixels). |
void |
setTool(int tool)
|
boolean |
setTool(String name)
|
| Methods inherited from class java.awt.Canvas |
|---|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int RECTANGLE
public static final int OVAL
public static final int POLYGON
public static final int FREEROI
public static final int LINE
public static final int POLYLINE
public static final int FREELINE
public static final int POINT
public static final int CROSSHAIR
public static final int WAND
public static final int TEXT
public static final int UNUSED
public static final int MAGNIFIER
public static final int HAND
public static final int DROPPER
public static final int ANGLE
public static final int CUSTOM1
public static final int CUSTOM2
public static final int CUSTOM3
public static final int CUSTOM4
public static final int CUSTOM5
public static final int CUSTOM6
public static final int CUSTOM7
public static final int DOUBLE_CLICK_THRESHOLD
public static final int OVAL_ROI
public static final int ELLIPSE_ROI
public static final int BRUSH_ROI
public static final String CORNER_DIAMETER
public static String TOOL_KEY
public static final int SPARE1
public static final int SPARE2
public static final int SPARE3
public static final int SPARE4
public static final int SPARE5
public static final int SPARE6
public static final int SPARE7
public static final int SPARE8
public static final int SPARE9
| Constructor Detail |
|---|
public Toolbar()
| Method Detail |
|---|
public static int getToolId()
public int getToolId(String name)
public static Toolbar getInstance()
public void paint(Graphics g)
paint in class Canvaspublic boolean setTool(String name)
public static String getToolName()
public void setTool(int tool)
public Color getColor()
public void setColor(Color c)
public static Color getForegroundColor()
public static void setForegroundColor(Color c)
public static Color getBackgroundColor()
public static void setBackgroundColor(Color c)
public static int getBrushSize()
public static void setBrushSize(int size)
public static int getRoundRectArcSize()
public static void setRoundRectArcSize(int size)
public static boolean getMultiPointMode()
public static int getOvalToolType()
public static int getButtonSize()
public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void restorePreviousTool()
public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenerpublic static void restoreTools()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic Dimension getPreferredSize()
getPreferredSize in class Componentpublic Dimension getMinimumSize()
getMinimumSize in class Componentpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic int addTool(String toolTip)
public void addMacroTool(String name,
MacroInstaller macroInstaller,
int id)
public void addMacroTool(String name,
MacroInstaller macroInstaller)
public static void removeMacroTools()
public static void addPlugInTool(PlugInTool tool)
public static PlugInTool getPlugInTool()
public void installStartupTools()
public static boolean installStartupMacrosTools()
public int getNumTools()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||