public class QuadrantPlot
extends java.lang.Object
| Constructor and Description |
|---|
QuadrantPlot()
Default constructor - automatically defined a width and height of
10 cm * 10 cm
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPlotData(double x,
double y,
java.lang.String text,
double size,
java.lang.String color)
Output text in the plot area.
|
void |
addPlotData(double x,
double y,
java.lang.String text,
double size,
java.lang.String color,
java.lang.String id) |
void |
addQuadrantInfo(int x,
int y,
java.lang.String color,
java.lang.String id)
Add the info for one quadrant.
|
void |
clearDrawAreaData()
Internally resets the data to a cleared status.
|
long |
computeOutputWidth(int height)
Calculate the width for the height, so that the quadrant output is quadratic.
|
protected void |
createSVGChart(java.lang.StringBuffer chartData) |
long |
getCi()
Internal usage only.
|
java.lang.String |
getSvg()
Return the SVG string of the draw area.
|
void |
printFrameAround(boolean printFrame)
Print a frame araound the plot or not.
|
void |
rotateXAxisScaleText(double degrees,
double height)
Rotate the x axis scale textes.
|
void |
setBackgroundColor(java.lang.String color)
Set the background color of the hole plot area.
|
void |
setLeftYAxisDistance(double width)
Additional space at the left side of the plot.
|
void |
setQuadrantplotprop(java.lang.String value)
Internally used.
|
void |
setScaleLineColor(java.lang.String color)
Set the color of the scale lines.
|
void |
setSelectedID(java.lang.String selectedID) |
void |
setSelectionColor(java.lang.String selectionColor)
When using
setSelectedID(String) then the area of the corresponding
id will be marked by drawing a border with a certain color. |
void |
setSelectionStrokeWidth(int selectionStrokeWidth)
When using
setSelectedID(String) then the area of the corresponding
id will be marked by drawing a border with a certain color. |
void |
setSelId(java.lang.String value)
Internally used.
|
void |
setSVGOutputWidth(int height)
Set the height for the SVG output.
|
void |
setXAxis(java.lang.String[] outputXAxis)
Set the quadrant text for the x axis.
|
void |
setXAxis(java.lang.String[] outputXAxis,
double[] size,
java.lang.String[] color)
Set the text for the x axis with the color and the font size.
|
void |
setXAxisDescription(java.lang.String description,
java.lang.String color,
double fontSize,
double height)
Sets the description for the horizontal axis.
|
void |
setYAxis(java.lang.String[] outputYAxis)
Set the quadrant text for the y axis.
|
void |
setYAxis(java.lang.String[] outputYAxis,
double[] size,
java.lang.String[] color)
Set the text for the y axis with the color and the font size.
|
void |
setYAxisDescription(java.lang.String description,
java.lang.String color,
double fontSize,
double width)
Sets the description for the vertical axis.
|
public QuadrantPlot()
public void clearDrawAreaData()
public void setXAxisDescription(java.lang.String description,
java.lang.String color,
double fontSize,
double height)
description - Text for the output under the chart, e. g. "Year 2000".color - Color for the text. Either #RRGGBB (e.g. #FF0000 for red) or valid HTML color
name ("red").fontSize - The relative font size of the description, from 8 to 24. The default value is 12.height - The gap under the x axis for the description. For fontSize 12, the height should be 200.public void setXAxis(java.lang.String[] outputXAxis)
outputXAxis - All text for the x axis.public void setXAxis(java.lang.String[] outputXAxis,
double[] size,
java.lang.String[] color)
outputXAxis - All text for the x axis.size - The size for each text.color - The color for each text.public void setYAxisDescription(java.lang.String description,
java.lang.String color,
double fontSize,
double width)
description - Text for the output beside the chart, e. g. "budget".color - Color for the text. Either #RRGGBB (e.g. #FF0000 for red) or valid HTML color
name ("red").fontSize - The relative font size of the description, from 8 to 24. The default value is 12.width - The gap on the left side of the x axis for the description. For fontSize 12, the width should be 200.public void setYAxis(java.lang.String[] outputYAxis)
outputYAxis - All text for the y axis.public void setYAxis(java.lang.String[] outputYAxis,
double[] size,
java.lang.String[] color)
outputYAxis - All text for the y axis.size - The size for each text.color - The color for each text.public void addQuadrantInfo(int x,
int y,
java.lang.String color,
java.lang.String id)
x - X axis index form 0 to the size of the x axis quadrant count minus 1.y - Y axis index form 0 to the size of the y axis quadrant count minus 1.color - Background color of the quadrant.id - The id for the reactOnclick method.public void addPlotData(double x,
double y,
java.lang.String text,
double size,
java.lang.String color)
x - Quadrant and location at the x axis.y - Quadrant and location in the y axis.text - Output text.size - Text size.color - Text color.public void addPlotData(double x,
double y,
java.lang.String text,
double size,
java.lang.String color,
java.lang.String id)
public void rotateXAxisScaleText(double degrees,
double height)
degrees - Rotation of the text between -90 and +90 degrees.height - Additinal place for the rotated x axis texts between the plot and the x axis description.public void setLeftYAxisDistance(double width)
public void printFrameAround(boolean printFrame)
public void setScaleLineColor(java.lang.String color)
public void setBackgroundColor(java.lang.String color)
public void setSelectedID(java.lang.String selectedID)
public void setSelectionColor(java.lang.String selectionColor)
setSelectedID(String) then the area of the corresponding
id will be marked by drawing a border with a certain color. This selection
color can be defined here.public void setSelectionStrokeWidth(int selectionStrokeWidth)
setSelectedID(String) then the area of the corresponding
id will be marked by drawing a border with a certain color. This width
of this border can be defined here.public final long getCi()
public void setQuadrantplotprop(java.lang.String value)
public void setSelId(java.lang.String value)
public java.lang.String getSvg()
public long computeOutputWidth(int height)
height - The height of the output.public void setSVGOutputWidth(int height)
height - The height for the SVG output.protected void createSVGChart(java.lang.StringBuffer chartData)
Copyright © CaptainCasa Gmbh. All Rights Reserved.