Class IntensityGraphFigure.SinglePixelProfileCrossHair
- java.lang.Object
-
- org.eclipse.draw2d.Figure
-
- org.eclipse.nebula.visualization.widgets.figures.IntensityGraphFigure.SinglePixelProfileCrossHair
-
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure
- Enclosing class:
- IntensityGraphFigure
class IntensityGraphFigure.SinglePixelProfileCrossHair extends org.eclipse.draw2d.Figure
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.draw2d.geometry.Point
crossDataIndex
Data index of cross center on cropped data array.private org.eclipse.draw2d.Figure
crossPoint
private int
crossX
Center coordinatesprivate int
crossY
Center coordinatesprivate org.eclipse.draw2d.Polyline
hLine
private boolean
inDefaultPosition
private org.eclipse.draw2d.Polyline
vLine
-
Constructor Summary
Constructors Constructor Description SinglePixelProfileCrossHair()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsPoint(int x, int y)
protected void
layout()
void
setCrossHairColor(org.eclipse.swt.graphics.Color crossHairColor)
void
setCrossPosition(int x, int y, boolean updatedCrossDataIndex)
set Cross Position-
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, paintFigure, 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, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
-
-
-
Field Detail
-
crossX
private int crossX
Center coordinates
-
crossY
private int crossY
Center coordinates
-
crossDataIndex
private org.eclipse.draw2d.geometry.Point crossDataIndex
Data index of cross center on cropped data array.
-
inDefaultPosition
private boolean inDefaultPosition
-
hLine
private org.eclipse.draw2d.Polyline hLine
-
vLine
private org.eclipse.draw2d.Polyline vLine
-
crossPoint
private org.eclipse.draw2d.Figure crossPoint
-
-
Method Detail
-
containsPoint
public boolean containsPoint(int x, int y)
- Specified by:
containsPoint
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
containsPoint
in classorg.eclipse.draw2d.Figure
-
layout
protected void layout()
- Overrides:
layout
in classorg.eclipse.draw2d.Figure
-
setCrossHairColor
public void setCrossHairColor(org.eclipse.swt.graphics.Color crossHairColor)
-
setCrossPosition
public void setCrossPosition(int x, int y, boolean updatedCrossDataIndex)
set Cross Position- Parameters:
x
-y
-
-
-