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.String
PROPERTY_CONFIG
static java.lang.String
PROPERTY_XY_GRAPH_MEM
static java.lang.String
PROPERTY_ZOOMTYPE
static java.lang.String
X_AXIS
default X axis namestatic java.lang.String
Y_AXIS
default Y axis name
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAnnotation(Annotation annotation)
Add an annotationvoid
addAxis(Axis axis)
Add an axis to the graphvoid
addTrace(Trace trace)
Add a tracevoid
fireConfigChanged()
java.util.List<Axis>
getAxisList()
org.eclipse.swt.graphics.Image
getImage()
Legend
getLegend(Trace trace)
java.util.Map<Axis,Legend>
getLegendMap()
OperationsManager
getOperationsManager()
PlotArea
getPlotArea()
Axis
getPrimaryXAxis()
Axis
getPrimaryYAxis()
java.lang.String
getTitle()
org.eclipse.swt.graphics.Color
getTitleColor()
org.eclipse.swt.graphics.RGB
getTitleColorRgb()
org.eclipse.swt.graphics.Font
getTitleFont()
org.eclipse.swt.graphics.FontData
getTitleFontData()
java.util.List<Axis>
getXAxisList()
XYGraphMemento
getXyGraphMem()
java.util.List<Axis>
getYAxisList()
ZoomType
getZoomType()
boolean
isShowLegend()
boolean
isShowTitle()
boolean
isTransparent()
void
paintFigure(org.eclipse.draw2d.Graphics graphics)
void
performAutoScale()
Perform forced autoscale to all axes.void
performStagger()
Stagger all axes: Autoscale each axis so that traces on various axes don't overlapvoid
removeAnnotation(Annotation annotation)
Remove an annotationboolean
removeAxis(Axis axis)
Remove an axis from the graphvoid
removeTrace(Trace trace)
Remove a trace.void
setShowLegend(boolean showLegend)
void
setShowTitle(boolean showTitle)
void
setTitle(java.lang.String title)
void
setTitleColor(org.eclipse.swt.graphics.Color titleColor)
void
setTitleFont(org.eclipse.swt.graphics.Font titleFont)
void
setTransparent(boolean transparent)
void
setXyGraphMem(XYGraphMemento xyGraphMem)
void
setZoomType(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()
-
-