NetCharts Pro

netcharts.pro.charts.diagram
Class NFPoly

java.lang.Object
  extended by netcharts.pro.common.NFBaseClass
      extended by netcharts.pro.charts.diagram.NFPoly
All Implemented Interfaces:
java.lang.Cloneable

public class NFPoly
extends NFBaseClass

This class is used to define a line between two nodes in a NFDiagramchart.


Constructor Summary
NFPoly()
          Creates a default polygon.
NFPoly(java.lang.String tagName, java.awt.Polygon polygon)
          Creates a polygon with the specified name and polygon shape.
 
Method Summary
 NFActiveLabel getActiveLabel()
          Returns the active, or popup, label to use when hovering over the polygon shape.
 java.lang.String getCDL()
          Generate CDL parameters representing this polygon shape.
 java.lang.Object getData()
          Returns data associated with the polygon shape.
 java.awt.Color getFillColor()
          Returns the color to use within the polygon shape.
 java.awt.Polygon getPolygon()
          Returns the bounding area of the polygon shape.
 java.lang.String getTagName()
          Returns the name of the polygon shape.
 void setActiveLabel(NFActiveLabel activeLabel)
          Sets the active, or popup, label to use when hovering over the polygon shape.
 void setCDL(java.lang.String s)
          Configures this object from a CDL parameter representation.
 void setData(java.lang.Object data)
          Sets the data associated with the polygon shape.
 void setFillColor(java.awt.Color fillColor)
          Sets the color to use within the polygon shape.
 void setPolygon(java.awt.Polygon polygon)
          Sets the bounding area of the polygon shape.
 void setTagName(java.lang.String tagName)
          Sets the name of the polygon shape.
 java.lang.String toString()
          Returns a new String object representing this poly.
 
Methods inherited from class netcharts.pro.common.NFBaseClass
clone, getModified, getUserObject, setModified, setUserObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NFPoly

public NFPoly()
Creates a default polygon.


NFPoly

public NFPoly(java.lang.String tagName,
              java.awt.Polygon polygon)
Creates a polygon with the specified name and polygon shape.

Parameters:
tagName - The name of the polygon area
polygon - The bounding area of the polygon shape
Method Detail

setTagName

public void setTagName(java.lang.String tagName)
Sets the name of the polygon shape.

Parameters:
tagName - The name of the polygon shape.

getTagName

public java.lang.String getTagName()
Returns the name of the polygon shape.

Returns:
The name of the polygon shape

setPolygon

public void setPolygon(java.awt.Polygon polygon)
Sets the bounding area of the polygon shape.

Parameters:
polygon - The bounding area of the polygon shape

getPolygon

public java.awt.Polygon getPolygon()
Returns the bounding area of the polygon shape.

Returns:
The bounding area of the polygon shape

setFillColor

public void setFillColor(java.awt.Color fillColor)
Sets the color to use within the polygon shape.

Parameters:
fillColor - The color to use within the polygon shape

getFillColor

public java.awt.Color getFillColor()
Returns the color to use within the polygon shape.

Returns:
The color the use within the polygon shape

setActiveLabel

public void setActiveLabel(NFActiveLabel activeLabel)
Sets the active, or popup, label to use when hovering over the polygon shape.

Parameters:
activeLabel - The active, or popup, label to use when hovering over the polygon shape

getActiveLabel

public NFActiveLabel getActiveLabel()
Returns the active, or popup, label to use when hovering over the polygon shape.

Returns:
The active, or popup, label to use when hovering over the polygon shape

setData

public void setData(java.lang.Object data)
Sets the data associated with the polygon shape.

Parameters:
data - The data associated with the polygon shape

getData

public java.lang.Object getData()
Returns data associated with the polygon shape.

Returns:
The data associated with the polygon shape

toString

public java.lang.String toString()
Returns a new String object representing this poly.

Overrides:
toString in class java.lang.Object
Returns:
A new String object in the same form as that given by getCDL().

setCDL

public void setCDL(java.lang.String s)
Configures this object from a CDL parameter representation.

Parameters:
cdl - CDL in the form: ("tagName", x1,y1,x2,y2,...,x[n],y[n])

getCDL

public java.lang.String getCDL()
Generate CDL parameters representing this polygon shape.

Returns:
CDL in the form: ("tagName", x1,y1,x2,y2,...,x[n],y[n])

NetCharts Pro


Visual Mining, Inc.
2099 Gaither Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2018
All Rights Reserved.

NetCharts Pro TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jan 7, 2018