Class PaintAttribute
java.lang.Object
org.moeaframework.analysis.plot.style.PaintAttribute
- All Implemented Interfaces:
PlotAttribute
,StyleAttribute
Styles the paint / color of a plotted series.
-
Constructor Summary
ConstructorsConstructorDescriptionPaintAttribute
(Paint paint) Constructs a new paint style attribute.PaintAttribute
(Paint paint, Paint outlinePaint, Paint fillPaint) Constructs a new paint style attribute. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.jfree.chart.plot.Plot plot, int dataset, int series) Applies the style to a specific dataset and series.static PaintAttribute
Returns a custom paint style attribute.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.moeaframework.analysis.plot.style.StyleAttribute
apply
-
Constructor Details
-
PaintAttribute
Constructs a new paint style attribute.- Parameters:
paint
- the paint
-
PaintAttribute
Constructs a new paint style attribute.- Parameters:
paint
- the paintoutlinePaint
- the outline paintfillPaint
- the fill paint
-
-
Method Details
-
apply
public void apply(org.jfree.chart.plot.Plot plot, int dataset, int series) Description copied from interface:StyleAttribute
Applies the style to a specific dataset and series.- Specified by:
apply
in interfaceStyleAttribute
- Parameters:
plot
- the plotdataset
- the index of the datasetseries
- the index of the series
-
of
Returns a custom paint style attribute.- Parameters:
paint
- the paint- Returns:
- the resulting style attribute
-