org.jplot2d.element.impl
Class HStripAnnotationImpl
- java.lang.Object
-
- org.jplot2d.element.impl.ElementImpl
-
- org.jplot2d.element.impl.ComponentImpl
-
- org.jplot2d.element.impl.AnnotationImpl
-
- org.jplot2d.element.impl.HStripAnnotationImpl
-
- All Implemented Interfaces:
- Annotation, Element, HStripAnnotation, AnnotationEx, ComponentEx, ElementEx, HStripAnnotationEx, MovableComponent, PComponent, StripAnnotation
public class HStripAnnotationImpl extends AnnotationImpl implements HStripAnnotationEx
-
-
Constructor Summary
Constructors Constructor and Description HStripAnnotationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcopyFrom(ElementEx src)Copies all properties from given src to this element.voiddraw(java.awt.Graphics2D g)Draw this component only.java.awt.geom.Rectangle2DgetBounds()Returns the paper bounds relative to its location.java.awt.PaintgetFillPaint()Returns thePaintto be used to fill the annotation strip.java.lang.StringgetId()Returns the id string of this elementjava.awt.geom.Point2DgetLocation()Returns the location of this component.java.awt.geom.Rectangle2DgetSelectableBounds()Returns the selectable bounds relative to its location.java.awt.geom.Dimension2DgetSize()Returns the paper size of this component.RangegetValueRange()Returns the value range of this annotationvoidsetFillPaint(java.awt.Paint paint)Sets thePaintto be used to fill the annotation strip.voidsetLocation(double x, double y)Moves this component to a new location.voidsetValueRange(Range value)Sets the value range of this annotation-
Methods inherited from class org.jplot2d.element.impl.AnnotationImpl
getInvokeStepFormParent, getParent, setLocation, thisEffectiveColorChanged, thisEffectiveFontChanged
-
Methods inherited from class org.jplot2d.element.impl.ComponentImpl
addPropertyChangeListener, canContribute, copyStructure, getColor, getEffectiveColor, getEffectiveFont, getEffectiveFontName, getEffectiveFontSize, getEffectiveFontStyle, getFontName, getFontScale, getFontSize, getFontStyle, getMooringMap, getPaperTransform, getZOrder, isCacheable, isMovable, isRedrawNeeded, isSelectable, isVisible, parentEffectiveColorChanged, parentEffectiveFontChanged, removePropertyChangeListener, setCacheable, setColor, setFont, setFontName, setFontScale, setFontSize, setFontStyle, setMovable, setRedrawNeeded, setSelectable, setVisible, setZOrder
-
Methods inherited from class org.jplot2d.element.impl.ElementImpl
getEnvironment, getFullId, notify, setParent, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jplot2d.element.impl.AnnotationEx
getParent
-
Methods inherited from interface org.jplot2d.element.impl.ComponentEx
canContribute, copyStructure, getEffectiveColor, getEffectiveFontName, getEffectiveFontSize, getEffectiveFontStyle, getMooringMap, isMovable, isRedrawNeeded, parentEffectiveColorChanged, parentEffectiveFontChanged, setMovable, setRedrawNeeded, thisEffectiveColorChanged, thisEffectiveFontChanged
-
Methods inherited from interface org.jplot2d.element.impl.ElementEx
getFullId, getInvokeStepFormParent, notify, setParent
-
Methods inherited from interface org.jplot2d.element.Annotation
isMovable, setMovable
-
Methods inherited from interface org.jplot2d.element.MovableComponent
setLocation
-
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Description copied from interface:ElementReturns the id string of this element
-
getLocation
public java.awt.geom.Point2D getLocation()
Description copied from interface:PComponentReturns the location of this component.- Specified by:
getLocationin interfacePComponent- Returns:
- the base point in its parent's paper coordinate space
-
setLocation
public void setLocation(double x, double y)Description copied from interface:MovableComponentMoves this component to a new location.- Specified by:
setLocationin interfaceMovableComponent- Parameters:
x- the x-coordinate of the new locationy- the y-coordinate of the new location
-
getSize
public java.awt.geom.Dimension2D getSize()
Description copied from interface:PComponentReturns the paper size of this component.- Specified by:
getSizein interfacePComponent- Returns:
-
getBounds
public java.awt.geom.Rectangle2D getBounds()
Description copied from interface:PComponentReturns the paper bounds relative to its location. The units of bounds is pt (1/72 inch)- Specified by:
getBoundsin interfacePComponent- Overrides:
getBoundsin classComponentImpl- Returns:
- the paper bounds of this component.
-
getSelectableBounds
public java.awt.geom.Rectangle2D getSelectableBounds()
Description copied from interface:PComponentReturns the selectable bounds relative to its location. The selectable bound may be slightly larger than the bounds, for easy selection by mouse. The units of bounds is pt (1/72 inch)- Specified by:
getSelectableBoundsin interfacePComponent- Overrides:
getSelectableBoundsin classComponentImpl- Returns:
- the paper bounds of this component.
-
getValueRange
public Range getValueRange()
Description copied from interface:StripAnnotationReturns the value range of this annotation- Specified by:
getValueRangein interfaceStripAnnotation- Returns:
- the value range of this annotation
-
setValueRange
public void setValueRange(Range value)
Description copied from interface:StripAnnotationSets the value range of this annotation- Specified by:
setValueRangein interfaceStripAnnotation- Parameters:
value- the value range of this annotation
-
getFillPaint
public java.awt.Paint getFillPaint()
Description copied from interface:StripAnnotationReturns thePaintto be used to fill the annotation strip.- Specified by:
getFillPaintin interfaceStripAnnotation- Returns:
- the
Paint
-
setFillPaint
public void setFillPaint(java.awt.Paint paint)
Description copied from interface:StripAnnotationSets thePaintto be used to fill the annotation strip. The default paint is semi-transparent grey.- Specified by:
setFillPaintin interfaceStripAnnotation- Parameters:
paint- thePaintto be used to fill the annotation strip
-
draw
public void draw(java.awt.Graphics2D g)
Description copied from interface:ComponentExDraw this component only. All its children is not drawn.- Specified by:
drawin interfaceComponentEx- Parameters:
g- to the Graphics2D drawing. The transformation of this component is not applied.
-
copyFrom
public void copyFrom(ElementEx src)
Description copied from interface:ElementExCopies all properties from given src to this element. Notice properties of sub-elements are not copied over.- Specified by:
copyFromin interfaceElementEx- Overrides:
copyFromin classComponentImpl- Parameters:
src- the src
-
-
DMelt 3.0 © DataMelt by jWork.ORG