|
JHotDraw 7.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jhotdraw.draw.action.ToolBarButtonFactory
public class ToolBarButtonFactory
ToolBarButtonFactory.
| Field Summary | |
|---|---|
static java.util.Map<java.lang.String,java.awt.Color> |
DEFAULT_COLORS
|
| Method Summary | |
|---|---|
static void |
addAlignmentButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
Creates toolbar buttons and adds them to the specified JToolBar |
static void |
addAttributesButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
Creates toolbar buttons and adds them to the specified JToolBar |
static void |
addColorButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
|
static void |
addColorButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor,
AttributeKey attributeKey,
java.util.Map<java.lang.String,java.awt.Color> colorMap,
int columnCount,
java.lang.String labelKey,
ResourceBundleUtil labels)
|
static void |
addFontButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
|
static void |
addSelectionToolTo(javax.swing.JToolBar tb,
DrawingEditor editor)
|
static void |
addSelectionToolTo(javax.swing.JToolBar tb,
DrawingEditor editor,
java.util.Collection<javax.swing.Action> drawingActions,
java.util.Collection<javax.swing.Action> selectionActions)
|
static void |
addStrokeButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
|
static void |
addStrokeDashesButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor)
|
static void |
addStrokeDecorationButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor)
|
static void |
addStrokePlacementButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor)
|
static void |
addStrokeTypeButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor)
|
static void |
addStrokeWidthButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor)
|
static void |
addToolTo(javax.swing.JToolBar tb,
DrawingEditor editor,
Tool tool,
java.lang.String labelKey,
ResourceBundleUtil labels)
Method addSelectionToolTo must have been invoked prior to this on the JToolBar. |
static void |
addZoomButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
|
static java.util.Collection<javax.swing.Action> |
createDrawingActions(DrawingEditor editor)
|
static java.util.Collection<javax.swing.Action> |
createSelectionActions(DrawingEditor editor)
|
static javax.swing.AbstractButton |
createToggleGridButton(DrawingEditor editor)
Creates toolbar buttons and adds them to the specified JToolBar |
static javax.swing.AbstractButton |
createToggleGridButton(DrawingView view)
Creates toolbar buttons and adds them to the specified JToolBar |
static javax.swing.AbstractButton |
createZoomButton(DrawingEditor editor)
|
static javax.swing.AbstractButton |
createZoomButton(DrawingView view)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Map<java.lang.String,java.awt.Color> DEFAULT_COLORS
| Method Detail |
|---|
public static java.util.Collection<javax.swing.Action> createDrawingActions(DrawingEditor editor)
public static java.util.Collection<javax.swing.Action> createSelectionActions(DrawingEditor editor)
public static void addSelectionToolTo(javax.swing.JToolBar tb,
DrawingEditor editor)
public static void addSelectionToolTo(javax.swing.JToolBar tb,
DrawingEditor editor,
java.util.Collection<javax.swing.Action> drawingActions,
java.util.Collection<javax.swing.Action> selectionActions)
public static void addToolTo(javax.swing.JToolBar tb,
DrawingEditor editor,
Tool tool,
java.lang.String labelKey,
ResourceBundleUtil labels)
public static void addZoomButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static javax.swing.AbstractButton createZoomButton(DrawingEditor editor)
public static javax.swing.AbstractButton createZoomButton(DrawingView view)
public static void addAttributesButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static void addColorButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static void addColorButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor,
AttributeKey attributeKey,
java.util.Map<java.lang.String,java.awt.Color> colorMap,
int columnCount,
java.lang.String labelKey,
ResourceBundleUtil labels)
colorMap - a Map with named colors. This is usually a LinkedHashMap
so that the colors are in a specific order.
public static void addStrokeButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static void addStrokeWidthButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static void addStrokeDecorationButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static void addStrokeDashesButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static void addStrokeTypeButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static void addStrokePlacementButtonTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static void addFontButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static void addAlignmentButtonsTo(javax.swing.JToolBar bar,
DrawingEditor editor)
public static javax.swing.AbstractButton createToggleGridButton(DrawingEditor editor)
public static javax.swing.AbstractButton createToggleGridButton(DrawingView view)
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||