java.lang.Object
org.rrd4j.graph.PlotElement
org.rrd4j.graph.SourcedPlotElement
org.rrd4j.graph.Area
- Direct Known Subclasses:
ConstantArea
Represents an area plot element in RRD graphs. An area is filled with the specified color and extends from the x-axis to the data values. Areas are typically used to show cumulative data or to highlight regions below data lines.
Field Summary
Fields inherited from class SourcedPlotElement
parent, srcName, valuesModifier and TypeFieldDescription(package private) final SourcedPlotElementThe parent element, or null.(package private) final StringThe source name.(package private) double[]The values.Fields inherited from class PlotElement
colorConstructor Summary
ConstructorsConstructorDescriptionArea(String srcName, Paint color, SourcedPlotElement parent) Create a new Area plot element.Method Summary
Methods inherited from class SourcedPlotElement
assignValues, getMaxValue, getMinValue, getParentColor, getValues, stackValuesModifier and TypeMethodDescription(package private) voidassignValues(DataProcessor dproc) Assign values from the data processor.(package private) doubleGet the maximum value.(package private) doubleGet the minimum value.(package private) PaintGet the parent's color.(package private) double[]Get the values.(package private) double[]stackValues(DataProcessor dproc) Stack values on top of parent values.
Constructor Details
Area
Area(String srcName, Paint color, SourcedPlotElement parent) Create a new Area plot element.- Parameters:
srcName- the source namecolor- the fill colorparent- the parent plot element