|
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.common.barset.NFBarSymbol
public class NFBarSymbol
The abstract NFSymbol class provides support for objects requiring drawing symbol properties.
Field Summary | |
---|---|
static int |
BAR
Bar style |
static int |
CYLINDER
Cylindrical bar style |
static int |
DIAMONDBAR
Diamond bar style |
static int |
PIEHORIZONTAL
Horizontal pie style - considers data to be a percentage value less than or equal to 100. |
static int |
PIEVERTICAL
Vertical pie style - considers data to be a percentage value less than or equal to 100. |
static int |
TRIANGLEBAR
Triangular bar style |
static java.util.Hashtable |
typeMap
The set of allowed bar symbol types. |
Constructor Summary | |
---|---|
NFBarSymbol()
Constructs a default bar symbol object |
|
NFBarSymbol(int type,
java.awt.Color color)
Constructs a symbol object with the specified symbol type, size, and style. |
Method Summary | |
---|---|
java.lang.String |
getCDL()
Generate CDL parameters representing this symbol |
java.lang.String |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing this symbol to the given StringBuffer. |
java.awt.Color |
getColor()
Gets the current data symbol color. |
int |
getType()
Gets the current data symbol type. |
void |
setCDL(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
int |
setCDL(java.lang.String[] elements,
int offset)
Configures this object from a CDL parameter representation. |
void |
setColor(java.awt.Color color)
Sets the data symbol color. |
void |
setType(int type)
Sets the symbol type to use for the data. |
java.lang.String |
toString()
Returns a new String object representing this symbol. |
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 |
Field Detail |
---|
public static final int BAR
public static final int TRIANGLEBAR
public static final int DIAMONDBAR
public static final int CYLINDER
public static final int PIEVERTICAL
public static final int PIEHORIZONTAL
public static java.util.Hashtable typeMap
BAR, TRIANGLEBAR, DIAMONDBAR, CYLINDER, PIEVERTICAL, PIEHORIZONTAL
.
Constructor Detail |
---|
public NFBarSymbol()
public NFBarSymbol(int type, java.awt.Color color)
type
- One of BAR, TRIANGLEBAR, DIAMONDBAR, CYLINDER,
PIEVERTICAL, PIEHORIZONTAL
color
- Symbol colorMethod Detail |
---|
public void setType(int type)
If the value passed is not a valid style an IllegalArgumentException will be thrown.
type
- One of BAR, TRIANGLEBAR, DIAMONDBAR, CYLINDER,
PIEVERTICAL, PIEHORIZONTAL
public int getType()
public void setColor(java.awt.Color color)
color
- Symbol color.public java.awt.Color getColor()
public java.lang.String toString()
toString
in interface NFCDLGenerator
toString
in class java.lang.Object
public java.lang.String getCDL()
getCDL
in interface NFCDLGenerator
(symbolType, symbolColor)
public java.lang.String getCDL(java.lang.StringBuffer sb, boolean includeParens)
sb
- Target buffer to append the CDL parametersincludeParens
- If true, this will cause the parameters to be delimited
with parenthesis.public void setCDL(java.lang.String cdl)
setCDL
in interface NFCDLGenerator
cdl
- CDL in the form: (symbolType, symbolColor)
public int setCDL(java.lang.String[] elements, int offset)
elements
- Array of parameter elements. This array is expected
to contain consecutive elements containing symbolType and
symbolColor information.offset
- Offset into the elements array.
|
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 |