public class GraphFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.sql.Connection |
connection |
private double |
count |
private org.jfree.data.category.DefaultCategoryDataset |
dataset |
private java.sql.PreparedStatement |
preparedStatement |
private java.sql.ResultSet |
resultSet |
private java.lang.String |
tableName |
private double |
total |
Constructor and Description |
---|
GraphFactory(java.lang.String tableName) |
Modifier and Type | Method and Description |
---|---|
private void |
addValue(double value,
java.lang.Comparable rowKey,
java.lang.Comparable columnKey) |
GraphItem |
createGraphItem(java.lang.String chartTitle,
java.lang.String category,
CategoryType categoryType,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel) |
private double |
formatTime(java.sql.Time time) |
void |
updateGraphItem(GraphItem graphItem,
java.lang.String category,
CategoryType categoryType) |
private java.lang.String tableName
private org.jfree.data.category.DefaultCategoryDataset dataset
private double total
private double count
private java.sql.Connection connection
private java.sql.ResultSet resultSet
private java.sql.PreparedStatement preparedStatement
public GraphItem createGraphItem(java.lang.String chartTitle, java.lang.String category, CategoryType categoryType, java.lang.String xAxisLabel, java.lang.String yAxisLabel)
public void updateGraphItem(GraphItem graphItem, java.lang.String category, CategoryType categoryType)
private void addValue(double value, java.lang.Comparable rowKey, java.lang.Comparable columnKey)
private double formatTime(java.sql.Time time)