de.erichseifert.gral.plots.points
Class AbstractPointRenderer
- java.lang.Object
-
- de.erichseifert.gral.plots.points.AbstractPointRenderer
-
- All Implemented Interfaces:
- PointRenderer, java.io.Serializable
- Direct Known Subclasses:
- BoxPlot.BoxWhiskerRenderer, DefaultPointRenderer2D, PiePlot.PieSliceRenderer
public abstract class AbstractPointRenderer extends java.lang.Object implements PointRenderer, java.io.Serializable
Abstract class implementing functions for the administration of settings.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description AbstractPointRenderer()Creates a new AbstractPointRenderer object with default shape and color.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ColorMappergetColor()Returns a mapping that is used to fill the point shapes.ColorMappergetErrorColor()Returns the mapping that is used to fill the error indicators.intgetErrorColumnBottom()Returns the index of the column that contains the lower error value.intgetErrorColumnTop()Returns the index of the column that contains the upper error value.java.awt.ShapegetErrorShape()Returns the shape which is used to draw the error indicators.java.awt.StrokegetErrorStroke()Returns the stroke which is used to draw the error indicators.java.awt.ShapegetShape()Returns the shape which is used to draw the point.doublegetValueAlignmentX()Returns the relative horizontal position of the value.doublegetValueAlignmentY()Returns the relative vertical position of the value.ColorMappergetValueColor()Returns the mapping that is used to fill the value.intgetValueColumn()Returns the index of the column that contains the displayed values.doublegetValueDistance()Returns the current distance of values to the point.java.awt.FontgetValueFont()Returns the font that is used to render the value.java.text.FormatgetValueFormat()Returns the format that is used to render the displayed data values.LocationgetValueLocation()Returns the current positioning of the data value relative to the data point.doublegetValueRotation()Returns the current rotation angle of the value.booleanisErrorVisible()Returns whether the error value is displayed.booleanisValueVisible()Returns whether the data value of a point is displayed or not.voidsetColor(ColorMapper color)Sets the mapping that will be used to fill the point shapes.voidsetColor(java.awt.Paint color)Sets the paint that will be used to fill the point shapes.voidsetErrorColor(ColorMapper color)Sets the mapping that will be used to fill the error indicators.voidsetErrorColor(java.awt.Paint color)Sets the paint that will be used to fill the error indicators.voidsetErrorColumnBottom(int columnIndex)Sets the index of the column that contains the lower error value.voidsetErrorColumnTop(int columnIndex)Sets the index of the column that contains the upper error value.voidsetErrorShape(java.awt.Shape shape)Sets the shape which will be used to draw the error indicators.voidsetErrorStroke(java.awt.Stroke stroke)Sets the stroke which will be used to draw the error indicators.voidsetErrorVisible(boolean errorVisible)Sets whether the error value will be displayed.voidsetShape(java.awt.Shape shape)Sets the shape which will be used to draw the point.voidsetValueAlignmentX(double alignmentX)Sets the relative horizontal position of the value.voidsetValueAlignmentY(double alignmentY)Sets the relative vertical position of the value.voidsetValueColor(ColorMapper color)Sets the mapping that will be used to fill the value.voidsetValueColor(java.awt.Paint color)Sets the paint that will be used to fill the value.voidsetValueColumn(int columnIndex)Sets the index of the column that contains the displayed values.voidsetValueDistance(double distance)Sets the distance of values to the point.voidsetValueFont(java.awt.Font font)Sets the font that will be used to render the value.voidsetValueFormat(java.text.Format format)Sets the format that will be used to render the displayed data values.voidsetValueLocation(Location location)Sets the positioning of the data value relative to the data point.voidsetValueRotation(double angle)Sets the rotation angle of the value.voidsetValueVisible(boolean valueVisible)Returns whether the data value of a point will be displayed or not.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.erichseifert.gral.plots.points.PointRenderer
getPoint, getPointShape, getValue
-
-
-
-
Constructor Detail
-
AbstractPointRenderer
public AbstractPointRenderer()
Creates a new AbstractPointRenderer object with default shape and color.
-
-
Method Detail
-
getShape
public java.awt.Shape getShape()
Description copied from interface:PointRendererReturns the shape which is used to draw the point.- Specified by:
getShapein interfacePointRenderer- Returns:
Shapeinstance for the point.
-
setShape
public void setShape(java.awt.Shape shape)
Description copied from interface:PointRendererSets the shape which will be used to draw the point.- Specified by:
setShapein interfacePointRenderer- Parameters:
shape-Shapeinstance for the point.
-
getColor
public ColorMapper getColor()
Description copied from interface:PointRendererReturns a mapping that is used to fill the point shapes.- Specified by:
getColorin interfacePointRenderer- Returns:
ColorMapperthat is used to fill the point shapes.
-
setColor
public void setColor(ColorMapper color)
Description copied from interface:PointRendererSets the mapping that will be used to fill the point shapes.- Specified by:
setColorin interfacePointRenderer- Parameters:
color-ColorMapperinstance to fill the point shapes.
-
setColor
public void setColor(java.awt.Paint color)
Description copied from interface:PointRendererSets the paint that will be used to fill the point shapes.- Specified by:
setColorin interfacePointRenderer- Parameters:
color-Paintinstance to fill the point shapes.
-
isValueVisible
public boolean isValueVisible()
Description copied from interface:PointRendererReturns whether the data value of a point is displayed or not.- Specified by:
isValueVisiblein interfacePointRenderer- Returns:
truewhen the value is displayed, otherwisefalse.
-
setValueVisible
public void setValueVisible(boolean valueVisible)
Description copied from interface:PointRendererReturns whether the data value of a point will be displayed or not.- Specified by:
setValueVisiblein interfacePointRenderer- Parameters:
valueVisible-trueif the value should be displayed, otherwisefalse.
-
getValueColumn
public int getValueColumn()
Description copied from interface:PointRendererReturns the index of the column that contains the displayed values.- Specified by:
getValueColumnin interfacePointRenderer- Returns:
- Index of the column that contains the displayed values.
-
setValueColumn
public void setValueColumn(int columnIndex)
Description copied from interface:PointRendererSets the index of the column that contains the displayed values.- Specified by:
setValueColumnin interfacePointRenderer- Parameters:
columnIndex- Index of the column that contains the displayed values.
-
getValueFormat
public java.text.Format getValueFormat()
Description copied from interface:PointRendererReturns the format that is used to render the displayed data values.- Specified by:
getValueFormatin interfacePointRenderer- Returns:
Formatinstance that is used to render the displayed data values.
-
setValueFormat
public void setValueFormat(java.text.Format format)
Description copied from interface:PointRendererSets the format that will be used to render the displayed data values.- Specified by:
setValueFormatin interfacePointRenderer- Parameters:
format-Formatinstance that will be used to render the displayed data values.
-
getValueLocation
public Location getValueLocation()
Description copied from interface:PointRendererReturns the current positioning of the data value relative to the data point.- Specified by:
getValueLocationin interfacePointRenderer- Returns:
- Current positioning of the data value relative to the data point.
-
setValueLocation
public void setValueLocation(Location location)
Description copied from interface:PointRendererSets the positioning of the data value relative to the data point.- Specified by:
setValueLocationin interfacePointRenderer- Parameters:
location- Positioning of the data value relative to the data point.
-
getValueAlignmentX
public double getValueAlignmentX()
Description copied from interface:PointRendererReturns the relative horizontal position of the value. The position will be between 0 and 1.- Specified by:
getValueAlignmentXin interfacePointRenderer- Returns:
- Relative horizontal position of the value.
-
setValueAlignmentX
public void setValueAlignmentX(double alignmentX)
Description copied from interface:PointRendererSets the relative horizontal position of the value. The position can be specified between 0 and 1.- Specified by:
setValueAlignmentXin interfacePointRenderer- Parameters:
alignmentX- Relative horizontal position of the value.
-
getValueAlignmentY
public double getValueAlignmentY()
Description copied from interface:PointRendererReturns the relative vertical position of the value. The position will be between 0 and 1.- Specified by:
getValueAlignmentYin interfacePointRenderer- Returns:
- Relative vertical position of the value.
-
setValueAlignmentY
public void setValueAlignmentY(double alignmentY)
Description copied from interface:PointRendererSets the relative vertical position of the value. The position can be specified between 0 and 1.- Specified by:
setValueAlignmentYin interfacePointRenderer- Parameters:
alignmentY- Relative vertical position of the value.
-
getValueRotation
public double getValueRotation()
Description copied from interface:PointRendererReturns the current rotation angle of the value.- Specified by:
getValueRotationin interfacePointRenderer- Returns:
- Rotation angle in degrees.
-
setValueRotation
public void setValueRotation(double angle)
Description copied from interface:PointRendererSets the rotation angle of the value.- Specified by:
setValueRotationin interfacePointRenderer- Parameters:
angle- Rotation angle in degrees.
-
getValueDistance
public double getValueDistance()
Description copied from interface:PointRendererReturns the current distance of values to the point. The distance is specified relative to the font height.- Specified by:
getValueDistancein interfacePointRenderer- Returns:
- Distance relative to the font height.
-
setValueDistance
public void setValueDistance(double distance)
Description copied from interface:PointRendererSets the distance of values to the point. The distance is specified relative to the font height.- Specified by:
setValueDistancein interfacePointRenderer- Parameters:
distance- Distance relative to the font height.
-
getValueColor
public ColorMapper getValueColor()
Description copied from interface:PointRendererReturns the mapping that is used to fill the value.- Specified by:
getValueColorin interfacePointRenderer- Returns:
ColorMapperinstance that is used to fill the value.
-
setValueColor
public void setValueColor(ColorMapper color)
Description copied from interface:PointRendererSets the mapping that will be used to fill the value.- Specified by:
setValueColorin interfacePointRenderer- Parameters:
color-ColorMapperinstance that will be used to fill the value.
-
setValueColor
public void setValueColor(java.awt.Paint color)
Description copied from interface:PointRendererSets the paint that will be used to fill the value.- Specified by:
setValueColorin interfacePointRenderer- Parameters:
color-Paintinstance that will be used to fill the value.
-
getValueFont
public java.awt.Font getValueFont()
Description copied from interface:PointRendererReturns the font that is used to render the value.- Specified by:
getValueFontin interfacePointRenderer- Returns:
- Font that is used to render the value.
-
setValueFont
public void setValueFont(java.awt.Font font)
Description copied from interface:PointRendererSets the font that will be used to render the value.- Specified by:
setValueFontin interfacePointRenderer- Parameters:
font- Font that will be used to render the value.
-
isErrorVisible
public boolean isErrorVisible()
Description copied from interface:PointRendererReturns whether the error value is displayed.- Specified by:
isErrorVisiblein interfacePointRenderer- Returns:
trueif the error value is displayed, otherwisefalse.
-
setErrorVisible
public void setErrorVisible(boolean errorVisible)
Description copied from interface:PointRendererSets whether the error value will be displayed.- Specified by:
setErrorVisiblein interfacePointRenderer- Parameters:
errorVisible-trueif the error value should be displayed, otherwisefalse.
-
getErrorColumnTop
public int getErrorColumnTop()
Description copied from interface:PointRendererReturns the index of the column that contains the upper error value.- Specified by:
getErrorColumnTopin interfacePointRenderer- Returns:
- Index of the column that contains the upper error value.
-
setErrorColumnTop
public void setErrorColumnTop(int columnIndex)
Description copied from interface:PointRendererSets the index of the column that contains the upper error value.- Specified by:
setErrorColumnTopin interfacePointRenderer- Parameters:
columnIndex- Index of the column that contains the upper error value.
-
getErrorColumnBottom
public int getErrorColumnBottom()
Description copied from interface:PointRendererReturns the index of the column that contains the lower error value.- Specified by:
getErrorColumnBottomin interfacePointRenderer- Returns:
- Index of the column that contains the lower error value.
-
setErrorColumnBottom
public void setErrorColumnBottom(int columnIndex)
Description copied from interface:PointRendererSets the index of the column that contains the lower error value.- Specified by:
setErrorColumnBottomin interfacePointRenderer- Parameters:
columnIndex- Index of the column that contains the lower error value.
-
getErrorColor
public ColorMapper getErrorColor()
Description copied from interface:PointRendererReturns the mapping that is used to fill the error indicators.- Specified by:
getErrorColorin interfacePointRenderer- Returns:
ColorMapperinstance that is used to fill the error indicators.
-
setErrorColor
public void setErrorColor(ColorMapper color)
Description copied from interface:PointRendererSets the mapping that will be used to fill the error indicators.- Specified by:
setErrorColorin interfacePointRenderer- Parameters:
color-ColorMapperinstance that will be used to fill the error indicators.
-
setErrorColor
public void setErrorColor(java.awt.Paint color)
Description copied from interface:PointRendererSets the paint that will be used to fill the error indicators.- Specified by:
setErrorColorin interfacePointRenderer- Parameters:
color-Paintinstance that will be used to fill the error indicators.
-
getErrorShape
public java.awt.Shape getErrorShape()
Description copied from interface:PointRendererReturns the shape which is used to draw the error indicators.- Specified by:
getErrorShapein interfacePointRenderer- Returns:
Shapeinstance of the error indicators.
-
setErrorShape
public void setErrorShape(java.awt.Shape shape)
Description copied from interface:PointRendererSets the shape which will be used to draw the error indicators.- Specified by:
setErrorShapein interfacePointRenderer- Parameters:
shape-Shapeinstance for the error indicators.
-
getErrorStroke
public java.awt.Stroke getErrorStroke()
Description copied from interface:PointRendererReturns the stroke which is used to draw the error indicators.- Specified by:
getErrorStrokein interfacePointRenderer- Returns:
- Current stroke of the error indicators.
-
setErrorStroke
public void setErrorStroke(java.awt.Stroke stroke)
Description copied from interface:PointRendererSets the stroke which will be used to draw the error indicators.- Specified by:
setErrorStrokein interfacePointRenderer- Parameters:
stroke- Stroke of the error indicators.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG