Package org.openpnp.gui
Class JogControlsPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- org.openpnp.gui.JogControlsPanel
-
- All Implemented Interfaces:
java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,javax.accessibility.Accessible
public class JogControlsPanel extends javax.swing.JPanel
Contains controls, DROs and status for the machine. Controls: C right / left, X + / -, Y + / -, Z + / -, stop, pause, slider for jog increment DROs: X, Y, Z, C Radio buttons to select mm or inch.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description javax.swing.Action
cMinusAction
javax.swing.Action
cParkAction
javax.swing.Action
cPlusAction
javax.swing.Action
discardAction
javax.swing.Action
lowerIncrementAction
javax.swing.Action
raiseIncrementAction
javax.swing.Action
recycleAction
javax.swing.Action
safezAction
javax.swing.Action
setIncrement1Action
javax.swing.Action
setIncrement2Action
javax.swing.Action
setIncrement3Action
javax.swing.Action
setIncrement4Action
javax.swing.Action
setIncrement5Action
javax.swing.Action
xMinusAction
javax.swing.Action
xPlusAction
javax.swing.Action
xyParkAction
javax.swing.Action
yMinusAction
javax.swing.Action
yPlusAction
javax.swing.Action
zMinusAction
javax.swing.Action
zParkAction
javax.swing.Action
zPlusAction
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description JogControlsPanel(Configuration configuration, MachineControlsPanel machineControlsPanel)
Create the panel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getJogIncrement()
double
getSpeed()
boolean
isBoardProtectionEnabled()
void
jogTool(int x, int y, int z, int c, HeadMountable tool)
void
setEnabled(boolean enabled)
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
yPlusAction
public javax.swing.Action yPlusAction
-
yMinusAction
public javax.swing.Action yMinusAction
-
xPlusAction
public javax.swing.Action xPlusAction
-
xMinusAction
public javax.swing.Action xMinusAction
-
zPlusAction
public javax.swing.Action zPlusAction
-
zMinusAction
public javax.swing.Action zMinusAction
-
cPlusAction
public javax.swing.Action cPlusAction
-
cMinusAction
public javax.swing.Action cMinusAction
-
xyParkAction
public javax.swing.Action xyParkAction
-
zParkAction
public javax.swing.Action zParkAction
-
cParkAction
public javax.swing.Action cParkAction
-
safezAction
public javax.swing.Action safezAction
-
discardAction
public javax.swing.Action discardAction
-
recycleAction
public javax.swing.Action recycleAction
-
raiseIncrementAction
public javax.swing.Action raiseIncrementAction
-
lowerIncrementAction
public javax.swing.Action lowerIncrementAction
-
setIncrement1Action
public javax.swing.Action setIncrement1Action
-
setIncrement2Action
public javax.swing.Action setIncrement2Action
-
setIncrement3Action
public javax.swing.Action setIncrement3Action
-
setIncrement4Action
public javax.swing.Action setIncrement4Action
-
setIncrement5Action
public javax.swing.Action setIncrement5Action
-
-
Constructor Detail
-
JogControlsPanel
public JogControlsPanel(Configuration configuration, MachineControlsPanel machineControlsPanel)
Create the panel.
-
-
Method Detail
-
setEnabled
public void setEnabled(boolean enabled)
- Overrides:
setEnabled
in classjavax.swing.JComponent
-
getJogIncrement
public double getJogIncrement()
-
isBoardProtectionEnabled
public boolean isBoardProtectionEnabled()
-
jogTool
public void jogTool(int x, int y, int z, int c, HeadMountable tool) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSpeed
public double getSpeed()
-
-