java.lang.Object
ch.stegmaier.java2tex.core.BaseOption<X>
ch.stegmaier.java2tex.core.OptionBuilder<PieOptions>
ch.stegmaier.java2tex.commands.registry.ctan.tikz.impl.PieOptions

public class PieOptions extends ch.stegmaier.java2tex.core.OptionBuilder<PieOptions>
options for the pie command
  • Constructor Summary

    Constructors
    Constructor
    Description
    PieOptions(ch.stegmaier.java2tex.core.GenericCommand parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Sets the value for sum to auto.
    The slices order direction can be set to clockwise by setting change direction, default is counterclockwise.
    variant chart - cloud
    The number also can be hide by hide number:
    The polar diagram is similar to a usual pie chart, except sectory are equal angles and differ rather in how far each sector extends from the center of the circle.
    radius(float radius)
    The size of chart can be set by radius, default is 3.
    rotate(float degree)
    The chart can be rotated by setting rotate (in degrees).
    variant chart - square
    sum(String sum)
    The value of sum indicates the sum of all data in the chart, it is 100 by default.
    text(PgfPie.PieOptionText pieOptionEnum)
    The value of text can be label (default), pin, inside or legend.
    text(String text)
    The value of text can be label (default), pin, inside or legend.

    Methods inherited from class ch.stegmaier.java2tex.core.OptionBuilder

    entry, entry, entry, entry, entry, optionList, toString

    Methods inherited from class ch.stegmaier.java2tex.core.BaseOption

    getThis

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PieOptions

      public PieOptions(ch.stegmaier.java2tex.core.GenericCommand parent)
  • Method Details

    • text

      public PieOptions text(PgfPie.PieOptionText pieOptionEnum)
      The value of text can be label (default), pin, inside or legend.
    • text

      public PieOptions text(String text)
      The value of text can be label (default), pin, inside or legend.
    • hideNumber

      public PieOptions hideNumber()
      The number also can be hide by hide number:
    • cloud

      public PieOptions cloud()
      variant chart - cloud
       \begin{tikzpicture}
         \\pie[cloud]{10/A, 20/B, 30/C, 40/D}
       \end{tikzpicture}
       

      cloud

    • square

      public PieOptions square()
      variant chart - square
       \begin{tikzpicture}
         \pie[square]{40/A, 30/B, 20/C, 10/D}
       \end{tikzpicture}
       

      square

    • polar

      public PieOptions polar()
      The polar diagram is similar to a usual pie chart, except sectory are equal angles and differ rather in how far each sector extends from the center of the circle.
       \begin{tikzpicture}
         \pie[polar]{10/A, 20/B, 30/C, 40/D}
       \end{tikzpicture}
       

      polar

    • sum

      public PieOptions sum(String sum)
      The value of sum indicates the sum of all data in the chart, it is 100 by default. It can be calculated automatically when auto is set. Then the angle of slices are determined by number value and sum.
    • autosum

      public PieOptions autosum()
      Sets the value for sum to auto.
    • rotate

      public PieOptions rotate(float degree)
      The chart can be rotated by setting rotate (in degrees).
    • radius

      public PieOptions radius(float radius)
      The size of chart can be set by radius, default is 3.
    • changeDirection

      public PieOptions changeDirection()
      The slices order direction can be set to clockwise by setting change direction, default is counterclockwise.