Interface ILockableRegion
- All Superinterfaces:
IRegion
- All Known Implementing Classes:
CircleSelection,EllipseSelection,HyperbolaSelection,ParabolaSelection
This region allows control over which parts of the region
can be moved. The alternative would be an API which allows one to
can and set handle properties by ID. This currently is more complex
than is required so a more high level design is implemented.
If the method count here grows above 6, consider replacing ILockableRegion
with a more flexible and abstract API, like getting and setting handle
properties via abstract IDs.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.dawnsci.plotting.api.region.IRegion
IRegion.RegionType -
Field Summary
Fields inherited from interface org.eclipse.dawnsci.plotting.api.region.IRegion
darkCyan, darkMagenta, darkYellow -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis may not be implemented depending on the region.booleanThis may not be implemented depending on the region.voidsetCentreMovable(boolean isCentreMovable) This may not be implemented depending on the region.voidsetOuterMovable(boolean isOuterMovable) This may not be implemented depending on the region.Methods inherited from interface org.eclipse.dawnsci.plotting.api.region.IRegion
addMouseListener, addMouseMotionListener, addROIListener, fromServer, getAlpha, getCoordinateSystem, getLabel, getLineWidth, getName, getPlotType, getRegionColor, getRegionType, getROI, getUserObject, isActive, isFill, isMaskRegion, isMobile, isOutlineOnly, isShowLabel, isShowPosition, isTrackMouse, isUserRegion, isVisible, remove, removeMouseListener, removeMouseMotionListener, removeROIListener, repaint, setActive, setAlpha, setCoordinateSystem, setFill, setFromServer, setLabel, setLineWidth, setMaskRegion, setMobile, setName, setOutlineOnly, setPlotType, setRegionColor, setROI, setShowLabel, setShowPosition, setTrackMouse, setUserObject, setUserRegion, setVisible, snapToGrid, toBack, toFront
-
Method Details
-
isCentreMovable
boolean isCentreMovable()This may not be implemented depending on the region.- Returns:
- true if it is movable
-
setCentreMovable
void setCentreMovable(boolean isCentreMovable) This may not be implemented depending on the region. Set if the sector centre should be locked or not.- Parameters:
isCentreMovable-
-
isOuterMovable
boolean isOuterMovable()This may not be implemented depending on the region. For instance Ellipse implements this but Sector does not.- Returns:
- true if it is movable
-
setOuterMovable
void setOuterMovable(boolean isOuterMovable) This may not be implemented depending on the region. For instance Ellipse implements this but Sector does not. Set if the ellipse outer handles should be locked or not.- Parameters:
isOuterMovable-
-