public class ROIFigure
extends org.eclipse.draw2d.Figure
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ROIFigure.CommonDragger |
(package private) class |
ROIFigure.HandlerBoundsCalulator |
(package private) class |
ROIFigure.ResizeHandler |
(package private) class |
ROIFigure.ROIRectDragger |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
HANDLE_SIZE |
| Constructor and Description |
|---|
ROIFigure(IntensityGraphFigure intensityGraphFigure,
java.lang.String name,
org.eclipse.swt.graphics.Color color,
IntensityGraphFigure.IROIListener roiListener,
IntensityGraphFigure.IROIInfoProvider roiInfoProvider)
Constructor of ROI figure.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPoint(int x,
int y) |
void |
fireROIUpdated() |
java.lang.String |
getName() |
protected void |
layout() |
protected void |
paintFigure(org.eclipse.draw2d.Graphics graphics) |
void |
setROIColor(org.eclipse.swt.graphics.Color roiColor) |
void |
setROIDataBounds(int xIndex,
int yIndex,
int width,
int height) |
void |
setROIDataBoundsH(int height) |
void |
setROIDataBoundsW(int width) |
void |
setROIDataBoundsX(int xIndex) |
void |
setROIDataBoundsY(int yIndex) |
void |
setROIGeoBounds(int x,
int y,
int w,
int h) |
protected void |
updateChildrenBounds() |
protected boolean |
useLocalCoordinates() |
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, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validateprotected static final int HANDLE_SIZE
public ROIFigure(IntensityGraphFigure intensityGraphFigure, java.lang.String name, org.eclipse.swt.graphics.Color color, IntensityGraphFigure.IROIListener roiListener, IntensityGraphFigure.IROIInfoProvider roiInfoProvider)
name - name of the ROI. It must be unique for this graph.color - color of the ROI.roiListener - listener on ROI updates. Can be null.roiInfoProvider - provides information for the ROI. Can be null.public boolean containsPoint(int x,
int y)
containsPoint in interface org.eclipse.draw2d.IFigurecontainsPoint in class org.eclipse.draw2d.Figurepublic java.lang.String getName()
protected void layout()
layout in class org.eclipse.draw2d.Figureprotected void paintFigure(org.eclipse.draw2d.Graphics graphics)
paintFigure in class org.eclipse.draw2d.Figureprotected void updateChildrenBounds()
protected boolean useLocalCoordinates()
useLocalCoordinates in class org.eclipse.draw2d.Figurepublic void setROIGeoBounds(int x,
int y,
int w,
int h)
public void setROIDataBounds(int xIndex,
int yIndex,
int width,
int height)
public void setROIDataBoundsX(int xIndex)
public void setROIDataBoundsY(int yIndex)
public void setROIDataBoundsW(int width)
public void setROIDataBoundsH(int height)
public void fireROIUpdated()
public void setROIColor(org.eclipse.swt.graphics.Color roiColor)