| 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
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--netcharts.graphics.JGraph
| Inner classes inherited from class javax.swing.JPanel | |
| javax.swing.JPanel.AccessibleJPanel | |
| Inner classes inherited from class javax.swing.JComponent | |
| javax.swing.JComponent.AccessibleJComponent | |
| Inner classes inherited from class java.awt.Container | |
| java.awt.Container.AccessibleAWTContainer | |
| Inner classes inherited from class java.awt.Component | |
| java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy | |
| Field Summary | |
| java.applet.Applet | a
the associated Applet |
| int | antiAliasing
|
| boolean | autoScale
|
| NFRegion | background
|
| NFActiveLabel | backgroundActiveLabel
|
| NFPatternFill | backgroundPatternFill
|
| java.util.Hashtable | chartMetaData
|
| NFContext | context
|
| char | decSymbol
The decimal symbol. |
| NFActiveRegion | dwell
If non-null, handles dwell label displaying |
| int | dwellAction
Dwell Action |
| int | dwellOffset
pixels around a dwell point. |
| boolean | graphChanged
Set true when the graph has changed and needs to be displayed |
| int | groupSize
Size of number grouping. |
| char | groupSymbol
The number grouping symbol. |
| boolean | incrementalUpdate
Set true when the only the last point should be drawn |
| boolean | layoutChanged
used internally to determine if certain graph items need to be recalculated |
| NFLegend | legend
Legend object |
| boolean | legendChanged
Set true when the legend has changed and needs to be displayed |
| NFLoadParams | loadParams
Used for parameter loading |
| int | mouseControlDown
Control Down Action |
| int | mouseMetaDown
Meta Down Action |
| int | mouseShiftDown
Shift Down Action |
| static int | NOZOOM
No Zooming |
| java.util.Vector | observers
|
| NFParam | param
Used for parameter storage |
| java.util.Properties | runtimeProperties
Runtime Properties |
| double | scale
|
| int | zoomAction
Zoom Action |
| boolean | zoomEnabled
allow/disable zoom processing |
| static int | ZOOMIN
Zoom In |
| static int | ZOOMOUT
Zoom Out |
| Method Summary | |
| boolean | abortPreDrag(double curX,
double curY,
double newX,
double newY)
Check with all DragObservers before dragging. |
| void | addDwellObserver(NFDwellObserver observer)
Add an observer to the dwell region to catch dwell events. |
| void | addObserver(java.lang.Object observer)
Add an observer of any type to the graph. |
| void | addTitleActiveLabelParamInfo(NFLabel l,
java.lang.String param)
Add Parameter information to the ActiveLabel associated with the given NFLabel. |
| void | clean()
This method cleans the chart and its parameters, making it ready to be reused. |
| void | clearActiveLabel(NFLabel label)
Removes the active label for the NFLabel from the dwell vector. |
| void | clearMetaData()
Clear the chart's meta data. |
| java.awt.Color | defaultColor(int i)
Get a default color for the given index |
| void | defineParams()
Defines all HTML parameters supported by JGraph. |
| void | display()
Display all graph parts, calling sub-class methods as necessary. |
| void | display(boolean forceGraph)
If <forceGraph> is true, force a redraw of the graph. |
| void | display(java.awt.Graphics g)
Display all graph parts, calling sub-class methods as necessary. |
| void | drawGraph(java.awt.Graphics g,
java.awt.Rectangle r)
This method must be overridden by sub-classes in order to display data sets. |
| void | drawGraphLite(java.awt.Graphics g)
This method must be overridden by sub-classes in order to display data sets. |
| java.awt.Image | drawImage(int width,
int height)
Create and return an image of the current graph. |
| void | dwellChanged()
This method is called whenever the dwell region changes and is intended to be over-ridden by higher level chart classes. |
| boolean | dwellDisplay(boolean onoff,
NFActiveLabel label)
This method is called when a dwell label is about to be displayed or erased. |
| boolean | dwellPress(java.awt.Event evt,
int x,
int y,
NFActiveLabel label)
This method is called whenever a dwell press occurs on the given label. |
| NFActiveRegion | getActiveRegion()
Get the ActiveRegion for the Graph. |
| NFContext | getContext()
Get the context of this JGraph object. |
| char | getDecimalSymbol()
Returns the current decimal symbol |
| static java.lang.String | getErrorMsg(java.lang.Exception e)
Get the error message from an Exception, clipping off the Exception name. |
| static java.lang.String | getErrorMsg(java.lang.Exception e,
boolean clipPrefix)
Get the error message from an Exception, clipping off the Exception name if specified. |
| int | getGroupSize()
Returns the current grouping size |
| char | getGroupSymbol()
Returns the current grouping symbol |
| NFActiveLabel | getLegendActiveLabel(int idx)
Returns the active label, if any, associated with the given index, which was previously generated by getLegendIndex() |
| int | getLegendIndex(NFActiveLabel label)
Returns the index in the legend for the given active label. |
| int | getLegendItemCount()
Returns the number of items in the legend (not including title) |
| NFLoadParams | getLoadParams()
Returns the graph's parameter loading engine |
| java.util.Vector | getMetaData(java.lang.String name)
Gets the meta data for the given name. |
| java.util.Enumeration | getMetaDataKeys()
Gets the name keys of all stored meta data. |
| NFActiveLabel | getNoteSetActiveLabel(int idx)
Returns the active label, if any, associated with the given index, which was previously generated by getNoteSetIndex() |
| int | getNoteSetIndex(NFActiveLabel label)
Returns the index of the noteset that owns the given active label. |
| int | getNoteSetIndex(NFNoteSet ns)
Get the note set index for the given noteset object |
| NFParam | getParam()
Returns the graph's parameter database |
| NFParse | getParse()
Returns the graph's parameter parser |
| java.util.Properties | getRuntimeProperties()
Get the runtime properties of this graph. |
| java.lang.String | getTextualDescription()
This method returns a textual description of the chart. |
| void | initGraph(java.applet.Applet a)
Initialize the JGraph object |
| boolean | isZoomable()
This method indicates whether or not this graph can be zoomed. |
| boolean | keyDown(java.awt.Event evt,
int key)
Interprets any key presses within the chart. |
| void | loadParams()
Loads all HTML parameters supported by JGraph. |
| void | loadParams(java.applet.Applet app)
Loads applet parameters from the HTML file that invoked the applet. |
| void | loadParams(NFCdf chart,
java.util.Vector errors)
Loads all parameters defined in the given chart object and stores a complete string definition in the chart.params hashtable for each valid parameter. |
| void | loadParams(java.lang.String expr)
Loads application parameters defined by the given parameter expression. |
| void | loadParams(java.lang.StringBuffer expr)
Loads application parameters defined by the given parameter expression. |
| void | loadParams(java.lang.String hostname,
int port,
java.lang.String args)
Loads application parameters from the NFParamServer designated by the <host> and <port> arguments. |
| void | loadParams(java.lang.String param,
java.lang.Object data)
Loads application parameters defined by the given parameter vector. |
| void | loadParams(java.net.URL url)
Loads application parameters defined by a URL. |
| boolean | mouseDown(java.awt.Event evt,
int x,
int y)
Keeps track of mouse movement over the graph |
| boolean | mouseDrag(java.awt.Event evt,
int x,
int y)
Keeps track of mouse dragging over the graph |
| boolean | mouseExit(java.awt.Event evt,
int x,
int y)
Keeps track of mouse exit out of the graph |
| boolean | mouseMove(java.awt.Event evt,
int x,
int y)
Keeps track of mouse movement over the graph |
| boolean | mouseUp(java.awt.Event evt,
int x,
int y)
Keeps track of mouse being released over the graph |
| void | notifyGraphObservers(java.awt.Graphics g)
Notify all GraphObservers that the grpah was drawn on the given Graphics. |
| boolean | notifyGraphOffscreenObservers(java.awt.Image db,
java.awt.Graphics g,
boolean pre)
Notify all GraphOffscreenObservers that the graph is about to be/has been drawn on the given Graphics. |
| void | notifyPostDrag(double newX,
double newY)
Notify all DragObservers that something has been dragged. |
| void | paint(java.awt.Graphics g)
Handle a paint request. |
| void | print(java.awt.Graphics g,
java.awt.Dimension d)
Handle a print request. |
| void | putMetaData(java.lang.String name,
java.util.Vector value)
Inserts meta data for the given name. |
| void | reload(NFCdf chart,
java.util.Vector errors)
Reload the current chart using the given CDF object. |
| boolean | reloadNeeded(java.util.Date timestamp)
Returns true if any of the underlying data sources for the chart have changed since the given timestamp. |
| void | removeDwellObserver(NFDwellObserver observer)
Remove an observer from the dwell region. |
| void | removeObserver(java.lang.Object observer)
Remove any type of observer from the graph. |
| void | reset()
The reset method may be overridden in order to provide a routine that computes display parameters without actually displaying the data. |
| void | scroll(int direction)
This method can be called to cause the charts to scroll in a given direction. |
| void | setActiveLabel(NFLabel label,
java.lang.String name)
Gets the activeLabel information from the param object and sets it to the appropriate label. |
| void | setBackground(NFRegion region)
Set the graph background. |
| void | setContext(NFContext context)
Set the context of this JGraph object. |
| void | setDecimalSymbol(char symbol)
This method can be used to set the decimal separator to be used when formatting numbers. |
| void | setFooter(NFLabel footer)
Set the graph footer. |
| void | setGrouping(int size,
char symbol)
This method can be used to set the group size and symbol to be used when formatting whole numbers. |
| void | setHeader(NFLabel header)
Set the graph header. |
| void | setLeftTitle(NFLabel title)
Set the graph left title. |
| void | setRightTitle(NFLabel title)
Set the graph right title. |
| void | setRuntimeProperties(java.util.Properties runtimeProperties)
Set the runtime properties of this graph. |
| void | setScale(double scale)
Set the scale factor for all scalable items in the graph. |
| void | setUseDoubleBuffer(boolean useDoubleBuffer)
Sets the useDoubleBuffer flag. |
| void | start(java.applet.Applet a)
Start the Graph executing. |
| void | stop(java.applet.Applet a)
Stop the Graph from executing. |
| void | update(java.awt.Graphics g)
Update the display of the graph. |
| void | update(java.awt.Graphics g,
java.awt.Rectangle r)
Update the display of the graph. |
| void | update(java.util.Observable o,
java.lang.Object obj)
This method is called by the NFParam object whenever a new set of parameters have been parsed. |
| void | updateData()
Update the data of the graph, i.e. |
| void | updateGraph()
This method is called whenever an update is aborted, for any reason, without calling the drawGraph() method. |
| void | zoom(int x,
int y,
int width,
int height)
This method should be overriden if zoom support is required for a given chart. |
| void | zoomHome()
This method can be called to cause the chart to zoom out to it's maximum size. |
| void | zoomIn()
This method should be overriden if zoom support is required for a given chart. |
| void | zoomOut()
This method should be overriden if zoom support is required for a given chart. |
| Field Detail |
protected java.applet.Applet a
protected NFLegend legend
protected NFParam param
protected NFLoadParams loadParams
protected boolean graphChanged
protected boolean legendChanged
protected boolean incrementalUpdate
protected NFActiveRegion dwell
protected int dwellOffset
protected boolean layoutChanged
protected boolean zoomEnabled
protected NFRegion background
protected NFActiveLabel backgroundActiveLabel
protected NFPatternFill backgroundPatternFill
protected double scale
protected boolean autoScale
protected int antiAliasing
public static final int NOZOOM
public static final int ZOOMIN
public static final int ZOOMOUT
public int mouseMetaDown
public int mouseShiftDown
public int mouseControlDown
public int zoomAction
public int dwellAction
protected java.util.Vector observers
protected java.util.Properties runtimeProperties
protected int groupSize
protected char groupSymbol
protected char decSymbol
protected java.util.Hashtable chartMetaData
protected NFContext context
| Method Detail |
public void setContext(NFContext context)
context
- The context to set.public NFContext getContext()
public void initGraph(java.applet.Applet a)
a
- The Applet to retrieve parameters from.
public void print(java.awt.Graphics g,
java.awt.Dimension d)
g
- The Graphics to print on.public void paint(java.awt.Graphics g)
g
- The Graphics to print on.public void setHeader(NFLabel header)
header
- The NFLabel to use as the header.public void setFooter(NFLabel footer)
footer
- The NFLabel to use as the footer.public void setLeftTitle(NFLabel title)
title
- The NFLabel to use as the left title.public void setRightTitle(NFLabel title)
title
- The NFLabel to use as the right title.public void setBackground(NFRegion region)
region
- The Region to use as the background.public void setScale(double scale)
scale
- The scale factor.public void setUseDoubleBuffer(boolean useDoubleBuffer)
The Microsoft VM experiences problems when double-buffering is used during the printing process, so you may want to setUseDoubleBuffer to false prior to printing inside of a Microsoft VM.
useDoubleBuffer
- Whether to enable double-buffering or not.public NFActiveRegion getActiveRegion()
public java.awt.Color defaultColor(int i)
i
- The index.public int getNoteSetIndex(NFActiveLabel label)
label
- The ActiveLabel to identify.public NFActiveLabel getNoteSetActiveLabel(int idx)
idx
- The index of the NoteSet.public int getLegendIndex(NFActiveLabel label)
label
- The ActiveLabel to identify.public int getLegendItemCount()
public NFActiveLabel getLegendActiveLabel(int idx)
idx
- The index of the Legend.public java.util.Vector getMetaData(java.lang.String name)
NOTE: The case of the name is insensitive.
name
- The name of the meta data.public java.util.Enumeration getMetaDataKeys()
public void putMetaData(java.lang.String name,
java.util.Vector value)
NOTE: The case of the name becomes insensitive.
name
- The name of the meta data.
value
- The value of the meta data.public void clearMetaData()
protected void dwellChanged()
public void update(java.util.Observable o,
java.lang.Object obj)
o
- The Observable making the update.
obj
- The Object parameter.
public boolean dwellDisplay(boolean onoff,
NFActiveLabel label)
When onoff is false, the label should be erased by one of the observers.
onoff
- true if the label is going to be drawn, false if its not.
label
- The ActiveLabel.
public boolean dwellPress(java.awt.Event evt,
int x,
int y,
NFActiveLabel label)
evt
- The Event.
x
- The x coordinate of the event.
y
- The y coordinate of the event.
label
- The ActiveLabel.protected void updateGraph()
protected void drawGraph(java.awt.Graphics g,
java.awt.Rectangle r)
The data displayed should be contained within the given rectangle, in the given graphics context, in order to prevent any overwriting of other graph elements.
g
- The Graphics to draw on.
r
- The area to draw in.protected void drawGraphLite(java.awt.Graphics g)
This method indicates only the last point should be drawn and no grids or axes need be updated.
g
- The Graphics to draw on.
public java.awt.Image drawImage(int width,
int height)
width
- The width to draw at.
height
- The height to draw at.public void updateData()
public void update(java.awt.Graphics g)
g
- The Graphics to update on.
public void update(java.awt.Graphics g,
java.awt.Rectangle r)
g
- The Graphics to update on.
r
- The area to draw in.public static java.lang.String getErrorMsg(java.lang.Exception e)
e
- The Exception.
public static java.lang.String getErrorMsg(java.lang.Exception e,
boolean clipPrefix)
e
- The Exception.
clipPrefix
- Whether to clip off the Exception name or not.protected void display()
protected void display(java.awt.Graphics g)
g
- The Graphics to diaply on.protected void display(boolean forceGraph)
forceGraph
- Whether to force a redraw or not.protected void reset()
public void clean()
public final void loadParams(java.applet.Applet app)
throws java.lang.Exception
app
- The Applet to load parameters from.
public final void loadParams(java.net.URL url)
throws java.lang.Exception
url
- The URL to load parameters from.
public final void loadParams(java.lang.String expr)
throws java.lang.Exception
expr
- The string of cdl to load parameters from.
public final void loadParams(java.lang.StringBuffer expr)
throws java.lang.Exception
expr
- The buffer of cdl to load parameters from.
public final void loadParams(java.lang.String param,
java.lang.Object data)
throws java.lang.Exception
param
- The parameter to load.
data
- The parameter value to load.
public final void loadParams(java.lang.String hostname,
int port,
java.lang.String args)
throws java.lang.Exception
hostname
- The ParamServer hostname.
port
- The ParamServer port.
args
- The ParamServer arguments.
public final void loadParams(NFCdf chart,
java.util.Vector errors)
throws java.lang.Exception
If "errors" is non-null, then all error messages will be appended to the vector.
chart
- The Cdf definition of a chart.
errors
- The Vector to append loading errors to.public java.util.Properties getRuntimeProperties()
public void setRuntimeProperties(java.util.Properties runtimeProperties)
protected void defineParams()
protected void loadParams()
throws java.lang.Exception
public void stop(java.applet.Applet a)
a
- The Applet stopping.public void start(java.applet.Applet a)
a
- The Applet starting.public void addDwellObserver(NFDwellObserver observer)
observer
- The NFDwellObserver to add.public void removeDwellObserver(NFDwellObserver observer)
observer
- The NFDwellObserver to remove.public void addObserver(java.lang.Object observer)
observer
- The Observer to add.public void removeObserver(java.lang.Object observer)
observer
- The Observer to remove.protected void notifyGraphObservers(java.awt.Graphics g)
g
- The Graphics the graph was drawn on.
protected boolean notifyGraphOffscreenObservers(java.awt.Image db,
java.awt.Graphics g,
boolean pre)
db
- The Image.
g
- The Graphics.
pre
- Pre or post the drawing operation.
public boolean abortPreDrag(double curX,
double curY,
double newX,
double newY)
curX
- The current X value.
curY
- The current Y value.
newX
- The new X value.
newY
- The new Y value.
public void notifyPostDrag(double newX,
double newY)
newX
- The new X value.
newY
- The new Y value.
public boolean mouseMove(java.awt.Event evt,
int x,
int y)
evt
- The Event.
x
- The x coordinate of the event.
y
- The y coordinate of the event.
public boolean mouseExit(java.awt.Event evt,
int x,
int y)
evt
- The Event.
x
- The x coordinate of the event.
y
- The y coordinate of the event.
public boolean mouseDown(java.awt.Event evt,
int x,
int y)
evt
- The Event.
x
- The x coordinate of the event.
y
- The y coordinate of the event.
public boolean mouseDrag(java.awt.Event evt,
int x,
int y)
evt
- The Event.
x
- The x coordinate of the event.
y
- The y coordinate of the event.
public boolean mouseUp(java.awt.Event evt,
int x,
int y)
evt
- The Event.
x
- The x coordinate of the event.
y
- The y coordinate of the event.
public boolean keyDown(java.awt.Event evt,
int key)
evt
- The Event.
key
- The key pressed.public boolean isZoomable()
protected void zoom(int x,
int y,
int width,
int height)
x
- The X coordinate of the selected area.
y
- The y coordinate of the selected area.
width
- The width of the selected area.
height
- The height of the selected area.public void zoomIn()
public void zoomOut()
public void zoomHome()
public void scroll(int direction)
direction
- The direction to scroll.public NFLoadParams getLoadParams()
public NFParam getParam()
public NFParse getParse()
public int getNoteSetIndex(NFNoteSet ns)
ns
- The NoteSet to search for.
public void setActiveLabel(NFLabel label,
java.lang.String name)
throws java.lang.Exception
label
- The NFLabel to use for the named ActiveLabel.
name
- The ActiveLabel parameter.
protected void addTitleActiveLabelParamInfo(NFLabel l,
java.lang.String param)
l
- The NFLabel to get the ActiveLabel from.
param
- The information regarding which parameter this Label is
associated with.public void clearActiveLabel(NFLabel label)
label
- The NFLabel to get the ActiveLabel from.public boolean reloadNeeded(java.util.Date timestamp)
timestamp
- The date to make the comparison against.
public void reload(NFCdf chart,
java.util.Vector errors)
throws java.lang.Exception
chart
- The Cdf definition to load the parameters from.
errors
- A vector to append any generated errors to.public java.lang.String getTextualDescription()
public void setGrouping(int size,
char symbol)
size
- The grouping size.
symbol
- The grouping symbol.public char getGroupSymbol()
public int getGroupSize()
public void setDecimalSymbol(char symbol)
symbol
- The symbol.public char getDecimalSymbol()
| 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 |