org.jCharts.properties.util
Class ChartStroke
java.lang.Object
|
+--org.jCharts.properties.util.ChartItem
|
+--org.jCharts.properties.util.ChartStroke
- public class ChartStroke
- extends ChartItem
Immutable Class to simplify the use of Strokes in Charts
Fields inherited from class org.jCharts.properties.util.ChartItem |
|
Constructor Summary |
ChartStroke(java.awt.Stroke stroke,
java.awt.Paint paint)
|
Method Summary |
void |
draw(java.awt.Graphics2D graphics2D,
java.awt.Shape shape)
|
void |
fill(java.awt.Graphics2D graphics2D,
java.awt.Shape shape)
|
void |
setupGraphics2D(java.awt.Graphics2D graphics2D)
Sets the Paint and Stroke implementations on the Graphics2D Object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_STROKE
private static final java.awt.Stroke DEFAULT_STROKE
DEFAULT_STROKE_1_5
private static final java.awt.Stroke DEFAULT_STROKE_1_5
DEFAULT_AXIS
public static final ChartStroke DEFAULT_AXIS
DEFAULT_GRIDLINES
public static final ChartStroke DEFAULT_GRIDLINES
DEFAULT_TICKS
public static final ChartStroke DEFAULT_TICKS
DEFAULT_ZERO_LINE
public static final ChartStroke DEFAULT_ZERO_LINE
DEFAULT_BAR_OUTLINE
public static final ChartStroke DEFAULT_BAR_OUTLINE
DEFAULT_CHART_OUTLINE
public static final ChartStroke DEFAULT_CHART_OUTLINE
DEFAULT_LEGEND_OUTLINE
public static final ChartStroke DEFAULT_LEGEND_OUTLINE
stroke
private java.awt.Stroke stroke
ChartStroke
public ChartStroke(java.awt.Stroke stroke,
java.awt.Paint paint)
- Parameters:
stroke
- paint
-
setupGraphics2D
public void setupGraphics2D(java.awt.Graphics2D graphics2D)
- Sets the Paint and Stroke implementations on the Graphics2D Object
- Overrides:
setupGraphics2D
in class ChartItem
- Parameters:
graphics2D
-
draw
public void draw(java.awt.Graphics2D graphics2D,
java.awt.Shape shape)
- Parameters:
graphics2D
- shape
-
fill
public void fill(java.awt.Graphics2D graphics2D,
java.awt.Shape shape)
- Parameters:
graphics2D
- shape
-