|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFGraph
netcharts.pro.common.zoomable.NFZoomableChart
public abstract class NFZoomableChart
Represents a chart that supports zomming.
Field Summary | |
---|---|
static int |
NOZOOM
No zooming action. |
static java.util.Hashtable |
zoomActionsMap
zoomActionsMap hashtable |
static int |
ZOOMIN
Zoom in action. |
static int |
ZOOMOUT
Zoom out action. |
Fields inherited from class netcharts.pro.common.NFGraph |
---|
ANTIALIAS_OFF, ANTIALIAS_ON, ANTIALIAS_ONDRAW, ANTIALIAS_ONTEXT, antiAliasModeMap, BAR, BAR3D, BOX, BUBBLE, COMBO, DIAGRAM, DIAL, DWELL_ANIMATION_STYLE_HIGHLIGHT, DWELL_ANIMATION_STYLE_NONE, FADE, HEATMAP, HIGHLIGHT, HISTOGRAM, LABEL_ANIMATION_STYLE_FADE, LABEL_ANIMATION_STYLE_NONE, LEGEND_ANIMATION_STYLE_FADE, LEGEND_ANIMATION_STYLE_NONE, LEGEND_DWELL_ANIMATION_STYLE_HIGHLIGHT, LEGEND_DWELL_ANIMATION_STYLE_NONE, LINE, MULTIPIE, PARETO, PIE, POLAR, RADAR, STOCK, STRIP, TIME, XY |
Constructor Summary | |
---|---|
NFZoomableChart()
Constructs a default chart object. |
|
NFZoomableChart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFZoomableChart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFZoomableChart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
Method Summary | |
---|---|
int |
getMouseControlDown()
Get the zoom action for the mouse down event with Control depressed. |
int |
getMouseMetaDown()
Get the zoom action for the mouse down event. |
int |
getMouseShiftDown()
Get the zoom action for the mouse down event with Shift depressed. |
boolean |
getZoomingEnabled()
Get whether zooming is enabled to not. |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setMouseControlDown(int zoomAction)
Set the zoom action for the mouse down event with Control depressed. |
void |
setMouseMetaDown(int zoomAction)
Set the zoom action for the mouse down event. |
void |
setMouseShiftDown(int zoomAction)
Set the zoom action for the mouse down event with Shift depressed. |
void |
setZoomingEnabled(boolean enabled)
Enable or disable zooming. |
void |
writeChart(java.lang.StringBuffer sb)
Writes this chart into a string buffer |
void |
writeExternal(java.io.ObjectOutput out)
Writes this chart into an object for serialization. |
void |
zoom(int x,
int y,
int w,
int h)
Zoom into the graph using a given rectangle. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NOZOOM
public static final int ZOOMIN
public static final int ZOOMOUT
public static java.util.Hashtable zoomActionsMap
Constructor Detail |
---|
public NFZoomableChart()
public NFZoomableChart(java.util.Properties initProperties)
initProperties
- A java.util.Properties object containing the set
of runtime properties to use when generating the chart. See the
netcharts.pro.common.NFGraph(java.util.Properties)
constructor
for a list of valid Properties.public NFZoomableChart(javax.swing.JPanel panel)
panel
- Panel to draw graph on.public NFZoomableChart(javax.swing.JPanel panel, java.util.Properties initProperties)
panel
- Panel to draw chart on.initProperties
- A java.util.Properties object containing the set
of runtime properties to use when generating the chart. See the
netcharts.pro.common.NFGraph(java.util.Properties)
constructor
for a list of valid Properties.Method Detail |
---|
public void setMouseMetaDown(int zoomAction)
If the value passed is not a valid zoom action an IllegalArgumentException will be thrown.
layout
- One of ZOOMIN, ZOOMOUT, NOZOOM
public int getMouseMetaDown()
ZOOMIN, ZOOMOUT, NOZOOM
public void setMouseShiftDown(int zoomAction)
If the value passed is not a valid zoom action an IllegalArgumentException will be thrown.
layout
- One of ZOOMIN, ZOOMOUT, NOZOOM
public int getMouseShiftDown()
ZOOMIN, ZOOMOUT, NOZOOM
public void setMouseControlDown(int zoomAction)
If the value passed is not a valid zoom action an IllegalArgumentException will be thrown.
layout
- One of ZOOMIN, ZOOMOUT, NOZOOM
public int getMouseControlDown()
ZOOMIN, ZOOMOUT, NOZOOM
public void setZoomingEnabled(boolean enabled)
enabled
- True to allow zooming, false to disable it.public boolean getZoomingEnabled()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class NFGraph
java.io.IOException
public void writeChart(java.lang.StringBuffer sb)
writeChart
in class NFGraph
public void resetState()
resetState
in class NFGraph
public void zoom(int x, int y, int w, int h)
x
- The x coordinatey
- The y coordinatewidth
- The widthheight
- The height
|
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 |