|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFBaseClass
netcharts.pro.charts.pie.NFSliceLabel
public class NFSliceLabel
The NFSliceLabel property describes the appearance of piechart labels,to include the lines, text, and the background region
Field Summary | |
---|---|
static java.util.Hashtable |
contentTypeMap
contentTypeMap hashtable |
static int |
DATA
Slice data content. |
static int |
EXTERIOR
Exterior labels. |
static int |
LABEL
Slice label content. |
static int |
NONE
None |
static int |
PERCENTAGE
Slice percentage content. |
static int |
PERCENTAGE_FLOAT
Slice percentage content. |
static int |
PERCENTAGE_INT
Slice percentage content. |
static int |
RADIAL
Radial labels. |
static java.util.Hashtable |
styleMap
styleMap hashtable |
Constructor Summary | |
---|---|
NFSliceLabel()
Constructs a default slice label object |
|
NFSliceLabel(java.util.Hashtable state)
Constructs a slice label object using CDL parameters |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone this object. |
java.util.Vector |
getCDLVector()
NFSliceLabel is a compound object representing multiple CDL parameters. |
int[] |
getContent()
Get the data content of the label. |
java.lang.String |
getContentDelimiter()
Get the delimiter that will be put in between content items. |
NFFormat |
getFormat()
Get the numerical formatting of data items. |
NFModalLabel |
getLabel()
Get the text style. |
NFLine |
getLine()
Get the line style. |
double |
getRadialPosition()
Get the location of radial labels. |
NFRegion |
getRegion()
Get background style |
boolean |
getSliceLabelEnabled()
Returns the state of slice label display. |
int |
getStyle()
Get the label display style. |
void |
setContent(int contentType)
Set the data content of the label to be only the contentType described here. |
void |
setContent(int[] content)
Set the data content of the label. |
void |
setContent(int firstContent,
int secondContent)
Set the data content of the label to the firstContent type followed by the secondContent type. |
void |
setContent(int firstContent,
int secondContent,
int thirdContent)
Set the data content of the label to the firstContent type followed by the secondContent type, followed by theh thirdContent type. |
void |
setContentDelimiter(java.lang.String contentDelimiter)
Set the delimiter that will be put in between content items. |
void |
setFormat(NFFormat format)
Set the numerical formatting of data items. |
void |
setLabel(NFModalLabel label)
Set text style. |
void |
setLine(NFLine line)
Set the line style for lines connecting the slice to the label. |
void |
setRadialPosition(double radialPosition)
Set the location of radial labels. |
void |
setRegion(NFRegion region)
Set background style |
void |
setSliceLabelEnabled(boolean enabled)
Enables or disables the slice label display |
void |
setStyle(int style)
Set the label display style. |
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 |
---|
public static final int NONE
public static final int PERCENTAGE
public static final int DATA
public static final int LABEL
public static final int PERCENTAGE_FLOAT
public static final int PERCENTAGE_INT
public static final int EXTERIOR
public static final int RADIAL
public static java.util.Hashtable contentTypeMap
public static java.util.Hashtable styleMap
Constructor Detail |
---|
public NFSliceLabel()
public NFSliceLabel(java.util.Hashtable state)
state
- Hashtable containing CDL parameters.Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class NFBaseClass
java.lang.CloneNotSupportedException
public void setSliceLabelEnabled(boolean enabled)
enabled.
- If true, slice labels will be shown.public boolean getSliceLabelEnabled()
public void setLabel(NFModalLabel label)
label
- NFModalLabel object.public NFModalLabel getLabel()
public void setRegion(NFRegion region)
region
- public NFRegion getRegion()
public void setContent(int contentType)
If the value passed is not a valid content type an IllegalArgumentException will be thrown.
borderType
- One ofcontentType
- One of NONE, DATA, PERCENTAGE, LABEL, PERCENTAGE_FLOAT, PERCENTAGE_INT
public void setContent(int firstContent, int secondContent)
If the values passed are not valid content types an IllegalArgumentException will be thrown.
firstContent
- One of NONE, DATA, PERCENTAGE, LABEL, PERCENTAGE_FLOAT, PERCENTAGE_INT
secondContent
- One of NONE, DATA, PERCENTAGE, LABEL, PERCENTAGE_FLOAT, PERCENTAGE_INT
public void setContent(int firstContent, int secondContent, int thirdContent)
If the values passed are not valid content types an IllegalArgumentException will be thrown.
firstContent
- One of NONE, DATA, PERCENTAGE, LABEL, PERCENTAGE_FLOAT, PERCENTAGE_INT
secondContent
- One of NONE, DATA, PERCENTAGE, LABEL, PERCENTAGE_FLOAT, PERCENTAGE_INT
public void setContent(int[] content)
If the values passed are not valid content types an IllegalArgumentException will be thrown.
content
- An array of content types, up to three elements in
size. Each content item one of NONE, DATA, PERCENTAGE, LABEL, PERCENTAGE_FLOAT, PERCENTAGE_INT
public int[] getContent()
NONE, DATA, PERCENTAGE, LABEL
public void setContentDelimiter(java.lang.String contentDelimiter)
contentDelimiter
- Text element to put in between
multiple content items.public java.lang.String getContentDelimiter()
public void setRadialPosition(double radialPosition)
RADIAL
.
radialPosition
- A value of 1.1 puts the labels just
outside the pie border.public double getRadialPosition()
the
- location of radial labels or 1.1 if not defined.public void setStyle(int style)
If the value passed is not a valid label style type an IllegalArgumentException will be thrown.
style
- One of
NONE, EXTERIOR, RADIAL
public int getStyle()
If the value passed is not a valid label style type an IllegalArgumentException will be thrown.
NONE, EXTERIOR
(default), RADIAL
public void setFormat(NFFormat format)
format
- Object containing numerical format information.public NFFormat getFormat()
public void setLine(NFLine line)
line
- Line style object.public NFLine getLine()
public java.util.Vector getCDLVector()
|
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 |