org.jplot2d.element.impl
Class HLineAnnotationImpl
- java.lang.Object
-
- org.jplot2d.element.impl.ElementImpl
-
- org.jplot2d.element.impl.ComponentImpl
-
- org.jplot2d.element.impl.AnnotationImpl
-
- org.jplot2d.element.impl.HLineAnnotationImpl
-
- All Implemented Interfaces:
- Annotation, Element, HLineAnnotation, AnnotationEx, ComponentEx, ElementEx, HLineAnnotationEx, LineAnnotation, MovableComponent, PComponent
public class HLineAnnotationImpl extends AnnotationImpl implements HLineAnnotationEx
-
-
Constructor Summary
Constructors Constructor and Description HLineAnnotationImpl()
-
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.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.java.awt.BasicStrokegetStroke()Returns theBasicStroketo be used to draw the annotation line.doublegetValue()Returns the value of this annotationvoidsetLocation(double x, double y)Moves this component to a new location.voidsetStroke(java.awt.BasicStroke stroke)Sets theBasicStroketo be used to draw the annotation line.voidsetValue(double value)Sets the value 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, getBounds, 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:
-
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.
-
getValue
public double getValue()
Description copied from interface:LineAnnotationReturns the value of this annotation- Specified by:
getValuein interfaceLineAnnotation- Returns:
- the value of this annotation
-
setValue
public void setValue(double value)
Description copied from interface:LineAnnotationSets the value of this annotation- Specified by:
setValuein interfaceLineAnnotation- Parameters:
value- the value of this annotation
-
getStroke
public java.awt.BasicStroke getStroke()
Description copied from interface:LineAnnotationReturns theBasicStroketo be used to draw the annotation line.- Specified by:
getStrokein interfaceLineAnnotation- Returns:
- the
BasicStroke
-
setStroke
public void setStroke(java.awt.BasicStroke stroke)
Description copied from interface:LineAnnotationSets theBasicStroketo be used to draw the annotation line.- Specified by:
setStrokein interfaceLineAnnotation- Parameters:
stroke- theBasicStroketo be used to draw the annotation line
-
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