Class StripedPaint


  • public class StripedPaint
    extends Object
    Manages the painting of "stripes" on the walls of an AxesGraph.
    Since:
    2.4.6
    • Constructor Detail

      • StripedPaint

        public StripedPaint()
        Create a new StripedPaint
    • Method Detail

      • setFillPaint

        public void setFillPaint​(Paint[] paint)
        Set the colors to stripe the wall. The first color will be paint[0], then paint[1] and so on, with the pattern repeating if there are more stripes than paints. An empty array or a value of null means the walls will not be painted - only lines in the linecolor will be drawn
        Parameters:
        paint - the array of Paints to paint the wall with
      • setBoxed

        public void setBoxed​(boolean boxed)
        When lines are being painted, set whether those lines should form a "box" around the wall. This is the default
        See Also:
        setLineColor(java.awt.Color)
      • setLineColor

        public void setLineColor​(Color color)
        Set the color of the lines to be drawn between stripes.
        Parameters:
        color - the color
      • setLineAxes

        public void setLineAxes​(boolean primary,
                                boolean alternate)
        When lines are being painted, set which axes they should be painted on. The default is both axes
        Parameters:
        primary - whether to paint lines in the linecolor on the primary axis
        alternate - whether to paint lines in the linecolor on the alternate axis
        Since:
        2.4.7
      • setDash

        public void setDash​(double[] dash)
        Set the dash pattern to use when painting the stripes. A zero-length or null array means the lines will not be dashed. Note this implies unboxed
        Parameters:
        dash - the dash array
        See Also:
        Style.setLineDash(double[])
      • setLineThickness

        public void setLineThickness​(double thickness)
        Set the thickness of lines to be drawn
        Parameters:
        thickness - the thickness.
        See Also:
        Style.setLineThickness(double)
      • setAlternateAxis

        public void setAlternateAxis​(int altaxis)
        For back walls, set the secondary axis against which lines perpendicular to the stripes are drawn.
        Parameters:
        altaxis - one of Axis.TOP, Axis.RIGHT, Axis.BOTTOM, Axis.LEFT or -1 to not draw any perpendicular stripes.