Documentation of 'kcl.waterloo.graphics.plots2D.GJFill' Java class
GJFill
kcl.waterloo.graphics.plots2D

Class GJFill

  • All Implemented Interfaces:
    GJFillableInterface<java.awt.Shape,java.awt.Paint>


    public class GJFill
    extends java.lang.Object
    implements GJFillableInterface<java.awt.Shape,java.awt.Paint>
    GJFill class used to set or modify painted area fill for a plot.
    • Constructor Detail

      • GJFill

        public GJFill()
        Null constructor. Need for serialization/de-serialization. Do not use.
      • GJFill

        public GJFill(GJPlotInterface p)
        Constructs an instance and associates it with a plot.
        Parameters:
        p - a GJPlotInterface
      • GJFill

        public GJFill(GJPlotInterface p,
                      double ref)
        Constructs a fully usable instance with default VERTICAL fill.
        Parameters:
        p - the associated plot
        ref - the reference level for HORIZONTAL & VERTICAL fills
      • GJFill

        public GJFill(GJPlotInterface p,
                      double ref,
                      GJFill.ORIENTATION or)
        Constructs a usable instance.
        Parameters:
        p - the associated ploat
        ref - the reference level for HORIZONTAL & VERTICAL fills
        or - the orientation: HORIZONTAL, VERTICAL or ARBITRARY
    • Method Detail

      • getFillable

        public java.awt.Shape getFillable()
        Gets the fillable area for HORIZONTAL & VERTICAL fills
        Specified by:
        getFillable in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
        Returns:
        an Area instance
      • getAreaPaint

        public java.awt.Paint getAreaPaint()
        Returns the Paint instance to be used for filling.
        Specified by:
        getAreaPaint in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
        Returns:
        a Paint instance
      • setAreaPaint

        public void setAreaPaint(java.awt.Paint paint)
        Sets the Paint instance.
        Specified by:
        setAreaPaint in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
        Parameters:
        paint - a Paint instance
      • getParentPlot

        public GJPlotInterface getParentPlot()
        Returns:
        the parentPlot
      • setParentPlot

        public void setParentPlot(GJPlotInterface parentPlot)
        Parameters:
        parentPlot - the parentPlot to set
      • getReference

        public double getReference()
        Returns:
        the reference
      • setReference

        public void setReference(double reference)
        Parameters:
        reference - the reference to set
      • setOrientation

        public void setOrientation(GJFill.ORIENTATION orientation)
        Parameters:
        orientation - the orientation to set
      • getArbitraryArea

        public java.awt.geom.Area getArbitraryArea()
        Returns the arbitraryArea in graph units.
        Returns:
        the arbitraryArea
      • setArbitraryArea

        public void setArbitraryArea(java.awt.geom.Area arbitraryArea)
        Sets the arbitraryArea in graph units.
        Parameters:
        arbitraryArea - the arbitraryArea to set
      • getSegments

        public final java.util.ArrayList<GJPathSegmentInfo> getSegments()
        Returns an ArrayList for use in XML serialization.
        Returns:
        an ArrayList
      • setSegments

        public final void setSegments(java.util.ArrayList<GJPathSegmentInfo> arr)
        Reconstructs an arbitraryArea on XML de-serialization using an ArrayList as input.
        Parameters:
        arr - the ArrayList
      • getMode

        public GJFill.MODE getMode()
        Gets the mode used when orientation is ARBITRARY. Possible values are SET, ADD, SUBTRACT, INTERSECT, XOR.
        Returns:
        the mode
      • setMode

        public void setMode(GJFill.MODE mode)
        Sets the mode used when orientation is ARBITRARY. Possible values are SET, ADD, SUBTRACT, INTERSECT, XOR.
        Parameters:
        mode - the mode to set
      • getPixelArea

        public java.awt.geom.Area getPixelArea()
        Returns the aritraryArea scaled and translated to pixels according to the current axes limits of the parent graph.
        Returns:
        a pixelArea
      • getFillComposite

        public java.awt.AlphaComposite getFillComposite()
        Specified by:
        getFillComposite in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
        Returns:
        the composite
      • setFillComposite

        public void setFillComposite(java.awt.AlphaComposite composite)
        Specified by:
        setFillComposite in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
        Parameters:
        composite - the composite to set

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.