public class VtkSettingPanel extends javax.swing.JPanel implements java.awt.event.ActionListener, IcyTextField.TextChangeListener, ColorChooserButton.ColorChangeListener
Modifier and Type | Class and Description |
---|---|
static interface |
VtkSettingPanel.SettingChangeListener |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_AMBIENT |
static java.lang.String |
PROPERTY_BG_COLOR |
static java.lang.String |
PROPERTY_BLENDING |
static java.lang.String |
PROPERTY_DIFFUSE |
static java.lang.String |
PROPERTY_INTERPOLATION |
static java.lang.String |
PROPERTY_MAPPER |
static java.lang.String |
PROPERTY_SAMPLE |
static java.lang.String |
PROPERTY_SHADING |
static java.lang.String |
PROPERTY_SPECULAR |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
VtkSettingPanel()
Create the panel.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addSettingChangeListener(VtkSettingPanel.SettingChangeListener listener)
Add a SettingChange listener
|
void |
colorChanged(ColorChooserButton source) |
void |
fireSettingChange(java.lang.Object source,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue) |
java.awt.Color |
getBackgroundColor() |
boolean |
getGPURendering() |
double |
getVolumeAmbient() |
VtkImageVolume.VtkVolumeBlendType |
getVolumeBlendingMode() |
double |
getVolumeDiffuse() |
int |
getVolumeInterpolation() |
int |
getVolumeSample() |
boolean |
getVolumeShading() |
double |
getVolumeSpecular() |
void |
removeSettingChangeListener(VtkSettingPanel.SettingChangeListener listener)
Remove a SettingChange listener
|
void |
setBackgroundColor(java.awt.Color value) |
void |
setGPURendering(boolean value) |
void |
setVolumeAmbient(double value) |
void |
setVolumeBlendingMode(VtkImageVolume.VtkVolumeBlendType value) |
void |
setVolumeDiffuse(double value) |
void |
setVolumeInterpolation(int value) |
void |
setVolumeSample(int value) |
void |
setVolumeShading(boolean value) |
void |
setVolumeSpecular(double value) |
void |
textChanged(IcyTextField source,
boolean validate) |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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
public static final java.lang.String PROPERTY_BG_COLOR
public static final java.lang.String PROPERTY_MAPPER
public static final java.lang.String PROPERTY_BLENDING
public static final java.lang.String PROPERTY_SAMPLE
public static final java.lang.String PROPERTY_INTERPOLATION
public static final java.lang.String PROPERTY_SHADING
public static final java.lang.String PROPERTY_AMBIENT
public static final java.lang.String PROPERTY_DIFFUSE
public static final java.lang.String PROPERTY_SPECULAR
public VtkSettingPanel()
public java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color value)
public boolean getGPURendering()
public void setGPURendering(boolean value)
public int getVolumeInterpolation()
public void setVolumeInterpolation(int value)
public VtkImageVolume.VtkVolumeBlendType getVolumeBlendingMode()
public void setVolumeBlendingMode(VtkImageVolume.VtkVolumeBlendType value)
public int getVolumeSample()
public void setVolumeSample(int value)
public double getVolumeAmbient()
public void setVolumeAmbient(double value)
public double getVolumeDiffuse()
public void setVolumeDiffuse(double value)
public double getVolumeSpecular()
public void setVolumeSpecular(double value)
public boolean getVolumeShading()
VtkImageVolume.getShade()
public void setVolumeShading(boolean value)
VtkImageVolume.setShade(boolean)
public void addSettingChangeListener(VtkSettingPanel.SettingChangeListener listener)
public void removeSettingChangeListener(VtkSettingPanel.SettingChangeListener listener)
public void fireSettingChange(java.lang.Object source, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public void colorChanged(ColorChooserButton source)
colorChanged
in interface ColorChooserButton.ColorChangeListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void textChanged(IcyTextField source, boolean validate)
textChanged
in interface IcyTextField.TextChangeListener