public class Chart
extends org.eclipse.swt.widgets.Composite
implements org.eclipse.swt.widgets.Listener
| Constructor and Description |
|---|
Chart(org.eclipse.swt.widgets.Composite parent,
int style)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
enableCompress(boolean enabled)
Enables compressing series.
|
IAxisSet |
getAxisSet()
Gets the set of axes.
|
org.eclipse.swt.graphics.Color |
getBackgroundInPlotArea()
Gets the background color in plot area.
|
ILegend |
getLegend()
Gets the legend.
|
int |
getOrientation()
Gets the state of chart orientation.
|
org.eclipse.swt.widgets.Composite |
getPlotArea()
Gets the plot area.
|
ISeriesSet |
getSeriesSet()
Gets the set of series.
|
ITitle |
getTitle()
Gets the chart title.
|
void |
handleEvent(org.eclipse.swt.widgets.Event event) |
boolean |
isCompressEnabled()
Gets the state indicating if compressing series is enabled.
|
void |
redraw() |
void |
save(java.lang.String filename,
int format)
Saves to file with given format.
|
void |
setBackground(org.eclipse.swt.graphics.Color color) |
void |
setBackgroundInPlotArea(org.eclipse.swt.graphics.Color color)
Sets the background color in plot area.
|
void |
setOrientation(int orientation)
Sets the state of chart orientation.
|
void |
update() |
void |
updateLayout()
Updates the layout of chart elements.
|
changed, 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, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traversepublic Chart(org.eclipse.swt.widgets.Composite parent,
int style)
parent - the parent composite on which chart is placedstyle - the style of widget to constructpublic ITitle getTitle()
public ILegend getLegend()
public IAxisSet getAxisSet()
public org.eclipse.swt.widgets.Composite getPlotArea()
public ISeriesSet getSeriesSet()
public void setBackground(org.eclipse.swt.graphics.Color color)
setBackground in class org.eclipse.swt.widgets.Controlpublic org.eclipse.swt.graphics.Color getBackgroundInPlotArea()
public void setBackgroundInPlotArea(org.eclipse.swt.graphics.Color color)
color - the background color in plot area. If null is given,
default background color will be set.java.lang.IllegalArgumentException - if given color is disposedpublic void setOrientation(int orientation)
setOrientation in class org.eclipse.swt.widgets.Controlorientation - the orientation which can be SWT.HORIZONTAL or SWT.VERTICALpublic int getOrientation()
getOrientation in class org.eclipse.swt.widgets.Controlpublic void enableCompress(boolean enabled)
enabled - true if enabling compressing seriespublic boolean isCompressEnabled()
public void handleEvent(org.eclipse.swt.widgets.Event event)
handleEvent in interface org.eclipse.swt.widgets.Listenerpublic void updateLayout()
public void update()
update in class org.eclipse.swt.widgets.Controlpublic void dispose()
dispose in class org.eclipse.swt.widgets.Widgetpublic void redraw()
redraw in class org.eclipse.swt.widgets.Controlpublic void save(java.lang.String filename,
int format)
filename - the file nameformat - the format (SWT.IMAGE_*). The supported formats depend on OS.