|
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.NFSymbol
public abstract class NFSymbol
The abstract NFSymbol class provides support for objects requiring drawing symbol properties.
Field Summary | |
---|---|
static int |
BOTH
Filled and Outlined symbol style |
static int |
CIRCLE
Circle Symbol type |
static int |
CROSS
Cross Symbol type |
static int |
DIAMOND
Diamond Symbol type |
static int |
FILLED
Fill the symbol style |
static int |
HRECTANGLE
Horizontal Rectangle type |
static int |
NONE
No Symbol type |
static int |
OUTLINED
Draw the symbol outline style |
static int |
SQUARE
Square Symbol type |
static java.util.Hashtable |
styleMap
The set of allowed symbol styles. |
static int |
TARGET
Target Symbol type |
static int |
TRIANGLEDOWN
Triangle Down Symbol type |
static int |
TRIANGLEUP
Triangle Up Symbol type |
static java.util.Hashtable |
typeMap
The set of allowed symbol types. |
static int |
VRECTANGLE
Vertical Rectangle type |
Constructor Summary | |
---|---|
NFSymbol()
Constructs a default symbol object |
|
NFSymbol(int type,
int size,
int style)
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. |
int |
getSize()
Gets the current data symbol size. |
int |
getStyle()
Gets the current data symbol style. |
int |
getType()
Gets the current data symbol type. |
void |
setCDL(java.lang.Object cdlObject)
Configures this label from a CDL parameter object. |
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 |
setSize(int size)
Sets the data symbol size in pixels. |
void |
setStyle(int style)
Sets the style to use for the data symbol. |
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 java.util.Hashtable typeMap
NONE, CIRCLE, SQUARE, DIAMOND, TRIANGLEUP, TRIANGLEDOWN, CROSS, VRECTANGLE, HRECTANGLE, TARGET
public static java.util.Hashtable styleMap
OUTLINED, FILLED, BOTH
public static final int NONE
public static final int CIRCLE
public static final int SQUARE
public static final int DIAMOND
public static final int TRIANGLEUP
public static final int TRIANGLEDOWN
public static final int CROSS
public static final int VRECTANGLE
public static final int HRECTANGLE
public static final int TARGET
public static final int FILLED
public static final int OUTLINED
public static final int BOTH
Constructor Detail |
---|
public NFSymbol()
public NFSymbol(int type, int size, int style)
type
- One of CIRCLE, SQUARE, DIAMOND, TRIANGLEUP, TRIANGLEDOWN,
CROSS, VRECTANGLE, HRECTANGLE, TARGET.
size
- Symbol size in pixelsstyle
- One of FILLED, OUTLINED, BOTH
Method Detail |
---|
public void setStyle(int style)
If the value passed is not a valid style an IllegalArgumentException will be thrown.
style
- One of FILLED, OUTLINED, BOTH
public int getStyle()
public void setType(int type)
If the value passed is not a valid style an IllegalArgumentException will be thrown.
type
- One of
NONE, CIRCLE, SQUARE, DIAMOND, TRIANGLEUP, TRIANGLEDOWN,
CROSS, VRECTANGLE, HRECTANGLE, TARGET.
public int getType()
public void setSize(int size)
size
- Symbol size in pixels.public int getSize()
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, symbolSize, symbolStyle)
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, symbolSize, symbolStyle)
public int setCDL(java.lang.String[] elements, int offset)
elements
- Array of parameter elements. This array is expected
to contain consecutive elements containing symbolType, symbolSize, and
symbolStyle information.offset
- Offset into the elements array.public void setCDL(java.lang.Object cdlObject)
cdlObject
- CDL in a String form or in a user object.
|
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 |