Class StepControlPanel

java.lang.Object
org.bidib.wizard.mvc.stepcontrol.view.StepControlPanel
All Implemented Interfaces:
org.bidib.wizard.api.model.listener.PortListener<org.bidib.wizard.model.ports.MotorPort>, org.bidib.wizard.api.model.listener.PortValueListener<org.bidib.wizard.model.ports.MotorPort>, org.bidib.wizard.api.script.Scripting, TabPanelProvider, org.bidib.wizard.common.script.switching.AccessoryScripting, CvDefinitionPanelProvider, TabSelectionListener

public class StepControlPanel extends Object implements TabSelectionListener, CvDefinitionPanelProvider, TabPanelProvider, org.bidib.wizard.api.model.listener.PortValueListener<org.bidib.wizard.model.ports.MotorPort>, org.bidib.wizard.common.script.switching.AccessoryScripting
  • Constructor Details

  • Method Details

    • createComponent

      public void createComponent()
      Create the step control panel component.
    • firePerformFlipRotate

      protected void firePerformFlipRotate()
    • fireGetPosition

      protected void fireGetPosition()
    • fireSetDirectPosition

      protected void fireSetDirectPosition(Integer directPosition)
    • moveToTargetPosition

      protected void moveToTargetPosition(int targetPosition) throws PositionOutOfRangeException
      Move the turntable to the provided position.
      Parameters:
      targetPosition - the new position
      Throws:
      PositionOutOfRangeException
    • setTurntableDegrees

      public void setTurntableDegrees(double degree)
    • addCvDefinitionRequestListener

      public void addCvDefinitionRequestListener(org.bidib.wizard.api.model.listener.CvDefinitionRequestListener l)
    • getComponent

      public JPanel getComponent()
      Specified by:
      getComponent in interface TabPanelProvider
    • getName

      public String getName()
    • tabSelected

      public void tabSelected(boolean selected)
      Specified by:
      tabSelected in interface TabSelectionListener
      Parameters:
      selected - the tab is selected
    • triggerLoadCvValues

      public void triggerLoadCvValues()
    • cvDefinitionChanged

      public void cvDefinitionChanged()
      The CV definition of the node has changed.
    • cvDefinitionValuesChanged

      public void cvDefinitionValuesChanged(boolean read, List<String> changedNames)
      The values of the current CV definition have changed. Get the cv values and update the stepControlModel.
    • executionStateChanged

      public void executionStateChanged(org.bidib.jbidibc.messages.enums.AccessoryExecutionState executionState, Integer accessoryId, Integer aspect, org.bidib.jbidibc.messages.AccessoryState accessoryState)
    • checkPendingChanges

      public void checkPendingChanges()
      Description copied from interface: CvDefinitionPanelProvider
      Check if the panel has pending changes.
      Specified by:
      checkPendingChanges in interface CvDefinitionPanelProvider
    • writeConfigVariables

      public void writeConfigVariables(List<org.bidib.jbidibc.core.node.ConfigurationVariable> cvList)
      Description copied from interface: CvDefinitionPanelProvider
      Write the config variables.
      Specified by:
      writeConfigVariables in interface CvDefinitionPanelProvider
      Parameters:
      cvList - the list of config variables
    • labelChanged

      public void labelChanged(org.bidib.wizard.model.ports.MotorPort port, String label)
      Specified by:
      labelChanged in interface org.bidib.wizard.api.model.listener.PortListener<org.bidib.wizard.model.ports.MotorPort>
    • valueChanged

      public void valueChanged(org.bidib.wizard.api.model.NodeInterface node, org.bidib.wizard.model.ports.MotorPort port)
      Specified by:
      valueChanged in interface org.bidib.wizard.api.model.listener.PortValueListener<org.bidib.wizard.model.ports.MotorPort>
    • configChanged

      public void configChanged(org.bidib.wizard.api.model.NodeInterface node, org.bidib.wizard.model.ports.MotorPort port)
      Specified by:
      configChanged in interface org.bidib.wizard.api.model.listener.PortListener<org.bidib.wizard.model.ports.MotorPort>
    • getPortClass

      public Class<?> getPortClass()
      Specified by:
      getPortClass in interface org.bidib.wizard.api.model.listener.PortListener<org.bidib.wizard.model.ports.MotorPort>
      Specified by:
      getPortClass in interface org.bidib.wizard.api.model.listener.PortValueListener<org.bidib.wizard.model.ports.MotorPort>
    • setActiveAspect

      public void setActiveAspect(org.bidib.wizard.api.model.SwitchingNodeInterface node, int accessoryNumber, int aspectNumber)
      Specified by:
      setActiveAspect in interface org.bidib.wizard.common.script.switching.AccessoryScripting
    • getAccessoryExecutionState

      public org.bidib.jbidibc.messages.enums.AccessoryExecutionState getAccessoryExecutionState(org.bidib.wizard.api.model.SwitchingNodeInterface node, int accessoryNumber)
      Specified by:
      getAccessoryExecutionState in interface org.bidib.wizard.common.script.switching.AccessoryScripting