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 int DEFAULT_COLORS_COLUMN_COUNT  
  • Method Summary

    Modifier and Type Method Description
    static void addAlignmentButtonsTo​(javax.swing.JToolBar bar, org.jhotdraw.draw.DrawingEditor editor)
    Creates toolbar buttons and adds them to the specified JToolBar
    static void addAttributesButtonsTo​(javax.swing.JToolBar toolBar, org.jhotdraw.draw.DrawingEditor editor)
    Creates toolbar buttons and adds them to the specified JToolBar

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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.