Klasse BoxPlot.BoxWhiskerRenderer

java.lang.Object
de.erichseifert.gral.plots.points.AbstractPointRenderer
de.erichseifert.gral.plots.BoxPlot.BoxWhiskerRenderer
Alle implementierten Schnittstellen:
PointRenderer
Umschließende Klasse:
BoxPlot

public static class BoxPlot.BoxWhiskerRenderer extends AbstractPointRenderer
Class that renders a box and its whiskers in a box-and-whisker plot.
  • Konstruktordetails

    • BoxWhiskerRenderer

      public BoxWhiskerRenderer()
      Constructor that creates a new instance and initializes it with a plot as data provider.
  • Methodendetails

    • getPositionColumn

      public int getPositionColumn()
      Returns the index of the column which is used for the horizontal position of a box.
      Gibt zurück:
      Index of the column that is used for the horizontal position of a box.
    • setPositionColumn

      public void setPositionColumn(int columnIndex)
      Sets the index of the column which will be used for the horizontal position of a box.
      Parameter:
      columnIndex - Index of the column that is used for the horizontal position of a box.
    • getCenterBarColumn

      public int getCenterBarColumn()
      Returns the index of the column which is used for the center bar.
      Gibt zurück:
      Index of the column which is used for the center bar.
    • setCenterBarColumn

      public void setCenterBarColumn(int columnIndex)
      Sets the index of the column which will be used for the center bar.
      Parameter:
      columnIndex - Index of the column which will be used for the center bar.
    • getBottomBarColumn

      public int getBottomBarColumn()
      Returns the index of the column which is used for the bottom bar.
      Gibt zurück:
      Index of the column which is used for the bottom bar.
    • setBottomBarColumn

      public void setBottomBarColumn(int columnIndex)
      Sets the index of the column which will be used for the bottom bar.
      Parameter:
      columnIndex - Index of the column which will be used for the bottom bar.
    • getBoxBottomColumn

      public int getBoxBottomColumn()
      Returns the index of the column which is used for the bottom edge of the box.
      Gibt zurück:
      Index of the column which is used for the bottom edge of the box.
    • setColumnBoxBottom

      public void setColumnBoxBottom(int columnIndex)
      Sets the index of the column which will be used for the bottom edge of the box.
      Parameter:
      columnIndex - Index of the column which will be used for the bottom edge of the box.
    • getBoxTopColumn

      public int getBoxTopColumn()
      Returns the index of the column which is used for the top edge of the box.
      Gibt zurück:
      Index of the column which is used for the top edge of the box.
    • setBoxTopColumn

      public void setBoxTopColumn(int columnIndex)
      Sets the index of the column which will be used for the top edge of the box.
      Parameter:
      columnIndex - Index of the column which will be used for the top edge of the box.
    • getTopBarColumn

      public int getTopBarColumn()
      Returns the index of the column which is used for the top bar.
      Gibt zurück:
      Index of the column which is used for the top bar.
    • setTopBarColumn

      public void setTopBarColumn(int columnIndex)
      Sets the index of the column which will be used for the top bar.
      Parameter:
      columnIndex - Index of the column which will be used for the top bar.
    • getBoxWidth

      public double getBoxWidth()
      Returns the relative width of the box.
      Gibt zurück:
      Relative width of the box.
    • setBoxWidth

      public void setBoxWidth(double boxWidth)
      Sets the relative width of the box.
      Parameter:
      boxWidth - Relative width of the box.
    • getBoxBackground

      public ColorMapper getBoxBackground()
      Returns the mapping which is used to fill the background of a box.
      Gibt zurück:
      ColorMapper instance which is used to fill the background of a box.
    • setBoxBackground

      public void setBoxBackground(ColorMapper color)
      Sets the mapping which will be used to fill the background of a box.
      Parameter:
      color - ColorMapper instance which will be used to fill the background of a box.
    • setBoxBackground

      public void setBoxBackground(Paint color)
      Sets the paint which will be used to fill the background of a box.
      Parameter:
      color - Paint instance which will be used to fill the background of a box.
    • getBoxBorderColor

      public Paint getBoxBorderColor()
      Returns the paint which is used to fill the border of a box and the lines of bars.
      Gibt zurück:
      Paint which is used to fill the border of a box and the lines of bars.
    • setBoxBorderColor

      public void setBoxBorderColor(Paint color)
      Sets the paint which will be used to fill the border of a box and the lines of bars.
      Parameter:
      color - Paint which will be used to fill the border of a box and the lines of bars.
    • getBoxBorderStroke

      public Stroke getBoxBorderStroke()
      Returns the stroke which is used to paint the border of a box and the lines of the bars.
      Gibt zurück:
      Stroke instance which is used to paint the border of a box and the lines of the bars.
    • setBoxBorderStroke

      public void setBoxBorderStroke(Stroke stroke)
      Sets the stroke which will be used to paint the border of a box and the lines of the bars.
      Parameter:
      stroke - Stroke instance which will be used to paint the border of a box and the lines of the bars.
    • getWhiskerColor

      public Paint getWhiskerColor()
      Returns the paint which is used to fill the lines of the whiskers.
      Gibt zurück:
      Paint which is used to fill the lines of the whiskers.
    • setWhiskerColor

      public void setWhiskerColor(Paint color)
      Sets the paint which will be used to fill the lines of the whiskers.
      Parameter:
      color - Paint which will be used to fill the lines of the whiskers.
    • getWhiskerStroke

      public Stroke getWhiskerStroke()
      Returns the stroke which is used to paint the lines of the whiskers.
      Gibt zurück:
      Stroke instance which is used to paint the lines of the whiskers.
    • setWhiskerStroke

      public void setWhiskerStroke(Stroke stroke)
      Sets the stroke which will be used to paint the lines of the whiskers.
      Parameter:
      stroke - Stroke instance which will be used to paint the lines of the whiskers.
    • getBarWidth

      public double getBarWidth()
      Returns the relative width of the bottom and top bars.
      Gibt zurück:
      Relative width of the bottom and top bars.
    • setBarWidth

      public void setBarWidth(double width)
      Sets the relative width of the bottom and top bars.
      Parameter:
      width - Relative width of the bottom and top bars.
    • getCenterBarColor

      public Paint getCenterBarColor()
      Returns the paint which is used to fill the lines of the center bar.
      Gibt zurück:
      Paint which is used to fill the lines of the center bar.
    • setCenterBarColor

      public void setCenterBarColor(Paint color)
      Sets the paint which will be used to fill the lines of the center bar.
      Parameter:
      color - Paint which will be used to fill the lines of the center bar.
    • getCenterBarStroke

      public Stroke getCenterBarStroke()
      Returns the stroke which is used to paint the lines of the center bar.
      Gibt zurück:
      Stroke instance which is used to paint the lines of the center bar.
    • setCenterBarStroke

      public void setCenterBarStroke(Stroke stroke)
      Sets the stroke which will be used to paint the lines of the center bar.
      Parameter:
      stroke - Stroke instance which will be used to paint the lines of the center bar.
    • getPoint

      public Drawable getPoint(PointData data, Shape shape)
      Beschreibung aus Schnittstelle kopiert: PointRenderer
      Returns the graphical representation to be drawn for the specified data value.
      Parameter:
      data - Information on axes, renderers, and values.
      shape - Outline that describes the point's shape.
      Gibt zurück:
      Component that can be used to draw the point.
    • getPointShape

      public Shape getPointShape(PointData data)
      Returns a Shape instance that can be used for further calculations.
      Parameter:
      data - Information on axes, renderers, and values.
      Gibt zurück:
      Outline that describes the point's shape.
    • getValue

      public Drawable getValue(PointData data, Shape shape)
      Returns a graphical representation of the value label to be drawn for the specified data value.
      Parameter:
      data - Information on axes, renderers, and values.
      shape - Outline that describes the bounds for the value label.
      Gibt zurück:
      Component that can be used to draw the value label.