public class RFScrollPane extends javax.swing.JScrollPane implements IViewComponent
JScrollPane
which allows beside calling
the constructor with its normal java values also to provide its dimension.
Moreover there are also there inherited methods from the class
JComponent
which all will return the delivered dimension value, so
that there no resize will happen.JScrollPane
,
Serialized Formjavax.swing.JScrollPane.AccessibleJScrollPane, javax.swing.JScrollPane.ScrollBar
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLAZZ
Class name.
|
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport
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
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
Constructor and Description |
---|
RFScrollPane()
Creates an empty (no view port view)
JScrollPane where both
horizontal and vertical scroll bars appear when needed. |
RFScrollPane(java.awt.Component view_,
java.awt.Dimension dim_)
Creates a JScrollPane that displays the contents of the specified
component, where both horizontal and vertical scroll bars appear whenever
the component's contents are larger than the view.
|
RFScrollPane(java.awt.Component view_,
int vsbPolicy_,
int hsbPolicy_,
java.awt.Dimension dim_)
Creates an empty (no view port view) JScrollPane with specified scroll bar
policies.
|
RFScrollPane(java.awt.Dimension dim_)
Creates an empty (no view port view)
JScrollPane where both
horizontal and vertical scroll bars appear when needed. |
RFScrollPane(int vsbPolicy_,
int hsbPolicy_,
java.awt.Dimension dim_)
Creates an empty (no view port view) JScrollPane with specified scroll bar
policies.
|
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.
|
java.awt.Dimension |
getMaximumSize() |
java.awt.Dimension |
getMinimumSize() |
java.awt.Dimension |
getPreferredSize() |
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.
|
void |
setSize(java.awt.Dimension dim_) |
java.lang.String |
toString() |
createHorizontalScrollBar, createVerticalScrollBar, createViewport, getAccessibleContext, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getUI, getUIClassID, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorder, getViewportBorderBounds, isValidateRoot, isWheelScrollingEnabled, paramString, setColumnHeader, setColumnHeaderView, setComponentOrientation, setCorner, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setLayout, setRowHeader, setRowHeaderView, setUI, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportBorder, setViewportView, setWheelScrollingEnabled, 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, getNextFocusableComponent, getPopupLocation, 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, 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, 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, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
public RFScrollPane()
JScrollPane
where both
horizontal and vertical scroll bars appear when needed. The dimension
is set to null
and therefore this instance can vary in its size.RFScrollPane(Dimension)
public RFScrollPane(java.awt.Dimension dim_)
JScrollPane
where both
horizontal and vertical scroll bars appear when needed. The dimension
is possibly also set. If it is null then the dimension of the current
drawn figure is return by its inherited methods.dim_
- This is the dimension of this container. If the dimension is
null
the size of the instance is taken via its super method
and so fore this instance isn't fixed in its size.public RFScrollPane(java.awt.Component view_, java.awt.Dimension dim_)
Dimension
.view_
- The component to display in the scrollpane's view port.dim_
- This is the dimension of this container. If the dimension is
null
the size of the instance is taken via its super method
and so fore this instance isn't fixed in its size.public RFScrollPane(int vsbPolicy_, int hsbPolicy_, java.awt.Dimension dim_)
vsbPolicy_
- An integer that specifies the vertical scroll bar policy.hsbPolicy_
- An integer that specifies the horizontal scroll bar policy.dim_
- This is the dimension of this container. If the dimension is
null
the size of the instance is taken via its super method
and so fore this instance isn't fixed in its size.public RFScrollPane(java.awt.Component view_, int vsbPolicy_, int hsbPolicy_, java.awt.Dimension dim_)
view_
- The component to display in the scrollpane's view port.vsbPolicy_
- An integer that specifies the vertical scroll bar policy.hsbPolicy_
- An integer that specifies the horizontal scroll bar policy.dim_
- This is the dimension of this container. If the dimension is
null
the size of the instance is taken via its super method
and so fore this instance isn't fixed in its size.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 java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent
public java.awt.Dimension getMaximumSize()
getMaximumSize
in class javax.swing.JComponent
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public void setSize(java.awt.Dimension dim_)
setSize
in class java.awt.Component
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 putOpaque(boolean opaque_)
IViewComponent
putOpaque
in interface IViewComponent
opaque_
- The opaque value.public void putVisual(boolean visual_)
IViewComponent
putVisual
in interface IViewComponent
visual_
- Sets the visibility of the component to be true or not.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