public class ChartGraphics extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
EVENT_HEIGHT |
protected static int |
EVENT_WIDTH |
Graphics2D |
graphics |
protected static int |
HALF_EVENT_HEIGHT |
protected static int |
HALF_EVENT_WIDTH |
| Constructor and Description |
|---|
ChartGraphics(Chart chart,
Graphics2D graph) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
drawEvent(int eventId,
int x,
int y) |
void |
drawString(String s,
int x,
int y,
int effect)
Draws multiline strings
|
void |
drawXLegendString(String text) |
void |
drawXLines(int[] lines,
String[] labels,
boolean fullLines) |
void |
drawYLegendString(String text) |
void |
drawYLines(int[] lines,
String[] labels,
boolean fullLines,
int skip) |
static int |
getStringHeight(String s,
FontMetrics metrics) |
protected static final int EVENT_HEIGHT
protected static final int EVENT_WIDTH
protected static final int HALF_EVENT_HEIGHT
protected static final int HALF_EVENT_WIDTH
public Graphics2D graphics
public ChartGraphics(Chart chart, Graphics2D graph)
public void dispose()
public void drawEvent(int eventId,
int x,
int y)
public void drawXLegendString(String text)
public void drawYLegendString(String text)
public void drawXLines(int[] lines,
String[] labels,
boolean fullLines)
public void drawYLines(int[] lines,
String[] labels,
boolean fullLines,
int skip)
public void drawString(String s, int x, int y, int effect)
s - String to draw.x - x coordinate.y - y coordinate.public static int getStringHeight(String s, FontMetrics metrics)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.