Klasse BarPlot

Alle implementierten Schnittstellen:
ChartPlot, Serializable

public class BarPlot extends StandardPlot
A general class for plotting data of groups of values. This plot can use data from any class that implements the BaseDataset interface.
Seit:
8.0
Siehe auch:
  • Felddetails

    • DEFAULT_STYLE

      public static final BarStyle DEFAULT_STYLE
      Default chart style with this plot.
    • ITEM_LABEL_ALIGNMENT_AUTO

      public static final int ITEM_LABEL_ALIGNMENT_AUTO
      A auto label alignment, is default.
      Siehe auch:
    • ITEM_LABEL_ALIGNMENT_VERTICAL

      public static final int ITEM_LABEL_ALIGNMENT_VERTICAL
      A vertical label alignment.
      Siehe auch:
    • ITEM_LABEL_ALIGNMENT_HORIZONTAL

      public static final int ITEM_LABEL_ALIGNMENT_HORIZONTAL
      A horizontal label alignment.
      Siehe auch:
    • DEFAULT_BAR_MARGIN_PERCENT

      public static final double DEFAULT_BAR_MARGIN_PERCENT
      The default bar margin percentage.
      Siehe auch:
    • DEFAULT_BAR_WIDTH

      public static final double DEFAULT_BAR_WIDTH
      The default bar width.
      Siehe auch:
  • Konstruktordetails

    • BarPlot

      public BarPlot()
      Creates a bar plot with default properties.
      Seit:
      8.0
    • BarPlot

      public BarPlot(BarStyle style)
      Creates a bar plot with defined chart style. Initializes all properties with default values.
      Parameter:
      style - the chart style (null not permitted)
      Seit:
      8.0
      Siehe auch:
  • Methodendetails

    • setCategoryAxis

      public void setCategoryAxis(GroupAxis categoryAxis)
      Sets the axis for categories of this plot. The category axis shows the values of the first group field.
      Parameter:
      categoryAxis - the category axis (null not permitted)
      Seit:
      8.0
      Siehe auch:
    • setDataAxis

      public void setDataAxis(ContinuousNumberAxis dataAxis)
      Sets the axis for data of this plot. The data axis shows the summarized values of the data fields.
      Parameter:
      dataAxis - the data axis (null not permitted)
      Seit:
      8.0
      Siehe auch:
    • getStyle

      public ChartStyle getStyle()
      Returns the style of this chart, ie. the general category this plot belongs to.
      Angegeben von:
      getStyle in Klasse StandardPlot
      Gibt zurück:
      the style
      Siehe auch:
    • setStyle

      public void setStyle(BarStyle style)
      Sets a chart style of this bar plot.
      Parameter:
      style - the bar style (null not permitted)
      Seit:
      8.0
      Siehe auch:
    • getItemLabelAlignment

      public int getItemLabelAlignment()
      Returns the label alignment displayed on the items of this plot.
      Gibt zurück:
      the alignment.
      Seit:
      8.0
      Siehe auch:
    • setItemLabelAlignment

      public void setItemLabelAlignment(int itemLabelAlignment)
      Sets the item label alignment. An item label is a label with name and value on each chart item. Default alignment is ITEM_LABEL_ALIGNMENT_AUTO.
      Parameter:
      itemLabelAlignment - the item label alignment
      Löst aus:
      IllegalArgumentException - by unknown alignment.
      Seit:
      8.0
      Siehe auch:
    • isShowTotal

      public boolean isShowTotal()
      Returns the flag that controls whether or not the totals will be showed for each bar.
      Gibt zurück:
      the flag.
      Seit:
      8.0
      Siehe auch:
    • setShowTotal

      public void setShowTotal(boolean showTotal)
      Sets the flag that controls whether or not the totals will be showed for each bar.
      Note: this property works only for stacked chart with showing absolute values.
      Parameter:
      showTotal - the flag
      Seit:
      8.0
      Siehe auch:
    • getBarMarginPercent

      public double getBarMarginPercent()
      Returns the bar margin in percent where 0.10 is 10 percent.
      Gibt zurück:
      the margin
      Seit:
      14.1
      Siehe auch:
    • setBarMarginPercent

      public void setBarMarginPercent(double barMarginPercent)
      Sets the bar margin (space between the bars). The value is expressed as a percentage of the available plot width.
      Parameter:
      barMarginPercent - the margin (where 0.10 is ten percent)
      Seit:
      14.1
    • getBarWidth

      public double getBarWidth()
      Returns the maximum bar width in percent where 0.10 is 10 percent.
      Gibt zurück:
      the bar width
      Seit:
      11.0
      Siehe auch:
    • setBarWidth

      public void setBarWidth(double barWidth)
      Sets the maximum bar width, which is specified as a percentage of the available space for all bars,
      Parameter:
      barWidth - the width (where 0.10 is ten percent)
      Seit:
      11.0
      Siehe auch:
    • getSubProperties

      protected StringBuilder getSubProperties(int depth)
      Returns the serialized simple properties of subclasses.
      Setzt außer Kraft:
      getSubProperties in Klasse StandardPlot
      Parameter:
      depth - the depth of XML indent
      Gibt zurück:
      the properties.
    • readProperties

      public void readProperties(Element element, Chart2 chart)
      Reads the chart properties from the DOMParser Element.
      Angegeben von:
      readProperties in Schnittstelle ChartPlot
      Setzt außer Kraft:
      readProperties in Klasse StandardPlot
      Parameter:
      element - the DOMParser Element
      chart - the chart