public class RFDoubleSlider extends com.cosylab.gui.components.Slider implements IViewComponent
com.cosylab.gui.components.Slider.Button
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLAZZ
Class name.
|
static double |
LARGE_STEP
Large step of a slider.
|
static long |
serialVersionUID
This is the current unique serial version UID.
|
static double |
SMALL_STEP
Small step of a slider.
|
SET_MANUAL, SET_ON_CHANGE, SET_ON_RELEASE
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
RFDoubleSlider(IEData data_) |
RFDoubleSlider(IEData data_,
double[] majorTicks_,
double minorTicksNumber_) |
RFDoubleSlider(IEData data_,
double[] majorTicks_,
double minorTicksNumber_,
double smallStep_,
double largeStep_) |
Modifier and Type | Method and Description |
---|---|
void |
debug()
This will debug the viewable component, by, for example, displaying the
outer area as a line border or something like that.
|
EGraphicComponent |
fetchGraphicComponent()
Returns the current component as an enumeration value.
|
ESeverity |
fetchSeverity()
Fetches the severity of the component.
|
java.lang.String |
fetchText(IEData view_)
This will fetch the text of the component.
|
javax.swing.BoundedRangeModel |
getModel()
Returns the current range model of the slider.
|
boolean |
hasOpaque()
Tells the caller if this component is drawn with a background or not.
|
boolean |
isEnable()
Asks if the current component is enabled and so for click-able on the
screen.
|
boolean |
isValueAdjusting(IEData view_)
Queries if the value is adjusting.
|
boolean |
isVisual()
Queries if this component is opaque or not.
|
void |
putBackground(java.awt.Color background_)
Sets the current background color.
|
void |
putBorder(javax.swing.border.Border border_)
Puts the Swing border to the component.
|
void |
putEnable(boolean enable_)
Sets the enable property.
|
void |
putForeground(java.awt.Color foreground_)
Sets the current foreground color.
|
void |
putListener(java.util.EventListener listener_)
Adds a
PropertyChangeListener or SetListener interface to
the listener array. |
void |
putNumber(java.lang.Number number_,
IEData view_)
Sets the current number.
|
void |
putOpaque(boolean opaque_)
Sets the opaque of this component.
|
void |
putSelected(boolean isSelected_)
Puts the selected boolean value to the viewable component.
|
void |
putSeverity(ESeverity severity_)
Sets the severity of this component.
|
void |
putText(java.lang.String label_,
IEData view_)
Will set the displayed label text of the component.
|
void |
putTooltip(java.lang.String tooltip_)
Possibly this will not work because the getToolTip(void):String method is
overwritten by the ACOP slider class.
|
void |
putVisual(boolean visual_)
Sets the visibility of this component.
|
java.lang.String |
toString() |
addSetListener, decrementBit, decrementLarge, decrementSmall, fireSetPerformed, formatNumber, getAutoSynchronizeDelay, getBitStep, getButtonIcon, getButtonText, getButtonTooltip, getContinuousModeDelayTime, getContinuousModeRepeatTime, getCustomizer, getFieldFormat, getFormat, getInfoBar, getLargeStep, getMajorTickLabels, getMajorTicks, getMaximum, getMinimum, getMinorTicksStep, getMode, getNavigationBar, getPopupManager, getReadback, getRestoreButtonTitle, getSetMode, getSlider, getSliderUI, getSmallStep, getState, getStoredValue, getTicksFormat, getTitle, getTitleFont, getTitleVisible, getToolTipText, getUnits, getUnitsFont, getValue, getValuePrecision, incrementBit, incrementLarge, incrementSmall, isAutoSynchronize, isBitStepRelative, isButtonVisible, isContinuousControlVisible, isContinuousModeEnabled, isDragEnabled, isDropEnabled, isEditable, isLargeStepRelative, isPopupEnabled, isSmallStepRelative, isSnapToTicks, isStorageButtonsVisible, isStoredValueLabelVisible, isSuspended, isSyncButtonVisible, isUnitsVisible, main, measureTick, removeSetListener, resetSteps, restoreValue, resume, setAutoSynchronize, setAutoSynchronizeDelay, setBackground, setBitStep, setBitStepRelative, setButtonIcon, setButtonText, setButtonTooltip, setButtonVisible, setContinuousControlVisible, setContinuousModeDelayTime, setContinuousModeEnabled, setContinuousModeRepeatTime, setDragEnabled, setDropEnabled, setEditable, setEnabled, setFieldFormat, setForeground, setFormat, setLargeStep, setLargeStepRelative, setMajorTickLabels, setMajorTicks, setManual, setMaximum, setMinimum, setMinorTicksStep, setMode, setPopupEnabled, setReadback, setRestoreButtonTitle, setSetMode, setSmallStep, setSmallStepRelative, setSnapToTicks, setState, setStorageButtonsVisible, setStoredValue, setStoredValueLabelVisible, setSyncButtonVisible, setTicksFormat, setTitle, setTitleFont, setTitleVisible, setToolTipText, setUnits, setUnitsFont, setUnitsVisible, setValue, setValuePrecision, storeValue, suspend, synchronize
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, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, 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, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final long serialVersionUID
public static final java.lang.String CLAZZ
public static final double SMALL_STEP
public static final double LARGE_STEP
public RFDoubleSlider(IEData data_)
data_
- The data component enumeration element. This should never
by null
.public RFDoubleSlider(IEData data_, double[] majorTicks_, double minorTicksNumber_)
data_
- The data component enumeration element. This should never
by null
.majorTicks_
- Is an array of major ticks of the slider. This can
also be null
if the major ticks doesn't need to be
displayed.minorTicksNumber_
- Is the number of minor ticks between two major
ones. This should be greater or equal to zero.public RFDoubleSlider(IEData data_, double[] majorTicks_, double minorTicksNumber_, double smallStep_, double largeStep_)
data_
- The data component enumeration element. This should never
by null
.majorTicks_
- Is an array of major ticks of the slider. This can
also be null
if the major ticks doesn't need to be
displayed.minorTicksNumber_
- Is the number of minor ticks between two major
ones. This should be greater or equal to zero.smallStep_
- Small steps for positioning to a new value.largeStep_
- Large steps for positioning to a new value.public void debug()
IViewComponent
debug
in interface IViewComponent
public void putSeverity(ESeverity severity_)
IViewComponent
putSeverity
in interface IViewComponent
severity_
- The severity value.public ESeverity fetchSeverity()
IViewComponent
Fetches the severity of the component. This value has no direct influence on the GUI element but tells the caller if the severity value is set and sets corresponding the background and foreground color, for example.
fetchSeverity
in interface IViewComponent
public final javax.swing.BoundedRangeModel getModel()
public EGraphicComponent fetchGraphicComponent()
IViewComponent
fetchGraphicComponent
in interface IViewComponent
public java.lang.String fetchText(IEData view_)
IViewComponent
fetchText
in interface IViewComponent
view_
- This is the current view element in which you wanted to append
the above label text. This can be in some inherited class also be
null.public boolean hasOpaque()
IViewComponent
hasOpaque
in interface IViewComponent
public boolean isEnable()
IViewComponent
isEnable
in interface IViewComponent
public boolean isValueAdjusting(IEData view_)
IViewComponent
Queries if the value is adjusting. If this is true it will return the value true otherwise false.
The word adjusting means that you take a component and drag it around on screen with holding down the key or mouse button pressed. If this occurs a true is returned.
isValueAdjusting
in interface IViewComponent
view_
- Is the data component for which this method will query for.public boolean isVisual()
IViewComponent
isVisual
in interface IViewComponent
public void putBackground(java.awt.Color background_)
IViewComponent
putBackground
in interface IViewComponent
background_
- Is the current background color.public void putEnable(boolean enable_)
IViewComponent
putEnable
in interface IViewComponent
enable_
- Enables or disables this component.public void putForeground(java.awt.Color foreground_)
IViewComponent
putForeground
in interface IViewComponent
foreground_
- Is the current foreground color.public void putListener(java.util.EventListener listener_)
PropertyChangeListener
or SetListener
interface to
the listener array. All other listeners throw an
IllegalArgumentException
.putListener
in interface IViewComponent
listener_
- The listener interface.IViewComponent.putListener(java.util.EventListener)
public void putNumber(java.lang.Number number_, IEData view_)
IViewComponent
putNumber
in interface IViewComponent
number_
- The number to be set.view_
- Is the viewable data component.public void putOpaque(boolean opaque_)
IViewComponent
putOpaque
in interface IViewComponent
opaque_
- The opaque value.public void putSelected(boolean isSelected_)
IViewComponent
putSelected
in interface IViewComponent
isSelected_
- Is a boolean value.public void putText(java.lang.String label_, IEData view_)
IViewComponent
putText
in interface IViewComponent
label_
- This is the text as a string value which represents the
current displayed text.view_
- This is the current view element in which you wanted to append
the above label text. This can be in some inherited class also be
null.public void putTooltip(java.lang.String tooltip_)
putTooltip
in interface IViewComponent
tooltip_
- The tool tip text.IViewComponent.putTooltip(java.lang.String)
public void putVisual(boolean visual_)
IViewComponent
putVisual
in interface IViewComponent
visual_
- Sets the visibility of the component to be true or not.public void putBorder(javax.swing.border.Border border_)
IViewComponent
putBorder
in interface IViewComponent
border_
- Is a Swing border.public java.lang.String toString()
toString
in class java.awt.Component
14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft