Class ButtonFactory
java.lang.Object
org.opentcs.thirdparty.jhotdraw.application.action.ButtonFactory
public class ButtonFactory
extends java.lang.Object
ButtonFactory.
Design pattern:
Name: Abstract Factory.
Role:
Abstract Factory.
Partners: DrawApplicationModel
as Client,
DrawView as Client,
DrawingPanel as Client.
FIXME - All buttons created using the ButtonFactory must automatically become
disabled/enabled, when the DrawingEditor is disabled/enabled.
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_COLORS_COLUMN_COUNT -
Method Summary
Modifier and Type Method Description static voidaddAlignmentButtonsTo(javax.swing.JToolBar bar, org.jhotdraw.draw.DrawingEditor editor)Creates toolbar buttons and adds them to the specified JToolBarstatic voidaddAttributesButtonsTo(javax.swing.JToolBar toolBar, org.jhotdraw.draw.DrawingEditor editor)Creates toolbar buttons and adds them to the specified JToolBar
-
Field Details
-
DEFAULT_COLORS_COLUMN_COUNT
public static final int DEFAULT_COLORS_COLUMN_COUNT- See Also:
- Constant Field Values
-
-
Method Details
-
addAttributesButtonsTo
public static void addAttributesButtonsTo(javax.swing.JToolBar toolBar, org.jhotdraw.draw.DrawingEditor editor)Creates toolbar buttons and adds them to the specified JToolBar- Parameters:
toolBar- The toolbar.editor- The drawing editor.
-
addAlignmentButtonsTo
public static void addAlignmentButtonsTo(javax.swing.JToolBar bar, org.jhotdraw.draw.DrawingEditor editor)Creates toolbar buttons and adds them to the specified JToolBar- Parameters:
bar- The toolbar.editor- The drawing editor.
-