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
Class that renders a box and its whiskers in a box-and-whisker plot.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructor that creates a new instance and initializes it with a plot as data provider. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungdoubleReturns the relative width of the bottom and top bars.intReturns the index of the column which is used for the bottom bar.Returns the mapping which is used to fill the background of a box.Returns the paint which is used to fill the border of a box and the lines of bars.Returns the stroke which is used to paint the border of a box and the lines of the bars.intReturns the index of the column which is used for the bottom edge of the box.intReturns the index of the column which is used for the top edge of the box.doubleReturns the relative width of the box.Returns the paint which is used to fill the lines of the center bar.intReturns the index of the column which is used for the center bar.Returns the stroke which is used to paint the lines of the center bar.Returns the graphical representation to be drawn for the specified data value.getPointShape(PointData data) Returns aShapeinstance that can be used for further calculations.intReturns the index of the column which is used for the horizontal position of a box.intReturns the index of the column which is used for the top bar.Returns a graphical representation of the value label to be drawn for the specified data value.Returns the paint which is used to fill the lines of the whiskers.Returns the stroke which is used to paint the lines of the whiskers.voidsetBarWidth(double width) Sets the relative width of the bottom and top bars.voidsetBottomBarColumn(int columnIndex) Sets the index of the column which will be used for the bottom bar.voidsetBoxBackground(ColorMapper color) Sets the mapping which will be used to fill the background of a box.voidsetBoxBackground(Paint color) Sets the paint which will be used to fill the background of a box.voidsetBoxBorderColor(Paint color) Sets the paint which will be used to fill the border of a box and the lines of bars.voidsetBoxBorderStroke(Stroke stroke) Sets the stroke which will be used to paint the border of a box and the lines of the bars.voidsetBoxTopColumn(int columnIndex) Sets the index of the column which will be used for the top edge of the box.voidsetBoxWidth(double boxWidth) Sets the relative width of the box.voidsetCenterBarColor(Paint color) Sets the paint which will be used to fill the lines of the center bar.voidsetCenterBarColumn(int columnIndex) Sets the index of the column which will be used for the center bar.voidsetCenterBarStroke(Stroke stroke) Sets the stroke which will be used to paint the lines of the center bar.voidsetColumnBoxBottom(int columnIndex) Sets the index of the column which will be used for the bottom edge of the box.voidsetPositionColumn(int columnIndex) Sets the index of the column which will be used for the horizontal position of a box.voidsetTopBarColumn(int columnIndex) Sets the index of the column which will be used for the top bar.voidsetWhiskerColor(Paint color) Sets the paint which will be used to fill the lines of the whiskers.voidsetWhiskerStroke(Stroke stroke) Sets the stroke which will be used to paint the lines of the whiskers.Von Klasse geerbte Methoden AbstractPointRenderer
getColor, getErrorColor, getErrorColumnBottom, getErrorColumnTop, getErrorShape, getErrorStroke, getShape, getValueAlignmentX, getValueAlignmentY, getValueColor, getValueColumn, getValueDistance, getValueFont, getValueFormat, getValueLocation, getValueRotation, isErrorVisible, isValueVisible, setColor, setColor, setErrorColor, setErrorColor, setErrorColumnBottom, setErrorColumnTop, setErrorShape, setErrorStroke, setErrorVisible, setShape, setValueAlignmentX, setValueAlignmentY, setValueColor, setValueColor, setValueColumn, setValueDistance, setValueFont, setValueFormat, setValueLocation, setValueRotation, setValueVisible
-
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
Returns the mapping which is used to fill the background of a box.- Gibt zurück:
ColorMapperinstance which is used to fill the background of a box.
-
setBoxBackground
Sets the mapping which will be used to fill the background of a box.- Parameter:
color-ColorMapperinstance which will be used to fill the background of a box.
-
setBoxBackground
Sets the paint which will be used to fill the background of a box.- Parameter:
color-Paintinstance which will be used to fill the background of a box.
-
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
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
Returns the stroke which is used to paint the border of a box and the lines of the bars.- Gibt zurück:
Strokeinstance which is used to paint the border of a box and the lines of the bars.
-
setBoxBorderStroke
Sets the stroke which will be used to paint the border of a box and the lines of the bars.- Parameter:
stroke-Strokeinstance which will be used to paint the border of a box and the lines of the bars.
-
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
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
Returns the stroke which is used to paint the lines of the whiskers.- Gibt zurück:
Strokeinstance which is used to paint the lines of the whiskers.
-
setWhiskerStroke
Sets the stroke which will be used to paint the lines of the whiskers.- Parameter:
stroke-Strokeinstance 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
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
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
Returns the stroke which is used to paint the lines of the center bar.- Gibt zurück:
Strokeinstance which is used to paint the lines of the center bar.
-
setCenterBarStroke
Sets the stroke which will be used to paint the lines of the center bar.- Parameter:
stroke-Strokeinstance which will be used to paint the lines of the center bar.
-
getPoint
Beschreibung aus Schnittstelle kopiert:PointRendererReturns 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
-
getValue
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.
-