|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart.data.ChartDataSourceUtil
ChartDataSourceUtil hosts a collection of useful data source related methods.
Constructor Summary | |
ChartDataSourceUtil()
|
Method Summary | |
static String |
buildDataSourceString(com.klg.jclass.chart.ChartDataModel src)
Converts the provided data source into a string. |
static String |
buildDataSourceString(com.klg.jclass.chart.ChartDataModel src,
boolean doExpand)
Converts the provided data source into a string. |
static boolean |
checkPointLabels(String[] pointLabels)
Check if there are any non-empty point labels. |
protected static String |
doubleToString(double d,
double hole,
boolean doHoles)
Convert this double to a string, optionally taking into account the hole value. |
static String |
expandText(String s)
Expand text string to escape unprintable characters with character entities. |
static double[][] |
generateMultipleXSeries(double[][] y)
Generates multiple series of x data using the supplied y data. |
static double[][] |
generateSingleXSeries(int length)
Generates a single series of x data given the supplied array length. |
static int |
getHighCharacterBound()
Get the high character bound. |
static int |
getLowCharacterBound()
Get the low character bound. |
static String |
processText(String s)
Remove all html character entities from the string and replace with the actual unicode character. |
static void |
setCharacterBounds(int lower,
int higher)
Set the lower and upper character bounds as integers. |
static void |
writeDataSource(com.klg.jclass.chart.ChartDataModel src,
OutputStream os,
boolean doExpand)
Writes the provided data source to the given output stream. |
static void |
writeDataSource(com.klg.jclass.chart.ChartDataModel src,
OutputStreamWriter writer,
boolean doExpand)
Writes the provided data source using the given OutputStreamWriter. |
static void |
writeDataSource(com.klg.jclass.chart.ChartDataModel src,
String fileName,
boolean doExpand)
Writes the provided data source to a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChartDataSourceUtil()
Method Detail |
public static void setCharacterBounds(int lower, int higher)
lower
- The new lower boundhigher
- The new higher boundpublic static int getLowCharacterBound()
public static int getHighCharacterBound()
public static double[][] generateSingleXSeries(int length)
length
- The length of the x series to generate
public static double[][] generateMultipleXSeries(double[][] y)
y
- The y data
protected static String doubleToString(double d, double hole, boolean doHoles)
d
- The double to write outhole
- The hole valuedoHoles
- If true, write "hole" instead of the actual hole value
public static String buildDataSourceString(com.klg.jclass.chart.ChartDataModel src)
src
- The data source
public static String buildDataSourceString(com.klg.jclass.chart.ChartDataModel src, boolean doExpand)
src
- The data sourcedoExpand
- Replace characters outside of the character bounds range with
html character entities
setCharacterBounds(int, int)
public static boolean checkPointLabels(String[] pointLabels)
pointLabels
- The point label list to check
public static void writeDataSource(com.klg.jclass.chart.ChartDataModel src, String fileName, boolean doExpand) throws IOException
src
- The data sourcefileName
- The file name to write to.doExpand
- Replace characters outside of the character bounds range with
html character entities
IOException
setCharacterBounds(int, int)
public static void writeDataSource(com.klg.jclass.chart.ChartDataModel src, OutputStream os, boolean doExpand) throws IOException
src
- The data sourceos
- The output stream to write to.doExpand
- Replace characters outside of the character bounds range with
html character entities
IOException
setCharacterBounds(int, int)
public static void writeDataSource(com.klg.jclass.chart.ChartDataModel src, OutputStreamWriter writer, boolean doExpand) throws IOException
src
- The data sourcewriter
- The OutputStreamWriter with which to writedoExpand
- Replace characters outside of the character bounds range with
html character entities
IOException
setCharacterBounds(int, int)
public static String expandText(String s)
s
- The string to expand
public static String processText(String s)
s
- The input string
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |