org.jplot2d.element.impl
Class PointAnnotationImpl
- java.lang.Object
-
- org.jplot2d.element.impl.ElementImpl
-
- org.jplot2d.element.impl.ComponentImpl
-
- org.jplot2d.element.impl.AnnotationImpl
-
- org.jplot2d.element.impl.PointAnnotationImpl
-
- All Implemented Interfaces:
- Annotation, Element, AnnotationEx, ComponentEx, ElementEx, PointAnnotationEx, MovableComponent, PComponent, PointAnnotation
- Direct Known Subclasses:
- SymbolAnnotationImpl
public abstract class PointAnnotationImpl extends AnnotationImpl implements PointAnnotationEx
-
-
Constructor Summary
Constructors Constructor and Description PointAnnotationImpl()
-
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.java.lang.StringgetId()Returns the id string of this elementjava.awt.geom.Point2DgetLocation()Returns the location of this component.java.awt.geom.Dimension2DgetSize()Returns the paper size of this component.java.awt.geom.Point2DgetValuePoint()returns the x,y values location in layer's world coordinate system.voidsetLocation(double locX, double locY)Moves this component to a new location.voidsetValuePoint(double x, double y)Sets the x,y values location in layer's world coordinate systemvoidsetValuePoint(java.awt.geom.Point2D point)Sets the x,y values location in layer's world coordinate system-
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, getSelectableBounds, 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.Annotation
isMovable, setMovable
-
Methods inherited from interface org.jplot2d.element.MovableComponent
setLocation
-
Methods inherited from interface org.jplot2d.element.PComponent
getBounds, getColor, getEffectiveFont, getFontName, getFontScale, getFontSize, getFontStyle, getPaperTransform, getSelectableBounds, getZOrder, isCacheable, isSelectable, isVisible, setCacheable, setColor, setFont, setFontName, setFontScale, setFontSize, setFontStyle, setSelectable, setVisible, setZOrder
-
Methods inherited from interface org.jplot2d.element.Element
getEnvironment
-
Methods inherited from interface org.jplot2d.element.impl.ComponentEx
canContribute, copyStructure, draw, 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
-
-
-
-
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 locX, double locY)Description copied from interface:MovableComponentMoves this component to a new location.- Specified by:
setLocationin interfaceMovableComponent- Parameters:
locX- the x-coordinate of the new locationlocY- 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:
-
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
-
getValuePoint
public java.awt.geom.Point2D getValuePoint()
Description copied from interface:PointAnnotationreturns the x,y values location in layer's world coordinate system.- Specified by:
getValuePointin interfacePointAnnotation- Returns:
- the x,y values location
-
setValuePoint
public void setValuePoint(java.awt.geom.Point2D point)
Description copied from interface:PointAnnotationSets the x,y values location in layer's world coordinate system- Specified by:
setValuePointin interfacePointAnnotation- Parameters:
point- the x,y values location
-
setValuePoint
public void setValuePoint(double x, double y)Description copied from interface:PointAnnotationSets the x,y values location in layer's world coordinate system- Specified by:
setValuePointin interfacePointAnnotation- Parameters:
x- the x-values of the new locationy- the y-values of the new location
-
-
DMelt 3.0 © DataMelt by jWork.ORG