public class NFNote extends NFLabel
NFNote class is used to make text annotations to associate with data points on a graph. Each note may have an "arrowed" line constructed of four points to direct the viewer attention to a particular area or feature of the graph. The NFNote label, and perhaps associated NFRegion, can be placed in one of 9 sectors on top of and around the primary X/Y point of the NFNote. These positions are:
-------------------------------------- | TOPLEFT | TOP | TOPRIGHT | |--------------------------------------| | LEFT | CENTER | RIGHT | |--------------------------------------| | BOTTOMLEFT | BOTTOM | BOTTOMRIGHT | --------------------------------------
where "CENTER" represents the actual X/Y point of the note.
Notes are usually contained within a NFNoteSet object which shares a common note for drawing.
Type | Name | Description | Default | ||||
int | sector | Note position | CENTER |
Type | Name | Description | |||
int | BOTH | Arrow both directions | |||
int | BOTTOM | Note is below point | |||
int | BOTTOMLEFT | Note is below/left of point | |||
int | BOTTOMRIGHT | Note is below/right of point | |||
int | CENTER | Note is centered on point | |||
int | FROMTO | Arrow from note to endpoint | |||
int | LEFT | Note is left of point | |||
int | NONE | No Arrow | |||
int | RIGHT | Note is right of point | |||
int | TOFROM | Arrow from endpoint to note | |||
int | TOP | Note is above point | |||
int | TOPLEFT | Note is above/left of point | |||
int | TOPRIGHT | Note is above/right of point |
static NFParamDef defineArrow(NFParam p, String param)
static NFParamDef defineBox(NFParam p, String param)
static NFParamDef defineJustify(NFParam p, String param)
static NFParamDef defineLabel(NFParam p, String param)
void defineNote(NFParam p, String param)
static void defineSharedNote(NFParam p, String param)
static NFParamDef defineText(NFParam p, String param)
void draw(Graphics g)
public void loadArrow(NFParam p, String param) throws Exception
public void loadArrow(NFParam p, String param, Vector v) throws Exception
public void loadBox(NFParam p, String param) throws Exception
public void loadFormat(NFParam p, String param) throws Exception
void loadLabel(NFParam p, String param) throws Exception
void loadParams(NFParam p, String param)
void loadSharedNote(NFParam p, String param)
public void loadText(NFParam p, String param) throws Exception
void setCoordinates(int x, int y, int x1, int y1, int x2, int y2, int x3, int y3)