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

Class PieExtra

    • Constructor Detail

      • PieExtra

        public PieExtra()
    • Method Detail

      • getMode

        public PieExtra.MODE getMode()
        Sets the mode. YData values will be interpreted as QUANTITIES (default), PERCENTAGES, DEGREES or RADIANS.
        Returns:
        the mode
      • setMode

        public void setMode(PieExtra.MODE mode)
        Sets the mode. YData values will be interpreted as QUANTITIES (default), PERCENTAGES, DEGREES or RADIANS.
        Parameters:
        mode - the mode to set
      • setMode

        public void setMode(java.lang.String s)
        Sets the mode. YData values will be interpreted as QUANTITIES (default), PERCENTAGES, DEGREES or RADIANS.
        Parameters:
        s - "QUANTITIES", "PERCENTAGES", "DEGREES" or "RADIANS".
      • getLabels

        public java.util.ArrayList<java.lang.String> getLabels()
        Returns the custom labels for the pie segments as an ArrayList of Strings.
        Returns:
        the labels
      • setLabels

        public void setLabels(java.util.ArrayList<java.lang.String> labels)
        Sets the custom labels for the pie segments as an ArrayList of Strings.
        Parameters:
        labels - the labels to set
      • setLabels

        public void setLabels(java.lang.String[] labels)
        Sets the custom labels for the pie segments as a String[].
        Parameters:
        labels -
      • getLabelOrientation

        public PieExtra.LABELORIENTAION getLabelOrientation()
        Returns the orientation of the labels. This value is presently ignored and labels are always drawn horizontally.
        Returns:
        the labelOrientation
      • setLabelOrientation

        public void setLabelOrientation(PieExtra.LABELORIENTAION labelOrientation)
        Sets the orientation of the labels. This value is presently ignored and labels are always drawn horizontally.
        Parameters:
        labelOrientation - the labelOrientation to set
      • setLabelOrientation

        public void setLabelOrientation(java.lang.String s)
        Sets the orientation of the labels. This value is presently ignored and labels are always drawn horizontally.
        Parameters:
        s -
      • getOuterRadius

        public double getOuterRadius()
        Returns the radius of the pie chart where a value of 1.0 fills the available graph space.
        Returns:
        the outerRadius
      • setOuterRadius

        public void setOuterRadius(double outerRadius)
        Sets the radius of the pie chart where a value of 1.0 fills the available graph space
        Parameters:
        outerRadius - the outerRadius to set
      • getInnerRadius

        public double getInnerRadius()
        Returns the radius of inner circle for a "wheel" plot where a value of 1.0 fills the available graph space
        Returns:
        the innerRadius
      • setInnerRadius

        public void setInnerRadius(double innerRadius)
        Sets the radius of inner circle for a "wheel" plot where a value of 1.0 fills the available graph space
        Parameters:
        innerRadius - the innerRadius to set
      • getLabelRadius

        public double getLabelRadius()
        Returns the radius of the circle where labels will be drawn. a radius of 1.0 fills the available graph space
        Returns:
        the labelRadius
      • setLabelRadius

        public void setLabelRadius(double labelRadius)
        Sets the radius of the circle where labels will be drawn. a radius of 1.0 fills the available graph space
        Parameters:
        labelRadius - the labelRadius to set
      • getExplode

        public boolean[] getExplode()
        Returns the array of booleans used to "explode" segments. A value of true offsets the segment from the main circle.
        Returns:
        the explode
      • setExplode

        public void setExplode(boolean[] explode)
        Sets the array of booleans used to "explode" segments. A value of true offsets the segment from the main circle.
        Parameters:
        explode - the explode to set
      • getExplodeExtent

        public double getExplodeExtent()
        Returns the size of the offset for exploded segments relative to the radius of the unit circle.
        Returns:
        the explodeExtent
      • setExplodeExtent

        public void setExplodeExtent(double explodeExtent)
        Sets the size of the offset for exploded segments relative to the radius of the unit circle.
        Parameters:
        explodeExtent - the explodeExtent to set
      • getLabelFormat

        public java.text.NumberFormat getLabelFormat()
        Returns the formatter used to format labels (if custom Strings have not been set).
        Returns:
        the labelFormat
      • setLabelFormat

        public void setLabelFormat(java.text.NumberFormat labelFormat)
        Sets the formatter used to format labels (if custom Strings have not been set).
        Parameters:
        labelFormat - the labelFormat to set
      • isLabeled

        public boolean isLabeled()
        Returns:
        the labeled
      • setLabeled

        public void setLabeled(boolean showLabels)
        Parameters:
        labeled - the labeled to set

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.