|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jinsight.jetchart.SliceLegend
This class implements the properties and methods of a slice legend. A SliceLegend object has no public construtor. It is owned by a Slice object and can only be accessed through a 'get' method implemented in Slice.
Slice legends can be displayed inside slices or outside pie bounds. The content of a slice legend can be specified as a value, a percentage, a label, a label and a value, a label and a percentage or a value and a percentage. The legend border can be displayed in three different styles: shadowed, lowered bevel and raised bevel.
PieGraph,
PieSerie,
Slice,
Slice.getSliceLegend()| Field Summary | |
static int |
INSIDE
Constant used to place slice legend inside the respective slice area. |
static int |
LABEL
Constant used to set the slice legend content to respective slice title. |
static int |
LABEL_AND_PERCENT
Constant used to set the slice legend content to respective slice title and percentage. |
static int |
LABEL_AND_VALUE
Constant used to set the slice legend content to respective slice title and value. |
static int |
LOWERED_BEVEL
Constant used to set the slice legend border to lowered bevel. |
static int |
OUTSIDE
Constant used to place slice legend outside pie series bounds. |
static int |
PERCENT
Constant used to set the slice legend content to a percentage. |
static int |
RAISED_BEVEL
Constant used to set the slice legend border to raised bevel. |
static int |
SHADOWED
Constant used to set the slice legend border to shadowed. |
static int |
VALUE
Constant used to set the slice legend content to the respective slice value. |
static int |
VALUE_AND_PERCENT
Constant used to set slice legend content to respective slice value and percentage. |
| Method Summary | |
protected void |
finalize()
|
void |
setArrowColor(java.awt.Color arrowColor)
Deprecated. |
void |
setBackground(java.awt.Color background)
Sets the background color. |
void |
setBorder(int border)
Sets the border type of the slice legend. |
void |
setConnectorColor(java.awt.Color connectorColor)
Sets the color of the line that connect a slice legend to respective slice. |
void |
setConnectorLength(int connectorLength)
Sets the length of the line that connects a slice legend to respective slice. |
void |
setContent(int content)
Sets the content type of the slice legend. |
void |
setEnabled(boolean isEnabled)
Enables/disables slice legend. |
void |
setFont(java.awt.Font font)
Sets the font of the slice legend. |
void |
setForeground(java.awt.Color foreground)
Sets the color of the text displayed in a slice legend. |
void |
setOpacityEnabled(boolean isOpaque)
Enables/disables slice legend opacity. |
void |
setPosition(int position)
Sets the position of this slice legend. |
void |
setVertexDistance(double vertexDistance)
Sets the distance of the slice legend from slice vertex. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int VALUE
public static final int PERCENT
public static final int LABEL
public static final int LABEL_AND_VALUE
public static final int LABEL_AND_PERCENT
public static final int VALUE_AND_PERCENT
public static final int INSIDE
public static final int OUTSIDE
public static final int SHADOWED
public static final int LOWERED_BEVEL
public static final int RAISED_BEVEL
| Method Detail |
public void setPosition(int position)
position - An integer valueOUTSIDE,
INSIDE,
Slice,
PieSerie.setStackedSliceLegendsEnabled(boolean)public void setEnabled(boolean isEnabled)
isEnabled - A boolean value(true/false)public void setBackground(java.awt.Color background)
background - A Color object.setOpacityEnabled(boolean)public void setForeground(java.awt.Color foreground)
foreground - A Color object.public void setFont(java.awt.Font font)
font - A Font object.public void setContent(int content)
content - One of the constants used to define the slice legend content type.VALUE,
LABEL,
PERCENT,
LABEL_AND_VALUE,
LABEL_AND_PERCENT,
VALUE_AND_PERCENTpublic void setBorder(int border)
border - One of the constants used to define the slice legend border type.SHADOWED,
LOWERED_BEVEL,
RAISED_BEVELpublic void setVertexDistance(double vertexDistance)
vertexDistance - A double precision number. It can vary from 0 to 1.public void setOpacityEnabled(boolean isOpaque)
isOpaque - A boolean value(true/false).setBackground(java.awt.Color)public void setArrowColor(java.awt.Color arrowColor)
arrowColor - A Color object.public void setConnectorColor(java.awt.Color connectorColor)
connectorColor - A Color object.setPosition(int)public void setConnectorLength(int connectorLength)
connectorLength - A integer numberPieSerie.setStackedSliceLegendsEnabled(boolean),
setPosition(int)
protected void finalize()
throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||