org.jplot2d.element
Interface Annotation
-
- All Superinterfaces:
- Element, MovableComponent, PComponent
- All Known Subinterfaces:
- AnnotationEx, CoordinateAnnotation, CoordinateAnnotationEx, HLineAnnotation, HLineAnnotationEx, HStripAnnotation, HStripAnnotationEx, LineAnnotation, PointAnnotation, PointAnnotationEx, RectangleAnnotation, RectangleAnnotationEx, StripAnnotation, SymbolAnnotation, SymbolAnnotationEx, VLineAnnotation, VLineAnnotationEx, VStripAnnotation, VStripAnnotationEx
- All Known Implementing Classes:
- AnnotationImpl, CoordinateAnnotationImpl, HLineAnnotationImpl, HStripAnnotationImpl, PointAnnotationImpl, RectangleAnnotationImpl, SymbolAnnotationImpl, VLineAnnotationImpl, VStripAnnotationImpl
public interface Annotation extends MovableComponent
A annotation can be added to layers to mark a point or a range of values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description LayergetParent()Gets the parent of this component.booleanisMovable()Returnstrueif the component is movable by mouse dragging.voidsetMovable(boolean movable)Set if the component is movable by mouse dragging.-
Methods inherited from interface org.jplot2d.element.MovableComponent
setLocation, setLocation
-
Methods inherited from interface org.jplot2d.element.PComponent
getBounds, getColor, getEffectiveFont, getFontName, getFontScale, getFontSize, getFontStyle, getLocation, getPaperTransform, getSelectableBounds, getSize, getZOrder, isCacheable, isSelectable, isVisible, setCacheable, setColor, setFont, setFontName, setFontScale, setFontSize, setFontStyle, setSelectable, setVisible, setZOrder
-
Methods inherited from interface org.jplot2d.element.Element
getEnvironment, getId
-
-
-
-
Method Detail
-
getParent
Layer getParent()
Description copied from interface:PComponentGets the parent of this component.- Specified by:
getParentin interfaceElement- Specified by:
getParentin interfacePComponent- Returns:
- the parent of this component
-
isMovable
boolean isMovable()
Description copied from interface:MovableComponentReturnstrueif the component is movable by mouse dragging. Only selectable component can be movable.- Specified by:
isMovablein interfaceMovableComponent- Returns:
trueif movable
-
setMovable
void setMovable(boolean movable)
Description copied from interface:MovableComponentSet if the component is movable by mouse dragging.- Specified by:
setMovablein interfaceMovableComponent- Parameters:
movable-trueif movable
-
-
DMelt 3.0 © DataMelt by jWork.ORG