|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--netcharts.pro.common.NFGraph
|
+--netcharts.pro.charts.diagram.NFDiagramchart
Represents a diagram or map chart. Provides the ability to configure the chart via object manipulation or directly from CDL.
| Fields inherited from class netcharts.pro.common.NFGraph |
ANTIALIAS_OFF, ANTIALIAS_ON, ANTIALIAS_ONDRAW, ANTIALIAS_ONTEXT, antiAliasModeMap, BAR, BOX, BUBBLE, COMBO, DIAGRAM, DIAL, LINE, 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 |
java.lang.String |
getDefaultData()
Returns a string of default data |
NFNodeEdgeSeries |
getEdges()
Gets the list of edges. |
NFVector |
getExpressions()
Gets the list of expressions. |
NFNodeSeries |
getNodes()
Gets the list of nodes. |
NFPolySet |
getPolygons()
Gets the list of polygons. |
int |
getType()
Gets the chart type. |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setEdges(NFNodeEdgeSeries edges)
Sets the list of edges. |
void |
setExpressions(NFVector exprs)
Sets the list of expressions. |
void |
setNodes(NFNodeSeries nodes)
Sets the list of nodes. |
void |
setPolygons(NFPolySet polygons)
Sets the list of polygons. |
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 NFGraphnetcharts.pro.common.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 node
public 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 nodes
public 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 NFGraphnetcharts.pro.charts.diagram.NFGraph.BAR
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in class NFGraphpublic void writeChart(java.lang.StringBuffer sb)
writeChart in class NFGraphpublic void resetState()
resetState in class NFGraph
|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2005 |
Last Modified: Feb 1, 2005 |