|
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
netcharts.pro.common.NFArrowLine
public class NFArrowLine
The NFArrowLine object is used to define lines and shapes used to highlight data items or areas within a chart. It consists of basic line parameters inherited from NFLine and the ability to specify an endPointStyle and arrow shape.
Field Summary | |
---|---|
static java.util.Hashtable |
arrowShapeMap
arrowShape hashtable |
static int |
BLOCK
Block Arrow Shape |
static int |
BOTH
<--> Arrow Endpoint Style |
static int |
ELLIPSE
Ellipse Endpoint Style Causes a ellipse to be drawn in the given line style. |
static java.util.Hashtable |
endPointStyleMap
endPointStyle hashtable |
static int |
FROMTO
---> Arrow Endpoint Style |
static int |
LINE
Line Arrow Shape |
static int |
NONE
No Shape/Style |
static int |
RECTANGLE
Rectangle Endpoint Style. |
static int |
ROUND
Round End Point Shape |
static int |
SHARP
Sharp Arrow Shape |
static int |
TOFROM
<--- Arrow Endpoint Style |
Fields inherited from class netcharts.pro.common.NFLine |
---|
DASHED, DOTDASH, DOTTED, lineTypeMap, SOLID |
Constructor Summary | |
---|---|
NFArrowLine()
Constructs a default arrow line. |
|
NFArrowLine(int style,
int thickness,
java.awt.Color color,
int endPointStyle)
Constructs a arrow line with the given style, color, and thickness. |
Method Summary | |
---|---|
int |
getArrowShape()
Get the shape of the end point arrow. |
java.awt.Dimension |
getArrowSize()
Get the size of the end point arrow. |
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. |
int |
getEndPointStyle()
Get the line's end point style. |
void |
setArrowShape(int arrowShape)
Set the line's arrow shape using a constant. |
void |
setArrowSize(java.awt.Dimension arrowSize)
Set the line's arrow size. |
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 |
setEndPointStyle(int endPointStyle)
Set the line's end point style using a constant. |
java.lang.String |
toString()
Returns a new String object representing this line. |
Methods inherited from class netcharts.pro.common.NFLine |
---|
getColor, getStyle, getThickness, setCDL, setColor, setStyle, setThickness |
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 FROMTO
public static final int TOFROM
public static final int BOTH
public static final int NONE
public static final int RECTANGLE
public static final int ELLIPSE
public static final int LINE
public static final int BLOCK
public static final int SHARP
public static final int ROUND
public static java.util.Hashtable endPointStyleMap
public static java.util.Hashtable arrowShapeMap
Constructor Detail |
---|
public NFArrowLine()
public NFArrowLine(int style, int thickness, java.awt.Color color, int endPointStyle)
style
- One of NONE, SOLID, DOTTED, DASHED, DOTDASH
color
- Line color.thickness
- Line thickness in pixels.endPointStyle
- One of NONE, FROMTO, TOFROM, BOTH, RECTANGLE, ELLIPSE
.Method Detail |
---|
public void setEndPointStyle(int endPointStyle)
If the value passed is not a valid border type an IllegalArgumentException will be thrown.
endPointStyle
- One of
NONE, FROMTO, TOFROM, BOTH, RECTANGLE, ELLIPSE
public int getEndPointStyle()
public void setArrowShape(int arrowShape)
If the value passed is not a valid border type an IllegalArgumentException will be thrown.
arrowShape
- One of
NONE, SHARP, LINE, BLOCK, ROUND
public int getArrowShape()
public void setArrowSize(java.awt.Dimension arrowSize)
arrowSize
- Dimension object representing the end point size.public java.awt.Dimension getArrowSize()
public java.lang.String toString()
toString
in interface NFCDLGenerator
toString
in class NFLine
public java.lang.String getCDL()
getCDL
in interface NFCDLGenerator
getCDL
in class NFLine
(style, thickness, color, arrowEndStyle, arrowShape, arrowWidth, arrowLength)
public void getCDL(java.lang.StringBuffer sb, boolean includeParens)
getCDL
in class NFLine
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 s)
setCDL
in interface NFCDLGenerator
setCDL
in class NFLine
cdl
- CDL in the form: (style, thickness, color, endPointStyle, arrowShape, arrowWidth, arrowLength)
public int setCDL(java.lang.String[] elements, int offset)
setCDL
in class NFLine
elements
- Array of parameter elements. This array is expected
to contain consecutive elements containing style, thickness,
color, endpointStyle, arrowShape, arrowWidth, and arrowLength 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 |