|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetcharts.pro.common.NFBaseClass
netcharts.pro.common.NFVector
netcharts.pro.common.NFBaseSet
netcharts.pro.common.NFSet
netcharts.pro.common.rectangular.NFDataSet
netcharts.pro.charts.time.NFTimeSet
public class NFTimeSet
An NFTimeSet describes a single set time data along with its appearance characteristics. A simple example of this object's usage is shown here:
NFTimechart tc = new NFBarchart();
NFTimeSet timeSet = new NFTimeSet();
Calendar start = Calendar.getInstance();
Calendar stop = Calendar.getInstance();
for (int j=0; j <5; j++){
int val = (int)(Math.random()*100);
stop.add(Calendar.HOUR, val);
timeSet.addElement(start.getTime(), stop.getTime(), val+"");
// for next loop
start.add(Calendar.HOUR, val+1);
stop.add(Calendar.HOUR, 1);
}
ts.setLegendName("Time Set "+(i+1));
tc.addTimeSet(timeSet);
| Field Summary | |
|---|---|
java.text.SimpleDateFormat |
dateFormat
Deprecated. |
| Constructor Summary | |
|---|---|
NFTimeSet()
Constructs a default time set |
|
| Method Summary | |
|---|---|
void |
addElement(java.util.Date startTime,
java.util.Date stopTime,
java.awt.Color fillColor,
NFLabel label)
Adds a time element to the set. |
void |
addElement(java.util.Date startTime,
java.util.Date stopTime,
java.lang.String text)
Adds a time element to the set. |
java.lang.Object |
clone()
Does a deep copy of this timeset object |
java.lang.String |
getCDL()
Generate CDL parameters representing this time set |
java.lang.String |
getCDLAppearance()
Generate CDL parameters representing the time set |
NFColorTable |
getColorTable()
Gets the colorTable for the bars (time segments) in this set. |
NFRegion |
getDefaultRegion()
Set the default background element for time periods. |
java.lang.String |
getLegendName()
Returns the legend name |
boolean |
getModifiedAppearance()
Returns if the appearance of this timeset has changed. |
void |
setCDL(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
void |
setCDLAppearance(java.lang.String s)
Configures this object from a CDL parameter representation. |
void |
setColorTable(NFColorTable colorTable)
Sets the individual color for each bar (time segment) in this set. |
void |
setDefaultRegion(NFRegion defaultRegion)
Set the default background element for time periods. |
void |
setLegendName(java.lang.String legendName)
Set the legend name of the set |
java.lang.String |
toString()
Returns a new String object representing this time set. |
| Methods inherited from class netcharts.pro.common.rectangular.NFDataSet |
|---|
setXAxis, setYAxis |
| Methods inherited from class netcharts.pro.common.NFSet |
|---|
getAxisMap, setAxisMap |
| Methods inherited from class netcharts.pro.common.NFBaseSet |
|---|
addActiveLabel, getActiveLabels, getSetName, setActiveLabels, setSetName |
| Methods inherited from class netcharts.pro.common.NFVector |
|---|
addElement, addElement, elementAt, elementAt, getCDL, getCDL, getCDLHasTuples, getCDLKeyValues, getCDLKeyValuesHasPoints, getMaxDimensions, getQuoteStrings, getSize, isEmptyStringAsNull, loadDataModel, loadDataModel, loadDataModel, removeElementAt, reset, setCDL, setCDLHasTuples, setCDLNullString, setElementAt, setEmptyStringAsNull, setQuoteStrings, setSize, size, skipNulls, toArray |
| Methods inherited from class netcharts.pro.common.NFBaseClass |
|---|
getModified, getUserObject, setModified, setUserObject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.text.SimpleDateFormat dateFormat
| Constructor Detail |
|---|
public NFTimeSet()
| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class NFSetjava.lang.CloneNotSupportedExceptionpublic void setDefaultRegion(NFRegion defaultRegion)
defaultRegion - Background style.public NFRegion getDefaultRegion()
public void setLegendName(java.lang.String legendName)
legendName - Name of the set to use.public java.lang.String getLegendName()
public void addElement(java.util.Date startTime,
java.util.Date stopTime,
java.lang.String text)
startTime - Time where the element will start.stopTime - Time where the element will end.text - The text to be shown on the element.
public void addElement(java.util.Date startTime,
java.util.Date stopTime,
java.awt.Color fillColor,
NFLabel label)
startTime - Time where the element will start.stopTime - Time where the element will end.fillColor - Color of element.label - The text and text style to shown on the element.public java.lang.String getCDLAppearance()
("legendName", defaultFillColor, defaultType, defaultBorderWidth, "defaultImageURL")public void setCDLAppearance(java.lang.String s)
s - CDL in the form: ("legendName", defaultFillColor, defaultType, defaultBorderWidth, "defaultImageURL")public void setCDL(java.lang.String cdl)
setCDL in interface NFCDLGeneratorcdl - CDL in the form: (startTime, stopTime, fillColor, "text", textColor, font, fontSize, angle)public java.lang.String getCDL()
getCDL in interface NFCDLGeneratorgetCDL in class NFVector(startTime, stopTime, fillColor, "text", textColor, font, fontSize, angle)/code>public java.lang.String toString()
toString in interface NFCDLGeneratortoString in class NFVectorpublic boolean getModifiedAppearance()
public NFColorTable getColorTable()
public void setColorTable(NFColorTable colorTable)
colorTable - the colors to use for the bars (time segments) in the set
|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2018 |
Last Modified: Jan 7, 2018 |