Interface IXYGraph
-
- All Superinterfaces:
org.eclipse.draw2d.IFigure
- All Known Implementing Classes:
XYGraph
public interface IXYGraph extends org.eclipse.draw2d.IFigure
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_CONFIGstatic java.lang.StringPROPERTY_XY_GRAPH_MEMstatic java.lang.StringPROPERTY_ZOOMTYPEstatic java.lang.StringX_AXISdefault X axis namestatic java.lang.StringY_AXISdefault Y axis name
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAnnotation(Annotation annotation)Add an annotationvoidaddAxis(Axis axis)Add an axis to the graphvoidaddTrace(Trace trace)Add a tracevoidfireConfigChanged()java.util.List<Axis>getAxisList()org.eclipse.swt.graphics.ImagegetImage()LegendgetLegend(Trace trace)java.util.Map<Axis,Legend>getLegendMap()OperationsManagergetOperationsManager()PlotAreagetPlotArea()AxisgetPrimaryXAxis()AxisgetPrimaryYAxis()java.lang.StringgetTitle()org.eclipse.swt.graphics.ColorgetTitleColor()org.eclipse.swt.graphics.RGBgetTitleColorRgb()org.eclipse.swt.graphics.FontgetTitleFont()org.eclipse.swt.graphics.FontDatagetTitleFontData()java.util.List<Axis>getXAxisList()XYGraphMementogetXyGraphMem()java.util.List<Axis>getYAxisList()ZoomTypegetZoomType()booleanisShowLegend()booleanisShowTitle()booleanisTransparent()voidpaintFigure(org.eclipse.draw2d.Graphics graphics)voidperformAutoScale()Perform forced autoscale to all axes.voidperformStagger()Stagger all axes: Autoscale each axis so that traces on various axes don't overlapvoidremoveAnnotation(Annotation annotation)Remove an annotationbooleanremoveAxis(Axis axis)Remove an axis from the graphvoidremoveTrace(Trace trace)Remove a trace.voidsetShowLegend(boolean showLegend)voidsetShowTitle(boolean showTitle)voidsetTitle(java.lang.String title)voidsetTitleColor(org.eclipse.swt.graphics.Color titleColor)voidsetTitleFont(org.eclipse.swt.graphics.Font titleFont)voidsetTransparent(boolean transparent)voidsetXyGraphMem(XYGraphMemento xyGraphMem)voidsetZoomType(ZoomType zoomType)-
Methods inherited from interface org.eclipse.draw2d.IFigure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setClippingStrategy, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
-
-
-
-
Field Detail
-
PROPERTY_CONFIG
static final java.lang.String PROPERTY_CONFIG
- See Also:
- Constant Field Values
-
PROPERTY_XY_GRAPH_MEM
static final java.lang.String PROPERTY_XY_GRAPH_MEM
- See Also:
- Constant Field Values
-
PROPERTY_ZOOMTYPE
static final java.lang.String PROPERTY_ZOOMTYPE
- See Also:
- Constant Field Values
-
X_AXIS
static final java.lang.String X_AXIS
default X axis name- See Also:
- Constant Field Values
-
Y_AXIS
static final java.lang.String Y_AXIS
default Y axis name- See Also:
- Constant Field Values
-
-
Method Detail
-
fireConfigChanged
void fireConfigChanged()
-
getXyGraphMem
XYGraphMemento getXyGraphMem()
-
setXyGraphMem
void setXyGraphMem(XYGraphMemento xyGraphMem)
-
setZoomType
void setZoomType(ZoomType zoomType)
- Parameters:
zoomType- the zoomType to set
-
getZoomType
ZoomType getZoomType()
- Returns:
- the zoomType
-
setTitle
void setTitle(java.lang.String title)
- Parameters:
title- the title to set
-
setShowTitle
void setShowTitle(boolean showTitle)
- Parameters:
showTitle- true if title should be shown; false otherwise.
-
isShowTitle
boolean isShowTitle()
- Returns:
- true if title should be shown; false otherwise.
-
setShowLegend
void setShowLegend(boolean showLegend)
- Parameters:
showLegend- true if legend should be shown; false otherwise.
-
isShowLegend
boolean isShowLegend()
- Returns:
- the showLegend
-
addAxis
void addAxis(Axis axis)
Add an axis to the graph- Parameters:
axis-
-
removeAxis
boolean removeAxis(Axis axis)
Remove an axis from the graph- Parameters:
axis-- Returns:
- true if this axis exists.
-
addTrace
void addTrace(Trace trace)
Add a trace- Parameters:
trace-
-
removeTrace
void removeTrace(Trace trace)
Remove a trace.- Parameters:
trace-
-
addAnnotation
void addAnnotation(Annotation annotation)
Add an annotation- Parameters:
annotation-
-
removeAnnotation
void removeAnnotation(Annotation annotation)
Remove an annotation- Parameters:
annotation-
-
setTitleFont
void setTitleFont(org.eclipse.swt.graphics.Font titleFont)
- Parameters:
titleFont- the titleFont to set
-
getTitleFont
org.eclipse.swt.graphics.Font getTitleFont()
- Returns:
- the title font.
-
getTitleFontData
org.eclipse.swt.graphics.FontData getTitleFontData()
-
setTitleColor
void setTitleColor(org.eclipse.swt.graphics.Color titleColor)
- Parameters:
titleColor- the titleColor to set
-
paintFigure
void paintFigure(org.eclipse.draw2d.Graphics graphics)
-
setTransparent
void setTransparent(boolean transparent)
- Parameters:
transparent- the transparent to set
-
isTransparent
boolean isTransparent()
- Returns:
- the transparent
-
getPlotArea
PlotArea getPlotArea()
- Returns:
- the plotArea, which contains all the elements drawn inside it.
-
getImage
org.eclipse.swt.graphics.Image getImage()
- Returns:
- Image of the XYFigure. Receiver must dispose.
-
getTitleColor
org.eclipse.swt.graphics.Color getTitleColor()
- Returns:
- the titleColor
-
getTitleColorRgb
org.eclipse.swt.graphics.RGB getTitleColorRgb()
-
getTitle
java.lang.String getTitle()
- Returns:
- the title
-
getOperationsManager
OperationsManager getOperationsManager()
- Returns:
- the operationsManager
-
getXAxisList
java.util.List<Axis> getXAxisList()
- Returns:
- the xAxisList
-
getYAxisList
java.util.List<Axis> getYAxisList()
- Returns:
- the yAxisList
-
getAxisList
java.util.List<Axis> getAxisList()
- Returns:
- the all the axis include xAxes and yAxes. yAxisList is appended to xAxisList in the returned list.
-
performAutoScale
void performAutoScale()
Perform forced autoscale to all axes.
-
performStagger
void performStagger()
Stagger all axes: Autoscale each axis so that traces on various axes don't overlap
-
getPrimaryXAxis
Axis getPrimaryXAxis()
-
getPrimaryYAxis
Axis getPrimaryYAxis()
-
-