public class Caption
extends org.eclipse.swt.widgets.Composite
Composite
displaying information about data displayed by a
ChartDataViewer
.Constructor and Description |
---|
Caption(org.eclipse.swt.widgets.Composite parent)
Creates a new
Caption . |
Modifier and Type | Method and Description |
---|---|
void |
addChannel(java.lang.String name,
org.eclipse.swt.graphics.Color color)
Adds a data-channel to the {[@link Caption}.
|
void |
addInfo(java.lang.String name,
java.lang.String value)
Adds a general information about data to the
Caption . |
void |
setCaptionColor(org.eclipse.swt.graphics.Color color)
Sets the background-
Color of the channel-info-panel of the
Caption . |
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
public void addChannel(java.lang.String name, org.eclipse.swt.graphics.Color color)
name
- name of the data-channel to be added.color
- color representing the added data-channel.public void addInfo(java.lang.String name, java.lang.String value)
Caption
.name
- name describing the kind of information.value
- the actual information about the described data.public void setCaptionColor(org.eclipse.swt.graphics.Color color)
Color
of the channel-info-panel of the
Caption
.color
- Color
the channel-info-panel is supposed to have.