|
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.charts.diagram.NFDiagramchart
public class NFDiagramchart
Represents a diagram or map chart. Provides the ability to configure the chart via object manipulation or directly from CDL.
Field Summary |
---|
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 | |
---|---|
NFDiagramchart()
Constructs a default chart object. |
|
NFDiagramchart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFDiagramchart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFDiagramchart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
Method Summary | |
---|---|
void |
addEdge(NFNodeEdge edge)
Adds a diagram edge. |
void |
addEdge(java.lang.String startNode,
java.lang.String endNode)
Adds a diagram edge connecting the named start and end nodes. |
void |
addEmptyNode(java.lang.String nodeName,
int x,
int y)
Adds an empty diagram node |
void |
addExpression(int operator,
java.lang.Object value1,
java.lang.Object value2,
java.awt.Color fillColor)
Adds a expression. |
void |
addExpression(NFPolyExpr expr)
Adds a expression. |
void |
addNode(java.lang.String text,
int x,
int y)
Adds a diagram node |
void |
addNode(java.lang.String text,
int x,
int y,
NFTextStyle style,
NFRegion region)
Adds a diagram node |
void |
addNode(java.lang.String nodeName,
java.lang.String text,
int x,
int y,
NFTextStyle style,
NFRegion region)
Adds a diagram node |
void |
addPolygon(NFPoly poly)
Adds a polygon to the set of polygons. |
void |
addPolygon(java.lang.String tagName,
java.awt.Polygon polygon,
java.awt.Color fillColor)
Adds a polygon |
boolean |
getAppendPolyDayaToActiveLabels()
Get whether poly data should be appended to the poly active labels text. |
java.lang.String |
getDefaultData()
Returns a string of default data |
NFNodeEdgeSeries |
getEdges()
Gets the list of edges. |
NFVector |
getExpressions()
Gets the list of expressions. |
NFFillBorder |
getLegendDwellAnimationHighlight()
The legend dwell animation highlight is not supported. |
int |
getLegendDwellAnimationStyle()
Legend dwell animation style is not supported. |
NFNodeSeries |
getNodes()
Gets the list of nodes. |
NFPolySet |
getPolygons()
Gets the list of polygons. |
boolean |
getToggleDataVisibility()
Toggle data visibility is not supported. |
int |
getType()
Gets the chart type. |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setAppendPolyDayaToActiveLabels(boolean appendPolyDataToActiveLabels)
Set whether poly data should be appended to the poly active labels text. |
void |
setEdges(NFNodeEdgeSeries edges)
Sets the list of edges. |
void |
setExpressions(NFVector exprs)
Sets the list of expressions. |
void |
setLegendDwellAnimationHighlight(NFFillBorder fb)
The legend dwell animation highlight is not supported. |
void |
setLegendDwellAnimationStyle(int style)
Legend dwell animation style is not supported. |
void |
setNodes(NFNodeSeries nodes)
Sets the list of nodes. |
void |
setPolygons(NFPolySet polygons)
Sets the list of polygons. |
void |
setToggleDataVisibility(boolean toggleDataVisibility)
Toggle data visibility is not supported. |
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NFDiagramchart()
public NFDiagramchart(javax.swing.JPanel panel)
panel
- Panel to draw chart on.public NFDiagramchart(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 NFDiagramchart(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 addNode(java.lang.String text, int x, int y, NFTextStyle style, NFRegion region)
text
- The text to show on the node.x
- The x position of the node.y
- The y position of the nodestyle
- The text styleregion
- The background style.public void addNode(java.lang.String nodeName, java.lang.String text, int x, int y, NFTextStyle style, NFRegion region)
nodeName
- Node name to be used when attaching edgestext
- The text to show on the node.x
- The x position of the node.y
- The y position of the nodestyle
- The text styleregion
- The background style.public void addEmptyNode(java.lang.String nodeName, int x, int y)
nodeName
- Node name to be used when attaching edgesx
- The x position of the node.y
- The y position of the nodepublic void addNode(java.lang.String text, int x, int y)
text
- The text to show on the node.x
- The x position of the node.y
- The y position of the nodepublic void setNodes(NFNodeSeries nodes)
nodes
- List of nodes.public NFNodeSeries getNodes()
return
- the list of diagram nodespublic void addEdge(java.lang.String startNode, java.lang.String endNode)
startNode
- Name of the start nodeendNode
- Name of the end nodepublic void addEdge(NFNodeEdge edge)
edge
- The edge to add.public void setEdges(NFNodeEdgeSeries edges)
edges
- List of edges.public NFNodeEdgeSeries getEdges()
public void addPolygon(java.lang.String tagName, java.awt.Polygon polygon, java.awt.Color fillColor)
tagName
- Name of the polygonpolygon
- Polygon objectfillColor
- color to use for the polygonpublic void addPolygon(NFPoly poly)
poly
- The NFPoly to add.public void setPolygons(NFPolySet polygons)
polygons
- List of polygons.public NFPolySet getPolygons()
public void addExpression(int operator, java.lang.Object value1, java.lang.Object value2, java.awt.Color fillColor)
int
- operatorObject
- value1Object
- value2fillColor
- color to use if a match is foundpublic void addExpression(NFPolyExpr expr)
expr
- The expression to add.public void setExpressions(NFVector exprs)
exprs
- Vector of NFPolyExpr objects.public NFVector getExpressions()
public int getType()
getType
in class NFGraph
netcharts.pro.charts.diagram.NFGraph.BAR
public void setLegendDwellAnimationStyle(int style)
setLegendDwellAnimationStyle
in class NFGraph
style
- One of LEGEND_DWELL_ANIMATION_STYLE_NONE (default) or LEGEND_DWELL_ANIMATION_STYLE_HIGHLIGHT
public int getLegendDwellAnimationStyle()
getLegendDwellAnimationStyle
in class NFGraph
LEGEND_DWELL_ANIMATION_STYLE_NONE
public void setLegendDwellAnimationHighlight(NFFillBorder fb)
setLegendDwellAnimationHighlight
in class NFGraph
public NFFillBorder getLegendDwellAnimationHighlight()
getLegendDwellAnimationHighlight
in class NFGraph
public void setToggleDataVisibility(boolean toggleDataVisibility)
setToggleDataVisibility
in class NFGraph
toggleDataVisibility
- true
enable show/hide data false
disable show/hide datapublic boolean getToggleDataVisibility()
getToggleDataVisibility
in class NFGraph
public void setAppendPolyDayaToActiveLabels(boolean appendPolyDataToActiveLabels)
appendPolyDataToActiveLabels
- Whether poly data should be appended to the poly active labels text.public boolean getAppendPolyDayaToActiveLabels()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class NFGraph
java.io.IOException
public void writeChart(java.lang.StringBuffer sb)
writeChart
in class NFGraph
public void resetState()
resetState
in class NFGraph
|
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 |