Class DrawingViewFactory

java.lang.Object
org.opentcs.guing.components.drawing.DrawingViewFactory

public class DrawingViewFactory
extends java.lang.Object
A factory for drawing views.
  • Constructor Summary

    Constructors 
    Constructor Description
    DrawingViewFactory​(javax.inject.Provider<org.opentcs.guing.components.drawing.OpenTCSDrawingView> drawingViewProvider, org.opentcs.guing.components.drawing.OpenTCSDrawingEditor drawingEditor, org.opentcs.guing.application.StatusPanel statusPanel, org.opentcs.guing.persistence.ModelManager modelManager, org.opentcs.guing.components.drawing.DrawingOptions drawingOptions)  
  • Method Summary

    Modifier and Type Method Description
    org.opentcs.guing.components.drawing.DrawingViewScrollPane createDrawingView​(org.opentcs.guing.model.SystemModel systemModel, javax.swing.JToggleButton selectionToolButton, javax.swing.JToggleButton dragToolButton, javax.swing.JToggleButton linkCreationToolButton, org.jhotdraw.gui.JPopupButton pathCreationToolButton)
    Creates and returns a new drawing view along with its placard panel, both wrapped in a scroll pane.

    Methods inherited from class java.lang.Object

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

    • DrawingViewFactory

      @Inject public DrawingViewFactory​(javax.inject.Provider<org.opentcs.guing.components.drawing.OpenTCSDrawingView> drawingViewProvider, org.opentcs.guing.components.drawing.OpenTCSDrawingEditor drawingEditor, org.opentcs.guing.application.StatusPanel statusPanel, org.opentcs.guing.persistence.ModelManager modelManager, org.opentcs.guing.components.drawing.DrawingOptions drawingOptions)
  • Method Details

    • createDrawingView

      public org.opentcs.guing.components.drawing.DrawingViewScrollPane createDrawingView​(org.opentcs.guing.model.SystemModel systemModel, javax.swing.JToggleButton selectionToolButton, javax.swing.JToggleButton dragToolButton, javax.swing.JToggleButton linkCreationToolButton, org.jhotdraw.gui.JPopupButton pathCreationToolButton)
      Creates and returns a new drawing view along with its placard panel, both wrapped in a scroll pane.
      Parameters:
      systemModel - The system model.
      selectionToolButton - The selection tool button in the tool bar.
      dragToolButton - The drag tool button in the tool bar.
      linkCreationToolButton - The link creation tool button in the tool bar.
      pathCreationToolButton - The path creation tool button in the tool bar.
      Returns:
      A new drawing view, wrapped in a scroll pane.