public class ChartPlotter extends RasterPlotter
RasterPlotter.DrawMode, RasterPlotter.FilterMode
Modifier and Type | Field and Description |
---|---|
private int |
bottomborder |
private java.lang.Long[] |
colnames |
private java.lang.Long[] |
colscale |
static int |
DIMENSION_ANOT0 |
static int |
DIMENSION_ANOT1 |
static int |
DIMENSION_ANOT2 |
static int |
DIMENSION_ANOT3 |
static int |
DIMENSION_BOTTOM |
static int |
DIMENSION_LEFT |
static int |
DIMENSION_RIGHT |
static int |
DIMENSION_TOP |
private int |
leftborder |
private int[] |
offsets |
private int[] |
pixels |
private int |
rightborder |
private int[] |
scales |
private java.lang.String[] |
tablenames |
private int |
topborder |
Constructor and Description |
---|
ChartPlotter(int width,
int height,
java.lang.Long backgroundColor,
java.lang.Long foregroundColor,
java.lang.Long lightColor,
int leftborder,
int rightborder,
int topborder,
int bottomborder,
java.lang.String name,
java.lang.String subline) |
Modifier and Type | Method and Description |
---|---|
void |
chartDot(int dimension_x,
int dimension_y,
float coord_x,
int coord_y,
int dotsize,
java.lang.String anot,
int anotAngle) |
void |
chartLine(int dimension_x,
int dimension_y,
float coord_x1,
int coord_y1,
float coord_x2,
int coord_y2) |
void |
declareDimension(int dimensionType,
int scale,
int pixelperscale,
int offset,
java.lang.Long colorNaming,
java.lang.Long colorScale,
java.lang.String name)
assign a metric to a graph.
|
private void |
drawHorizontalScale(boolean top,
int scale,
int pixelperscale,
int offset,
java.lang.Long colorNaming,
java.lang.Long colorScale,
java.lang.String name)
draw a horizontal scale border
|
private void |
drawVerticalScale(boolean left,
int scale,
int pixelperscale,
int offset,
java.lang.Long colorNaming,
java.lang.Long colorScale,
java.lang.String name)
draw the vertical scale of the graph
|
static void |
main(java.lang.String[] args) |
antialiasing, arc, arc, arcArc, arcArc, arcConnect, arcDot, arcLine, blur, clear, convertToIndexed, darkColor, darkColor, demoPaint, dot, exportImage, exportPng, getHeight, getImage, getPixel, getPixel, getWidth, insertBitmap, insertBitmap, insertBitmap, insertBitmap, insertBitmap, insertBitmap, invert, line, line, lineArrow, lineDot, plot, plot, pngEncode, save, setColor, setDrawMode, setPixel, show, toIndexed
public static final int DIMENSION_RIGHT
public static final int DIMENSION_TOP
public static final int DIMENSION_LEFT
public static final int DIMENSION_BOTTOM
public static final int DIMENSION_ANOT0
public static final int DIMENSION_ANOT1
public static final int DIMENSION_ANOT2
public static final int DIMENSION_ANOT3
private final int leftborder
private final int rightborder
private final int topborder
private final int bottomborder
private final int[] scales
private final int[] pixels
private final int[] offsets
private final java.lang.Long[] colnames
private final java.lang.Long[] colscale
private final java.lang.String[] tablenames
public ChartPlotter(int width, int height, java.lang.Long backgroundColor, java.lang.Long foregroundColor, java.lang.Long lightColor, int leftborder, int rightborder, int topborder, int bottomborder, java.lang.String name, java.lang.String subline)
public void declareDimension(int dimensionType, int scale, int pixelperscale, int offset, java.lang.Long colorNaming, java.lang.Long colorScale, java.lang.String name)
dimensionType
- scale
- is the measure (the number) to be printed on the border per pixelscalepixelperscale
- is the number of pixel points per scaleoffset
- is an offset on the 'scale' numbercolorNaming
- the colour of the legend for the scalecolorScale
- the colour of the line drawing for the vertical scalename
- printed on the vertical barpublic void chartDot(int dimension_x, int dimension_y, float coord_x, int coord_y, int dotsize, java.lang.String anot, int anotAngle)
public void chartLine(int dimension_x, int dimension_y, float coord_x1, int coord_y1, float coord_x2, int coord_y2)
private void drawHorizontalScale(boolean top, int scale, int pixelperscale, int offset, java.lang.Long colorNaming, java.lang.Long colorScale, java.lang.String name)
top
- - if true, this the top-horizontal scale, otherwise it is at the bottomscale
- is the measure (the number) to be printed on the vertical border per pixelscalepixelperscale
- is the number of vertical pixel points per scaleoffset
- is an offset on the 'scale' numbercolorNaming
- the colour of the legend for the scalecolorScale
- the colour of the line drawing for the vertical scalename
- printed on the vertical barprivate void drawVerticalScale(boolean left, int scale, int pixelperscale, int offset, java.lang.Long colorNaming, java.lang.Long colorScale, java.lang.String name)
left
- if true this is the vertical bar on the left, otherwise it is the one on the rightscale
- is the measure (the number) to be printed on the vertical border per pixelscalepixelperscale
- is the number of vertical pixel points per scaleoffset
- is an offset on the 'scale' numbercolorNaming
- the colour of the legend for the scalecolorScale
- the colour of the line drawing for the vertical scalename
- printed on the vertical barpublic static void main(java.lang.String[] args)