|
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.NFNote
public class NFNote
The NFNote object represents a single note. A NFNote will be within a single NFNoteSet. The note may or may not have text, and may or may not have associated lines. Notes are mapped to screen locations through the use of the NFAxisMap object also stored in the NFNoteSet.
Constructor Summary | |
---|---|
NFNote()
Constructs a default note |
|
NFNote(java.lang.String text,
NFPoint point)
Constructs a note with the given text and location. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Does a deep copy of this note object |
java.lang.String |
getCDL()
Generate CDL parameters representing this note |
void |
getCDL(java.lang.StringBuffer sb)
Append CDL parameters representing this note to the given StringBuffer. |
NFPoint |
getPoint1()
Get this note's first location |
NFPoint |
getPoint2()
Get this note's second location. |
NFPoint |
getPoint3()
Get this note's third location. |
java.lang.String |
getText()
Get this note's text |
void |
setCDL(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
void |
setPoint1(NFPoint p1)
Set the starting location of the note. |
void |
setPoint2(NFPoint p2)
Set the second note location |
void |
setPoint3(NFPoint p3)
Set the third note location |
void |
setText(java.lang.String text)
Set the text to display in the note. |
java.lang.String |
toString()
Returns a new String object representing this note. |
Methods inherited from class netcharts.pro.common.NFBaseClass |
---|
getModified, getUserObject, setModified, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NFNote()
public NFNote(java.lang.String text, NFPoint point)
text
- Text to show in the note.point
- X/Y location (relative to the noteset's NFAxisMap)Method Detail |
---|
public void setText(java.lang.String text)
text
- If text is unset, or set to null, any associated
lines or background images will still be drawn.public void setPoint1(NFPoint p1)
p1
- If the noteset's NFArrowLine endpoint style is ELLIPSE or RECTANGLE,
this will represent the first corner.public void setPoint2(NFPoint p2)
p2
- If the noteset's NFArrowLine endpoint style is ELLIPSE or RECTANGLE,
this will represent the second corner. If other arrow
types, this will be the end point of a line. If there
are three note locations set, this will be the midpoint.public void setPoint3(NFPoint p3)
p3
- This will be the end point of a line.public java.lang.String getText()
text
- The current note text. May be null.public NFPoint getPoint1()
public NFPoint getPoint2()
public NFPoint getPoint3()
public java.lang.String getCDL()
getCDL
in interface NFCDLGenerator
("text", x1, y1, x2, y2, x3, y3)
public java.lang.String toString()
toString
in interface NFCDLGenerator
toString
in class java.lang.Object
public void getCDL(java.lang.StringBuffer sb)
sb
- Target buffer to append the CDL parameterspublic void setCDL(java.lang.String cdl)
setCDL
in interface NFCDLGenerator
cdl
- CDL in the form: ("text", x1, y1, x2, y2, x3, y3)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class NFBaseClass
java.lang.CloneNotSupportedException
|
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 |