public class RFPanelUnfixed extends javax.swing.JPanel implements IViewComponent
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLAZZ
Class name.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
RFPanelUnfixed()
Creates a new panel for RF with an unfixed size.
|
RFPanelUnfixed(java.awt.LayoutManager layout_,
boolean doubleBuffered_)
Creates a new JPanel with a specified buffering strategy.
|
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.
|
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 new listener to these object.
|
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_)
Puts the tool tip text to the viewable component.
|
void |
putVisual(boolean visual_)
Sets the visibility of this component.
|
java.lang.String |
toString() |
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, transferFocus, transferFocusBackward, transferFocusUpCycle
public RFPanelUnfixed()
public RFPanelUnfixed(java.awt.LayoutManager layout_, boolean doubleBuffered_)
isDoubleBuffered
is true
, the JPanel
will
use a double buffer.layout_
- The LayoutManager to use.doubleBuffered_
- A boolean, true
for double-buffering, which uses
additional memory space to achieve fast, flicker-free updates.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 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 isEnable()
IViewComponent
isEnable
in interface IViewComponent
public boolean isVisual()
IViewComponent
isVisual
in interface IViewComponent
public boolean hasOpaque()
IViewComponent
hasOpaque
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 void putListener(java.util.EventListener listener_)
IViewComponent
putListener
in interface IViewComponent
listener_
- The listener interface.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 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 putEnable(boolean enable_)
IViewComponent
putEnable
in interface IViewComponent
enable_
- Enables or disables this component.public void putVisual(boolean visual_)
IViewComponent
putVisual
in interface IViewComponent
visual_
- Sets the visibility of the component to be true or not.public void putOpaque(boolean opaque_)
IViewComponent
putOpaque
in interface IViewComponent
opaque_
- The opaque value.public void putForeground(java.awt.Color foreground_)
IViewComponent
putForeground
in interface IViewComponent
foreground_
- Is the current foreground color.public void putBackground(java.awt.Color background_)
IViewComponent
putBackground
in interface IViewComponent
background_
- Is the current background color.public void putTooltip(java.lang.String tooltip_)
IViewComponent
putTooltip
in interface IViewComponent
tooltip_
- The tool tip text.public void putSelected(boolean isSelected_)
IViewComponent
putSelected
in interface IViewComponent
isSelected_
- Is a boolean value.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