java.lang.Object
ch.stegmaier.java2tex.core.BaseOption<X>
ch.stegmaier.java2tex.core.OptionBuilder<PieOptions>
ch.stegmaier.java2tex.commands.registry.tikz.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
    variant chart - cloud
    end()
     
    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
    variant chart - square
    sum(String sum)
    the value of sum indicates the sum of all data in the chart, it is 100 by default.

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

    entry, entry, entry, 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

    • end

      public Pie end()
      Overrides:
      end in class ch.stegmaier.java2tex.core.OptionBuilder<PieOptions>
    • cloud

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

      cloud

    • square

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

      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
      \\pie[polar]{10/A, 20/B, 30/C, 40/D}

      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