Class CrossAnnotation
- java.lang.Object
-
- org.eclipse.draw2d.Figure
-
- org.eclipse.nebula.visualization.xygraph.figures.Annotation
-
- org.eclipse.nebula.visualization.xygraph.figures.CrossAnnotation
-
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure
,IDataProviderListener
,IAxisListener
public class CrossAnnotation extends Annotation
Variation of annotation that is represented as a cross with an arm length of five pixels.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.nebula.visualization.xygraph.figures.Annotation
Annotation.CursorLineStyle, Annotation.InfoLabelDragger, Annotation.Pointer
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
CROSS_SIZE
-
Fields inherited from class org.eclipse.nebula.visualization.xygraph.figures.Annotation
currentSnappedSample, pointerDragged, trace, xAxis, xValue, yAxis, yValue
-
-
Constructor Summary
Constructors Constructor Description CrossAnnotation(java.lang.String name, Axis xAxis, Axis yAxis)
CrossAnnotation(java.lang.String name, Trace trace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
paintFigure(org.eclipse.draw2d.Graphics graphics)
void
setCurrentSnappedSample(ISample currentSnappedSample, boolean keepLabelPosition)
-
Methods inherited from class org.eclipse.nebula.visualization.xygraph.figures.Annotation
addAnnotationListener, axisAutoScaleChanged, axisForegroundColorChanged, axisLogScaleChanged, axisRangeChanged, axisRevalidated, axisTitleChanged, containsPoint, dataChanged, getAnnotationColor, getAnnotationColorRGB, getAnnotationFont, getCursorLineStyle, getFontData, getLabelProvider, getName, getTrace, getXAxis, getXValue, getYAxis, getYValue, isFree, isShowName, isShowPosition, isShowSampleInfo, layout, remove, setAnnotationColor, setAnnotationFont, setCurrentPosition, setCurrentPosition, setCursorLineStyle, setdxdy, setFont, setFree, setLabelProvider, setLocation, setName, setShowName, setShowPosition, setShowSampleInfo, setTrace, setValues, setXAxis, setXYGraph, setYAxis, toFront, updateToDefaultPosition, updateX0Y0Fromdxdy
-
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, 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, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, paint, paintBorder, paintChildren, paintClientArea, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
-
-
-
Field Detail
-
CROSS_SIZE
static final int CROSS_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setCurrentSnappedSample
public void setCurrentSnappedSample(ISample currentSnappedSample, boolean keepLabelPosition)
- Overrides:
setCurrentSnappedSample
in classAnnotation
- Parameters:
currentSnappedSample
- the currentSnappedSample to set
-
paintFigure
protected void paintFigure(org.eclipse.draw2d.Graphics graphics)
- Overrides:
paintFigure
in classAnnotation
-
-