|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openi.segment.SegmentFactory
public class SegmentFactory
Generates customizable Lists of SegmentBins
| Method Summary | |
|---|---|
protected static java.util.List |
createBuckets(float dataMin,
float dataMax,
int numBuckets,
boolean round)
|
static java.util.List |
createSegments(java.sql.Connection connection,
java.lang.String targetTable,
java.lang.String targetColumn,
int numBuckets,
boolean round)
Constructs SQL based on input table, column, number of buckets executes sql, returns a collection of segment bins suitable for display/creating a chart |
static void |
streamSegmentChart(java.io.OutputStream out,
java.lang.String targetColumn,
java.util.List segments,
int width,
int height,
org.jfree.chart.plot.PlotOrientation plotOrientation,
ProjectContext ctx)
Does not do any database querying inside of this method, relies completely on the input List of segments to generate a JFreeChart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.List createSegments(java.sql.Connection connection,
java.lang.String targetTable,
java.lang.String targetColumn,
int numBuckets,
boolean round)
throws java.sql.SQLException
connection - targetTable - targetColumn - numBuckets - round -
java.sql.SQLException - - TODO: wrap in a SegmentException?
public static void streamSegmentChart(java.io.OutputStream out,
java.lang.String targetColumn,
java.util.List segments,
int width,
int height,
org.jfree.chart.plot.PlotOrientation plotOrientation,
ProjectContext ctx)
throws java.sql.SQLException,
java.io.IOException
out - targetColumn - segments - width - height - plotOrientation -
java.sql.SQLException
java.io.IOException
protected static java.util.List createBuckets(float dataMin,
float dataMax,
int numBuckets,
boolean round)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||