Documentation of 'org.jplot2d.element.impl.HLineAnnotationImpl' Java class
HLineAnnotationImpl
org.jplot2d.element.impl

Class HLineAnnotationImpl

    • Constructor Detail

      • HLineAnnotationImpl

        public HLineAnnotationImpl()
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from interface: Element
        Returns the id string of this element
        Specified by:
        getId in interface Element
        Returns:
        the id string
      • getLocation

        public java.awt.geom.Point2D getLocation()
        Description copied from interface: PComponent
        Returns the location of this component.
        Specified by:
        getLocation in interface PComponent
        Returns:
        the base point in its parent's paper coordinate space
      • setLocation

        public void setLocation(double x,
                                double y)
        Description copied from interface: MovableComponent
        Moves this component to a new location.
        Specified by:
        setLocation in interface MovableComponent
        Parameters:
        x - the x-coordinate of the new location
        y - the y-coordinate of the new location
      • getSize

        public java.awt.geom.Dimension2D getSize()
        Description copied from interface: PComponent
        Returns the paper size of this component.
        Specified by:
        getSize in interface PComponent
        Returns:
      • getSelectableBounds

        public java.awt.geom.Rectangle2D getSelectableBounds()
        Description copied from interface: PComponent
        Returns 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:
        getSelectableBounds in interface PComponent
        Overrides:
        getSelectableBounds in class ComponentImpl
        Returns:
        the paper bounds of this component.
      • getValue

        public double getValue()
        Description copied from interface: LineAnnotation
        Returns the value of this annotation
        Specified by:
        getValue in interface LineAnnotation
        Returns:
        the value of this annotation
      • setValue

        public void setValue(double value)
        Description copied from interface: LineAnnotation
        Sets the value of this annotation
        Specified by:
        setValue in interface LineAnnotation
        Parameters:
        value - the value of this annotation
      • getStroke

        public java.awt.BasicStroke getStroke()
        Description copied from interface: LineAnnotation
        Returns the BasicStroke to be used to draw the annotation line.
        Specified by:
        getStroke in interface LineAnnotation
        Returns:
        the BasicStroke
      • setStroke

        public void setStroke(java.awt.BasicStroke stroke)
        Description copied from interface: LineAnnotation
        Sets the BasicStroke to be used to draw the annotation line.
        Specified by:
        setStroke in interface LineAnnotation
        Parameters:
        stroke - the BasicStroke to be used to draw the annotation line
      • draw

        public void draw(java.awt.Graphics2D g)
        Description copied from interface: ComponentEx
        Draw this component only. All its children is not drawn.
        Specified by:
        draw in interface ComponentEx
        Parameters:
        g - to the Graphics2D drawing. The transformation of this component is not applied.
      • copyFrom

        public void copyFrom(ElementEx src)
        Description copied from interface: ElementEx
        Copies all properties from given src to this element. Notice properties of sub-elements are not copied over.
        Specified by:
        copyFrom in interface ElementEx
        Overrides:
        copyFrom in class ComponentImpl
        Parameters:
        src - the src

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.