wt.query.report
Class HtmlBarChartGenerator
java.lang.Object
wt.query.report.HtmlBarChartGenerator
- public class HtmlBarChartGenerator
- extends Object
Method Summary |
private static StringBuffer |
appendHexColor(Color a_color,
StringBuffer a_buffer)
|
private static int |
buildColumn(double a_yValue,
double a_yMin,
double a_yMax,
int a_width,
int a_height,
int a_spacing,
int a_leftMargin,
int a_rightMargin,
Color a_color,
NumberFormat a_formatter,
StringBuffer a_buffer)
|
private static int |
buildSpacing(int a_width,
StringBuffer a_buffer)
|
private static void |
buildXAxis(TableModel a_dataModel,
BarChartColumnInfo a_info,
int a_yAxisColumnSpan,
Locale a_locale,
Color a_backgroundColor,
StringBuffer a_buffer)
|
private static int |
buildYAxis(double a_yMin,
double a_yMax,
int a_width,
int a_height,
NumberFormat a_formatter,
Color a_backgroundColor,
StringBuffer a_buffer)
|
static String |
generate(TableModel a_dataModel,
BarChartColumnInfo a_info,
boolean a_buildXAxis,
Color a_xAxisBackgroundColor,
int a_yAxisWidth,
NumberFormat a_yAxisFormatter,
Color a_yAxisBackgroundColor,
String a_border,
int a_columnWidth,
int a_height,
Color a_tableBackgroundColor,
double a_yMin,
double a_yMax,
NumberFormat a_valueFormatter,
Locale a_locale)
|
static String |
getHexColor(Color a_color)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEGIN_TABLE
private static final String BEGIN_TABLE
- See Also:
- Constant Field Values
END_TABLE
private static final String END_TABLE
- See Also:
- Constant Field Values
BEGIN_ROW
private static final String BEGIN_ROW
- See Also:
- Constant Field Values
END_ROW
private static final String END_ROW
- See Also:
- Constant Field Values
BEGIN_COLUMN
private static final String BEGIN_COLUMN
- See Also:
- Constant Field Values
END_COLUMN
private static final String END_COLUMN
- See Also:
- Constant Field Values
BEGIN_BOLD
private static final String BEGIN_BOLD
- See Also:
- Constant Field Values
END_BOLD
private static final String END_BOLD
- See Also:
- Constant Field Values
BEGIN_BAR_COLUMN
private static final String BEGIN_BAR_COLUMN
- See Also:
- Constant Field Values
WIDTH
private static final String WIDTH
- See Also:
- Constant Field Values
HEIGHT
private static final String HEIGHT
- See Also:
- Constant Field Values
BACKGROUND_COLOR
private static final String BACKGROUND_COLOR
- See Also:
- Constant Field Values
VERTICAL_ALIGN
private static final String VERTICAL_ALIGN
- See Also:
- Constant Field Values
TOP
private static final String TOP
- See Also:
- Constant Field Values
CENTER
private static final String CENTER
- See Also:
- Constant Field Values
BOTTOM
private static final String BOTTOM
- See Also:
- Constant Field Values
OPEN_TABLE_NO_BORDER
private static final String OPEN_TABLE_NO_BORDER
- See Also:
- Constant Field Values
OPEN_TABLE_BORDER
private static final String OPEN_TABLE_BORDER
- See Also:
- Constant Field Values
OPEN_ROW
private static final String OPEN_ROW
- See Also:
- Constant Field Values
OPEN_COLUMN
private static final String OPEN_COLUMN
- See Also:
- Constant Field Values
OPEN_VALUE_COLUMN
private static final String OPEN_VALUE_COLUMN
- See Also:
- Constant Field Values
OPEN_XAXIS_COLUMN
private static final String OPEN_XAXIS_COLUMN
- See Also:
- Constant Field Values
OPEN_YAXIS_COLUMN
private static final String OPEN_YAXIS_COLUMN
- See Also:
- Constant Field Values
CLOSE
private static final String CLOSE
- See Also:
- Constant Field Values
HEX
private static final String HEX
- See Also:
- Constant Field Values
BLANK
private static final String BLANK
- See Also:
- Constant Field Values
SPACE
private static final String SPACE
- See Also:
- Constant Field Values
RGB_MASK
private static final int RGB_MASK
- See Also:
- Constant Field Values
COLUMN_HEIGHT_OFFSET
private static final int COLUMN_HEIGHT_OFFSET
- See Also:
- Constant Field Values
HtmlBarChartGenerator
public HtmlBarChartGenerator()
generate
public static String generate(TableModel a_dataModel,
BarChartColumnInfo a_info,
boolean a_buildXAxis,
Color a_xAxisBackgroundColor,
int a_yAxisWidth,
NumberFormat a_yAxisFormatter,
Color a_yAxisBackgroundColor,
String a_border,
int a_columnWidth,
int a_height,
Color a_tableBackgroundColor,
double a_yMin,
double a_yMax,
NumberFormat a_valueFormatter,
Locale a_locale)
throws WTException
- Throws:
WTException
getHexColor
public static String getHexColor(Color a_color)
buildXAxis
private static void buildXAxis(TableModel a_dataModel,
BarChartColumnInfo a_info,
int a_yAxisColumnSpan,
Locale a_locale,
Color a_backgroundColor,
StringBuffer a_buffer)
throws WTException
- Throws:
WTException
buildYAxis
private static int buildYAxis(double a_yMin,
double a_yMax,
int a_width,
int a_height,
NumberFormat a_formatter,
Color a_backgroundColor,
StringBuffer a_buffer)
buildColumn
private static int buildColumn(double a_yValue,
double a_yMin,
double a_yMax,
int a_width,
int a_height,
int a_spacing,
int a_leftMargin,
int a_rightMargin,
Color a_color,
NumberFormat a_formatter,
StringBuffer a_buffer)
buildSpacing
private static int buildSpacing(int a_width,
StringBuffer a_buffer)
appendHexColor
private static StringBuffer appendHexColor(Color a_color,
StringBuffer a_buffer)