| Overview | Package | Class | Tree | Index | Help | NetCharts Pro (Applets) 7.0 | ||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object
|
+--netcharts.graphics.NFDraggable
|
+--netcharts.graphics.NFNoteSet
| Field Summary | |
| java.lang.String | xaxis
default xaxis mapping |
| java.lang.String | yaxis
default yaxis mapping |
| Constructor Summary | |
| NFNoteSet()
Constructor for NFNoteSet class. | |
| NFNoteSet(NFActiveRegion dwell)
Constructor for NFNoteSet class. | |
| Method Summary | |
| static void | addObserver(java.lang.Object observer,
java.util.Vector notesets)
Add the given observer to all NoteSets in the given Vector. |
| boolean | dragTo(double[] newCoord)
This method is called after the observers have approved the new drag location provided in the coords[] array. |
| void | draw(java.awt.Graphics g,
java.awt.Graphics clipGraphics)
Draws the NoteSet to the graphics object. |
| static void | drawAllNoteSets(java.util.Vector notesets,
java.awt.Graphics g)
Draw all NoteSets on the given Graphics. |
| static void | drawAllNoteSets(java.util.Vector notesets,
java.awt.Graphics g,
java.awt.Graphics clipRect)
Draw all NoteSets on the given Graphics. |
| double[] | getCoords()
Returns the current coordinates for the drag object |
| int | getIndex()
Get the index of the NoteSet. |
| static NFActiveLabel | getNoteSetActiveLabel(java.util.Vector notesets,
int idx)
Returns the active label from the given vector for the given index. |
| static int | getNoteSetIndex(java.util.Vector notesets,
NFActiveLabel label)
Returns the index of the noteset that owns the given active label. |
| boolean | isDraggable(java.awt.Event evt,
int x,
int y)
This is called by the NFDraggable class to start the dragging process. |
| static boolean | loadAllParams(NFParam p,
java.util.Vector notesets,
NFActiveRegion dwell)
Load all defined notesets. |
| void | loadParams(NFParam p,
java.lang.String param)
Loads the NoteSet parameters from the parameter parser |
| static boolean | mouseDown(java.awt.Event evt,
int x,
int y,
java.util.Vector notesets)
Call mouseDown on all NoteSets in the given Vector. |
| static boolean | mouseDrag(java.awt.Event evt,
int x,
int y,
java.util.Vector notesets)
Call mouseDrag on all NoteSets in the given Vector. |
| static boolean | mouseUp(java.awt.Event evt,
int x,
int y,
java.util.Vector notesets)
Call mouseUp on all NoteSets in the given Vector. |
| double[] | moveRelative(java.awt.Event evt,
int dx,
int dy)
Computes and returns the new coordinates for the drag object given the relative offset in pixels. |
| static void | removeObserver(java.lang.Object observer,
java.util.Vector notesets)
Remove the given observer from all NoteSets in the given Vector. |
| static void | setAllMapComponent(java.awt.Component comp,
java.util.Vector notesets)
Set the component associated with all NoteSets in the given vector. |
| void | setAxisMap(NFAxisMap axisMap)
Set object used to get axes used in mapping x/y values (instead of a pixel position). |
| void | setDwell(NFActiveRegion dwell)
Set the ActiveRegion on this NoteSet. |
| static void | setDwell(java.util.Vector notesets,
NFActiveRegion dwell)
Set the given dwell on all NoteSets in the given Vector. |
| void | setIndex(int index)
Set the index of this NoteSet in the set of NoteSets in the Graph. |
| void | setMapComponent(java.awt.Component comp)
Set map component used if mapping x/y values using percentage. |
| void | setScale(double scale)
Set the given scale on this NoteSet. |
| static void | setScale(java.util.Vector notesets,
double scale)
Set the given scale on all NoteSets in the given Vector. |
| Methods inherited from class netcharts.graphics.NFDraggable | |
| abortPreDrag, addObserver, dragTo, getCoords, isDraggable, mouseDown, mouseDrag, mouseUp, moveRelative, notifyPostDrag, removeObserver | |
| Field Detail |
public java.lang.String xaxis
public java.lang.String yaxis
| Constructor Detail |
public NFNoteSet()
public NFNoteSet(NFActiveRegion dwell)
dwell
- The ActiveRegion.| Method Detail |
public static void setDwell(java.util.Vector notesets,
NFActiveRegion dwell)
notesets
- A Vector of NoteSets.
dwell
- The ActiveRegion.public void setIndex(int index)
index
- The index.public int getIndex()
public void setDwell(NFActiveRegion dwell)
dwell
- The ActiveRegion.
public static void setScale(java.util.Vector notesets,
double scale)
notesets
- A Vector of NoteSets.
scale
- The scale factor.public void setScale(double scale)
scale
- The scale factor.
public void setAxisMap(NFAxisMap axisMap)
throws java.lang.Exception
axisMap
- The AxisMap.public void setMapComponent(java.awt.Component comp)
comp
- The Component.
public void loadParams(NFParam p,
java.lang.String param)
p
- The parameter database to load from.
param
- The parameter name.
public static int getNoteSetIndex(java.util.Vector notesets,
NFActiveLabel label)
notesets
- The Vector of NoteSets.
label
- The ActiveLabel to identify.
public static NFActiveLabel getNoteSetActiveLabel(java.util.Vector notesets,
int idx)
notesets
- The Vector of NoteSets.
idx
- The NoteSet index.
public static boolean loadAllParams(NFParam p,
java.util.Vector notesets,
NFActiveRegion dwell)
p
- The parameter database to load from.
notesets
- The Vector of NoteSets.
dwell
- The ActiveRegion.
public static void drawAllNoteSets(java.util.Vector notesets,
java.awt.Graphics g)
notesets
- The Vector of NoteSets.
g
- The Graphics to draw on.
public static void drawAllNoteSets(java.util.Vector notesets,
java.awt.Graphics g,
java.awt.Graphics clipRect)
notesets
- The Vector of NoteSets.
g
- The Graphics to draw on.
clipRect
- The Clipping Rectangle.
public static void setAllMapComponent(java.awt.Component comp,
java.util.Vector notesets)
comp
- The Component.
notesets
- The Vector of NoteSets.
public void draw(java.awt.Graphics g,
java.awt.Graphics clipGraphics)
g
- The Graphics to draw on.
clipGraphics
- The Graphics on which a clip is set.
public static void addObserver(java.lang.Object observer,
java.util.Vector notesets)
observer
- The observer to add.
notesets
- The Vector of NoteSets.
public static void removeObserver(java.lang.Object observer,
java.util.Vector notesets)
observer
- The observer to remove.
notesets
- The Vector of NoteSets.
public static boolean mouseDown(java.awt.Event evt,
int x,
int y,
java.util.Vector notesets)
evt
- The Event.
x
- The X coordinate.
y
- The Y coordinate.
notesets
- The Vector of NoteSets.
public static boolean mouseDrag(java.awt.Event evt,
int x,
int y,
java.util.Vector notesets)
evt
- The Event.
x
- The X coordinate.
y
- The Y coordinate.
notesets
- The Vector of NoteSets.
public static boolean mouseUp(java.awt.Event evt,
int x,
int y,
java.util.Vector notesets)
evt
- The Event.
x
- The X coordinate.
y
- The Y coordinate.
notesets
- The Vector of NoteSets.
public boolean isDraggable(java.awt.Event evt,
int x,
int y)
evt
- The Event.
x
- The X coordinate.
y
- The Y coordinate.public double[] getCoords()
public double[] moveRelative(java.awt.Event evt,
int dx,
int dy)
evt
- The Event.
dx
- The change in the X coordinate.
dy
- The change in the Y coordinate.public boolean dragTo(double[] newCoord)
If true is returned, the new mouse location is recorded, otherwise the drag operation is completely ignored.
coords
- The coordinates to drag to.| Overview | Package | Class | Tree | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2010 |
Last Modified: Jun 29, 2010 |