public class Title extends org.eclipse.swt.widgets.Canvas implements ITitle, org.eclipse.swt.events.PaintListener
| Modifier and Type | Field and Description |
|---|---|
protected Chart |
chart
the chart
|
protected boolean |
isVisible
the visibility state of axis
|
protected java.lang.String |
text
the title text
|
| Constructor and Description |
|---|
Title(Chart parent,
int style)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected java.lang.String |
getDefaultText()
Gets the default title text.
|
java.lang.String |
getText()
Gets the title text.
|
protected boolean |
isHorizontal()
Gets the state indicating if showing title horizontally.
|
boolean |
isVisible()
Gets the visibility state.
|
void |
paintControl(org.eclipse.swt.events.PaintEvent e) |
void |
setFont(org.eclipse.swt.graphics.Font font)
Sets the font for title text.
|
void |
setForeground(org.eclipse.swt.graphics.Color color)
Sets the foreground color of title.
|
void |
setText(java.lang.String text)
Sets the title text.
|
void |
setVisible(boolean isVisible)
Sets the visibility state of title.
|
void |
updateLayoutData()
Updates the title layout data.
|
drawBackground, getCaret, getIME, scroll, setCaret, setIMEchanged, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getBorderWidth, getHorizontalBar, getScrollbarsMode, getVerticalBaraddControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateaddDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, getForegroundprotected Chart chart
protected java.lang.String text
protected boolean isVisible
public Title(Chart parent, int style)
parent - the parent compositestyle - the stylepublic void setText(java.lang.String text)
ITitleprotected java.lang.String getDefaultText()
public java.lang.String getText()
ITitlepublic void setFont(org.eclipse.swt.graphics.Font font)
ITitlepublic void setForeground(org.eclipse.swt.graphics.Color color)
ITitlesetForeground in interface ITitlesetForeground in class org.eclipse.swt.widgets.Controlcolor - the foreground color of titlepublic void setVisible(boolean isVisible)
ITitlesetVisible in interface ITitlesetVisible in class org.eclipse.swt.widgets.ControlisVisible - the visibility statepublic boolean isVisible()
ITitleprotected boolean isHorizontal()
public void updateLayoutData()
public void dispose()
dispose in class org.eclipse.swt.widgets.Widgetpublic void paintControl(org.eclipse.swt.events.PaintEvent e)
paintControl in interface org.eclipse.swt.events.PaintListener