|
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.NFLine
public class NFLine
The NFLine object describes a line's color, thickness, and style. In NetCharts, lines are used to show data, highlight areas using arrows, and to define symbol characteristics. This class has the fundamental methods and variables to support most line drawing in the NetCharts package.
| Field Summary | |
|---|---|
static int |
DASHED
Dashed line style |
static int |
DOTDASH
DotDash line style |
static int |
DOTTED
Dotted line style |
static java.util.Hashtable |
lineTypeMap
lineTypeMap hashtable |
static int |
NONE
No line style |
static int |
SOLID
Solid line style |
| Constructor Summary | |
|---|---|
NFLine()
Constructs a default line object |
|
NFLine(int style,
int thickness,
java.awt.Color color)
Constructs a line with the given style thickness and color. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCDL()
Generate CDL parameters representing this line |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing this line to the given StringBuffer. |
java.awt.Color |
getColor()
Return the line color |
int |
getStyle()
Gets the current line style. |
int |
getThickness()
Gets the current line thickness. |
void |
setCDL(java.lang.Object cdlObject)
Configures this line from a CDL parameter object. |
void |
setCDL(java.lang.String s)
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)
Set the line color |
void |
setStyle(int style)
Sets the style to use for the line. |
void |
setThickness(int thickness)
Sets the line thickness |
java.lang.String |
toString()
Returns a new String object representing this line. |
| 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 NONE
public static final int SOLID
public static final int DOTTED
public static final int DASHED
public static final int DOTDASH
public static java.util.Hashtable lineTypeMap
| Constructor Detail |
|---|
public NFLine()
public NFLine(int style,
int thickness,
java.awt.Color color)
style - One of NONE, SOLID, DOTTED, DASHED, DOTDASH.thickness - Line thickness (in pixels)color - Line color| Method Detail |
|---|
public void setThickness(int thickness)
thickness - Thickness (in pixels) of the line.public int getThickness()
public void setStyle(int style)
style - One of NONE, SOLID, DOTTED, DASHED, DOTDASHpublic int getStyle()
public void setColor(java.awt.Color color)
color - Color objectpublic java.awt.Color getColor()
public java.lang.String toString()
toString in interface NFCDLGeneratortoString in class java.lang.Objectpublic java.lang.String getCDL()
getCDL in interface NFCDLGenerator(style, thickness, color)
public void 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.Object cdlObject)
cdlObject - CDL in a String form or in a user object.public void setCDL(java.lang.String s)
setCDL in interface NFCDLGeneratorcdl - CDL in the form: (style, thickness, color)
public int setCDL(java.lang.String[] elements,
int offset)
elements - Array of parameter elements. This array is expected
to contain consecutive elements containing style, thickness, and
color 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 - 2018 |
Last Modified: Jan 7, 2018 |