NetCharts Pro

netcharts.pro.charts.multipie
Class NFPie

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

public class NFPie
extends NFBaseClass

The NFPie class contains attributes for each pie in the Multi-Pie chart. The attributes include pie title, pie starting angle and pie background.


Field Summary
static int DEFAULT_ANGLE
          Default value for the pie starting angle if not specified.
 
Constructor Summary
NFPie()
          Creates a default pie object
NFPie(int angle)
          Constructs a pie object with the specified starting angle
NFPie(NFPieTitle title)
          Constructs a pie object with the specified title object
NFPie(java.lang.String titleText)
          Constructs a pie object with the specified title text
NFPie(java.lang.String titleText, NFModalLabel titleLabel, NFRegion titleRegion)
          Constructs a pie object with the specified title text, title style and title background region.
 
Method Summary
 java.lang.Object clone()
          Does a deep copy of this pie object
 int getAngle()
          Get the pie starting angle
 boolean getAngleModified()
          Returns whether the angle has been modified.
 NFRegion getBackground()
          Returns the pie background
 boolean getBackgroundModified()
          Returns whether the background has been modified.
 NFPieTitle getTitle()
          Get the pie title attributes
 void setAngle(int angle)
          Set the pie starting angle
 void setAngleModified(boolean modified)
          Sets whether the angle has been modified.
 void setBackground(NFRegion background)
          Set the pie background
 void setBackgroundModified(boolean modified)
          Sets whether the background has been modified.
 void setTitle(NFPieTitle title)
          Set the pie title attributes
 void setTitle(java.lang.String titleText, NFModalLabel titleLabel, NFRegion titleRegion)
          Set the pie title attributes (text, text style, background region)
 
Methods inherited from class netcharts.pro.common.NFBaseClass
getModified, getUserObject, setModified, setUserObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ANGLE

public static final int DEFAULT_ANGLE
Default value for the pie starting angle if not specified.

See Also:
Constant Field Values
Constructor Detail

NFPie

public NFPie()
Creates a default pie object


NFPie

public NFPie(java.lang.String titleText)
Constructs a pie object with the specified title text

Parameters:
titleText - title text

NFPie

public NFPie(java.lang.String titleText,
             NFModalLabel titleLabel,
             NFRegion titleRegion)
Constructs a pie object with the specified title text, title style and title background region.

Parameters:
titleText - title text
titleLabel - title text style
titleRegion - title background region

NFPie

public NFPie(NFPieTitle title)
Constructs a pie object with the specified title object

Parameters:
title - pie title object

NFPie

public NFPie(int angle)
Constructs a pie object with the specified starting angle

Parameters:
angle - starting angle
Method Detail

setTitle

public void setTitle(java.lang.String titleText,
                     NFModalLabel titleLabel,
                     NFRegion titleRegion)
Set the pie title attributes (text, text style, background region)

Parameters:
titleText - title text
titleLabel - title text style
titleRegion - title background region

setTitle

public void setTitle(NFPieTitle title)
Set the pie title attributes

Parameters:
title - pie title object

getTitle

public NFPieTitle getTitle()
Get the pie title attributes

Returns:
pie title object

setAngle

public void setAngle(int angle)
Set the pie starting angle

Parameters:
angle - in degrees (0 - 359)

getAngle

public int getAngle()
Get the pie starting angle

Returns:
angle in degrees (0 - 359) or DEFAULT_ANGLE if not set

getAngleModified

public boolean getAngleModified()
Returns whether the angle has been modified.

Returns:
true if the angle has been modified, false otherwise.

setAngleModified

public void setAngleModified(boolean modified)
Sets whether the angle has been modified.

Parameters:
modified - true if the angle has been modified, false otherwise.

setBackground

public void setBackground(NFRegion background)
Set the pie background

Parameters:
background - pie background

getBackground

public NFRegion getBackground()
Returns the pie background

Returns:
pie background or null if not set

getBackgroundModified

public boolean getBackgroundModified()
Returns whether the background has been modified.

Returns:
true if the background has been modified, false otherwise.

setBackgroundModified

public void setBackgroundModified(boolean modified)
Sets whether the background has been modified.

Parameters:
modified - true if the background has been modified, false otherwise.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Does a deep copy of this pie object

Overrides:
clone in class NFBaseClass
Returns:
Object
Throws:
java.lang.CloneNotSupportedException

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 - 2011
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: Jun 28, 2011