public class TransformPanel extends JPanel implements ActionListener, ChangeListener, ListSelectionListener
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected JButton |
animate
Button for toggling status of animation.
|
protected BioComboBox |
animBox
List of axes for animation.
|
protected JButton |
dataColors
Button for editing colors for the selected data transform.
|
protected JButton |
dataControls
Button for showing controls for the selected data transform.
|
protected JSpinner |
delayTime
Spinner for adjusting burn-in delay.
|
protected JSpinner |
fps
Spinner for adjusting animation rate.
|
protected TransformHandler |
handler
Transform handler upon which GUI controls operate.
|
protected BioComboBox |
leftRightBox
List of axes for left/right arrow mapping.
|
protected JButton |
moveDown
Button for moving data objects downward in the list.
|
protected JButton |
moveUp
Button for moving data objects upward in the list.
|
protected JButton |
removeTransform
Button for removing selected data transform.
|
protected JList |
transformList
List of linked data transforms.
|
protected DefaultListModel |
transformModel
List model for linked data transform list.
|
protected BioComboBox |
upDownBox
List of axes for up/down arrow mapping.
|
protected JCheckBox |
visible
Checkbox for toggling data transform visibility.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
TransformPanel(TransformHandler h)
Creates a panel containing view handler GUI controls.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Handles button presses and combo box selections.
|
void |
addAxis(String axis)
Adds a dimensional axis.
|
void |
addTransform(DataTransform trans)
Adds the given data transform to the list.
|
protected JMenuItem[] |
buildMenuItems(DefaultMutableTreeNode node)
Builds a JMenu from the children of the given tree node.
|
protected JPanel |
doAnimationPanel()
Creates a panel with animation-related components.
|
protected JPanel |
doDataPanel()
Creates a panel with data transform-related components.
|
protected JPanel |
doDataProperties()
Creates a panel for controls pertaining to the selected data object.
|
int |
getAxisCount()
Gets number of registered dimensional axes.
|
int |
getLeftRightAxis()
Gets axis mapped to left/right arrow keys.
|
int |
getUpDownAxis()
Gets axis mapped to up/down arrow keys.
|
boolean |
hasTransform(DataTransform trans)
Gets whether the given transform is currently linked to the display.
|
void |
moveTransformDown(DataTransform trans)
Moves the given transform down in the list.
|
void |
moveTransformUp(DataTransform trans)
Moves the given transform up in the list.
|
void |
removeAllAxes()
Removes all dimensional axes.
|
void |
removeAllTransforms()
Removes all data transforms from the list.
|
void |
removeTransform(DataTransform trans)
Removes the given data transform from the list.
|
void |
stateChanged(ChangeEvent e)
Handles spinner changes.
|
void |
updateControls()
Updates controls to reflect current handler status.
|
void |
valueChanged(ListSelectionEvent e)
Handles list selection changes.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
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
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, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected TransformHandler handler
protected JList transformList
protected DefaultListModel transformModel
protected JCheckBox visible
protected JButton removeTransform
protected JButton dataColors
protected JButton dataControls
protected JButton moveUp
protected JButton moveDown
protected JSpinner delayTime
protected BioComboBox leftRightBox
protected BioComboBox upDownBox
protected JButton animate
protected JSpinner fps
protected BioComboBox animBox
public TransformPanel(TransformHandler h)
public void addTransform(DataTransform trans)
public void removeTransform(DataTransform trans)
public void removeAllTransforms()
public void moveTransformUp(DataTransform trans)
public void moveTransformDown(DataTransform trans)
public boolean hasTransform(DataTransform trans)
public void addAxis(String axis)
public void removeAllAxes()
public int getAxisCount()
public int getLeftRightAxis()
public int getUpDownAxis()
public void updateControls()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
protected JPanel doDataPanel()
protected JPanel doAnimationPanel()
protected JPanel doDataProperties()
protected JMenuItem[] buildMenuItems(DefaultMutableTreeNode node)
Copyright © 2015–2022 SciJava. All rights reserved.