|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFGraph
netcharts.pro.common.zoomable.NFZoomableChart
netcharts.pro.common.rectangular.NFDataChart
netcharts.pro.charts.time.NFTimechart
public class NFTimechart
Represents a time chart. Provides the ability to configure the chart via object manipulation or directly from CDL.
Field Summary | |
---|---|
static int |
TASK_ANIMATION_STYLE_FADE
Task animation style fade |
static int |
TASK_ANIMATION_STYLE_NONE
No task animation style |
static int |
TASK_ANIMATION_STYLE_SCALE
Task animation style scale |
Fields inherited from class netcharts.pro.common.rectangular.NFDataChart |
---|
GRID_ANIMATION_STYLE_FADE, GRID_ANIMATION_STYLE_NONE |
Fields inherited from class netcharts.pro.common.zoomable.NFZoomableChart |
---|
NOZOOM, zoomActionsMap, ZOOMIN, ZOOMOUT |
Fields inherited from class netcharts.pro.common.NFGraph |
---|
ANTIALIAS_OFF, ANTIALIAS_ON, ANTIALIAS_ONDRAW, ANTIALIAS_ONTEXT, antiAliasModeMap, BAR, BAR3D, BOX, BUBBLE, COMBO, DIAGRAM, DIAL, DWELL_ANIMATION_STYLE_HIGHLIGHT, DWELL_ANIMATION_STYLE_NONE, FADE, HEATMAP, HIGHLIGHT, HISTOGRAM, LABEL_ANIMATION_STYLE_FADE, LABEL_ANIMATION_STYLE_NONE, LEGEND_ANIMATION_STYLE_FADE, LEGEND_ANIMATION_STYLE_NONE, LEGEND_DWELL_ANIMATION_STYLE_HIGHLIGHT, LEGEND_DWELL_ANIMATION_STYLE_NONE, LINE, MULTIPIE, PARETO, PIE, POLAR, RADAR, STOCK, STRIP, TIME, XY |
Constructor Summary | |
---|---|
NFTimechart()
Constructs a default chart object. |
|
NFTimechart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFTimechart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFTimechart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
Method Summary | |
---|---|
void |
addTimeSet(NFTimeSet timeSet)
Adds a time set to the current list of timesets. |
java.lang.String |
getDefaultData()
Returns a string of default data |
int |
getTaskAnimationStyle()
Get the task animation style. |
int |
getTaskHeight()
Gets the task height factor to use when drawing tasks. |
NFTimeSeries |
getTimeSeries()
Get the time series. |
int |
getType()
Gets the chart type. |
boolean |
getUseUniqueTaskColors()
Get whether the use of unique task colors is being enforced. |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setTaskAnimationStyle(int style)
Set the task animation style. |
void |
setTaskHeight(int taskHeight)
Sets the task height factor to use when drawing tasks. |
void |
setTimeSeries(NFTimeSeries timeSeries)
Set the time series. |
void |
setUseUniqueTaskColors(boolean useUniqueTaskColors)
Enable or disable the use of unique task colors within the chart. |
void |
writeChart(java.lang.StringBuffer sb)
Writes this chart into a string buffer |
void |
writeExternal(java.io.ObjectOutput out)
Writes this chart into an object for serialization. |
Methods inherited from class netcharts.pro.common.rectangular.NFDataChart |
---|
addGrid, getAutoscalePad, getAxesSizes, getAxisThickness, getBottomAxis, getBottomAxisSeries, getGrid, getGridAnimationStyle, getGridDepth, getGridSeries, getLeftAxis, getLeftAxisSeries, getRightAxis, getRightAxisSeries, getTopAxis, getTopAxisSeries, getXAxis, getYAxis, setAutoscalePad, setAxesSizes, setAxisThickness, setBottomAxis, setBottomAxisSeries, setGrid, setGridAnimationStyle, setGridDepth, setGridSeries, setLeftAxis, setLeftAxisSeries, setRightAxis, setRightAxisSeries, setTopAxis, setTopAxisSeries |
Methods inherited from class netcharts.pro.common.zoomable.NFZoomableChart |
---|
getMouseControlDown, getMouseMetaDown, getMouseShiftDown, getZoomingEnabled, setMouseControlDown, setMouseMetaDown, setMouseShiftDown, setZoomingEnabled, zoom |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TASK_ANIMATION_STYLE_NONE
public static final int TASK_ANIMATION_STYLE_SCALE
public static final int TASK_ANIMATION_STYLE_FADE
Constructor Detail |
---|
public NFTimechart()
public NFTimechart(javax.swing.JPanel panel)
panel
- Panel to draw chart on.public NFTimechart(java.util.Properties initProperties)
initProperties
- A java.util.Properties object containing the set
of runtime properties to use when generating the chart. See the
netcharts.pro.common.NFGraph(java.util.Properties)
constructor
for a list of valid Properties.public NFTimechart(javax.swing.JPanel panel, java.util.Properties initProperties)
panel
- Panel to draw chart on.initProperties
- A java.util.Properties object containing the set
of runtime properties to use when generating the chart. See the
netcharts.pro.common.NFGraph(java.util.Properties)
constructor
for a list of valid Properties.Method Detail |
---|
public java.lang.String getDefaultData()
getDefaultData
in class NFGraph
public void addTimeSet(NFTimeSet timeSet)
timeSet
- The timeset to add.public void setTimeSeries(NFTimeSeries timeSeries) throws NFParamException
NFTimechart chart = new NFTimechart(); NFTimeSeries ts = chart.getTimeSeries(); NFTimeSet set = (NFTimeSet)ts.elementAt(0); // Set some of the properties on the NFTimeSet ... ts.setElementAt(set, 0); chart.setTimeSeries(ts);
timeSeries
-
NFParamException
public NFTimeSeries getTimeSeries()
NFTimechart chart = new NFTimechart(); NFTimeSeries ts = chart.getTimeSeries(); NFTimeSet set = (NFTimeSet)ts.elementAt(0); // Set some of the properties on the NFTimeSet ... ts.setElementAt(set, 0); chart.setTimeSeries(ts);
public int getType()
getType
in class NFGraph
netcharts.pro.charts.time.NFGraph.TIME
public void setUseUniqueTaskColors(boolean useUniqueTaskColors)
true
, each
Task will use the next available color table entry.
If a color is specified for a unique task via the addElement
method of NFTimeSet
,
the specified color will be used instead of the next available color table entry.
useUniqueTaskColors
- True to use unique colors, false to disable.public boolean getUseUniqueTaskColors()
The default value is false
.
public void setTaskHeight(int taskHeight)
taskHeight
- public int getTaskHeight()
public void setTaskAnimationStyle(int style)
If the value passed is not a valid task animation style, TASK_ANIMATION_STYLE_NONE will be used.
style
- One of TASK_ANIMATION_STYLE_NONE (default), TASK_ANIMATION_STYLE_SCALE or TASK_ANIMATION_STYLE_FADE
public int getTaskAnimationStyle()
TASK_ANIMATION_STYLE_NONE (default), TASK_ANIMATION_STYLE_SCALE or TASK_ANIMATION_STYLE_FADE
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class NFDataChart
java.io.IOException
public void writeChart(java.lang.StringBuffer sb)
writeChart
in class NFDataChart
public void resetState()
resetState
in class NFDataChart
|
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 - 2011 |
Last Modified: Jun 28, 2011 |