|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--netcharts.pro.common.NFGraph
|
+--netcharts.pro.common.circular.NFSizedChart
|
+--netcharts.pro.charts.dial.NFDialchart
The dialchart is based on a circle that has 0 degrees as North. Positive angles go clockwise and negative angles counterclockwise. When you specify angles, you can use both positive and negative values. For example, a dial's start angle could be -90 and its stop angle 90. Each DialChart can have multiple dials. Each dial can have multiple sectors and hands. The dial's tics and the dial's sectors can have labels. Furthermore, all sectors and hands can have Active Labels. You can set hands and sectors to enable dragging by users. Enabling dragging results in active modification of the sector or hand value.
| Field Summary | |
static int |
BOTTOM
Dial clip window in lower hemisphere. |
static int |
BOTTOMLEFT
Dial clip window in lower left quarter. |
static int |
BOTTOMRIGHT
Dial clip window in bottom right quarter. |
static java.util.Hashtable |
dialClipMap
The set of allowed dial clips. |
static int |
LEFT
Dial clip window in left hemisphere. |
static int |
NONE
None |
static int |
RIGHT
Dial clip window in right hemisphere. |
static int |
TOP
Dial clip window in top hemisphere. |
static int |
TOPLEFT
Dial clip window in upper left quarter. |
static int |
TOPRIGHT
Dial clip window in upper right quarter. |
| Fields inherited from class netcharts.pro.common.circular.NFSizedChart |
SIZE_MAX_HEIGHT_DEFAULT, SIZE_MAX_WIDTH_DEFAULT, SIZE_MIN_HEIGHT_DEFAULT, SIZE_MIN_WIDTH_DEFAULT |
| Fields inherited from class netcharts.pro.common.NFGraph |
ANTIALIAS_OFF, ANTIALIAS_ON, ANTIALIAS_ONDRAW, ANTIALIAS_ONTEXT, antiAliasModeMap, BAR, BOX, BUBBLE, COMBO, DIAGRAM, DIAL, HEATMAP, LINE, MULTIPIE, PARETO, PIE, POLAR, RADAR, STOCK, STRIP, TIME, XY |
| Constructor Summary | |
NFDialchart()
Constructs a default chart object. |
|
NFDialchart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFDialchart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFDialchart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
| Method Summary | |
void |
addDial(NFDial dial)
Adds a dial to the dial series. |
java.lang.String |
getDefaultData()
Gets the default data - used to initialize IDE editors |
NFDial |
getDial()
Gets the dial object for this chart. |
boolean |
getDialActiveLabelsEnabled()
Get whether or not popups over dials are enabled. |
int |
getDialClip()
Gets the location of the clip window of the dial chart. |
int |
getDialClipPad()
Gets the padding of the clip window of the dial chart. |
NFDialOuterBorder |
getDialOuterBorder()
Get the dial outer border attributes |
NFFillPattern |
getDialOuterFillPattern()
Get the dial outer fill pattern |
NFDialSeries |
getDialSeries()
Gets the dial objects for this chart. |
boolean |
getDialSquare()
Get dial square |
boolean |
getHandActiveLabelsEnabled()
Get whether or not popups over hands are enabled. |
boolean |
getSectorActiveLabelsEnabled()
Get whether or not popups over sectors are enabled. |
int |
getType()
Gets the type of this chart. |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setDial(NFDial dial)
Sets a dial object for this chart. |
void |
setDialActiveLabelsEnabled(boolean dialActiveLabelsEnabled)
Set enable popup labels over dials. |
void |
setDialClip(int dialClip)
Sets the location of the clip window of the dial chart. |
void |
setDialClipPad(int dialClipPad)
Sets the padding of the clip window of the dial chart. |
void |
setDialOuterBorder(NFDialOuterBorder dialOuterBorder)
Set the dial outer border attributes. |
void |
setDialOuterFillPattern(NFFillPattern dialOuterFillPattern)
Set the dial outer fill pattern. |
void |
setDialSeries(NFDialSeries dialSeries)
Sets the dial objects for this chart. |
void |
setDialSize(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
Set the minimum and maximum size of the Dialchart. |
void |
setDialSquare(boolean dialSquare)
Set dial square |
void |
setHandActiveLabelsEnabled(boolean handActiveLabelsEnabled)
Set enable popup labels over hands. |
void |
setSectorActiveLabelsEnabled(boolean sectorActiveLabelsEnabled)
Set enable popup labels over sectors. |
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. |
| Methods inherited from class netcharts.pro.common.circular.NFSizedChart |
getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NONE
public static final int TOPRIGHT
public static final int TOP
public static final int TOPLEFT
public static final int LEFT
public static final int BOTTOMLEFT
public static final int BOTTOM
public static final int BOTTOMRIGHT
public static final int RIGHT
public static java.util.Hashtable dialClipMap
NONE, TOP, BOTTOM, LEFT, RIGHT, TOPLEFT, TOPRIGHT, BOTTOMLEFT, BOTTOMRIGHT.| Constructor Detail |
public NFDialchart()
public NFDialchart(javax.swing.JPanel panel)
panel - Panel to draw chart on.public NFDialchart(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 NFDialchart(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 addDial(NFDial dial)
throws NFParamException
dial -
public void setDial(NFDial dial)
throws NFParamException
dial - public NFDial getDial()
public void setDialSeries(NFDialSeries dialSeries)
throws NFParamException
NFDialchart chart = new NFDialchart();
NFDialSeries ds = chart.getDialSeries();
NFDial dial = (NFDial)ds.elementAt(0);
// Set some of the properties on the NFDial
...
ds.setElementAt(dial, 0);
chart.setDialSeries(ds);
dialSeries - public NFDialSeries getDialSeries()
NFDialchart chart = new NFDialchart();
NFDialSeries ds = chart.getDialSeries();
NFDial dial = (NFDial)ds.elementAt(0);
// Set some of the properties on the NFDial
...
ds.setElementAt(dial, 0);
chart.setDialSeries(ds);
public void setDialClip(int dialClip)
NONE - The entire dial will be displayed. TOP - Only the top hemisphere of the dial will be displayed. BOTTOM - Only the bottom hemisphere of the dial will be displayed. LEFT - Only the left hemisphere of the dial will be displayed. RIGHT - Only the right hemisphere of the dial will be displayed. TOPLEFT - Only the top left quarter of the dial will be displayed. TOPRIGHT - Only the top right quarter of the dial will be displayed. BOTTOMLEFT - Only the bottom left quarter of the dial will be displayed. BOTTOMRIGHT - Only the bottom right quarter of the dial will be displayed.If the value passed is not a valid dial clip type an IllegalArgumentException will be thrown.
dialClip - One of NONE, TOP, BOTTOM, LEFT, RIGHT, TOPLEFT, TOPRIGHT, BOTTOMLEFT, BOTTOMRIGHTpublic void setDialClipPad(int dialClipPad)
dialClipPad - clip window paddingpublic int getDialClip()
NONE, TOP, BOTTOM, LEFT, RIGHT, TOPLEFT, TOPRIGHT, BOTTOMLEFT, BOTTOMRIGHT or
NONE if not defined.public int getDialClipPad()
public void setSectorActiveLabelsEnabled(boolean sectorActiveLabelsEnabled)
sectorActiveLabelsEnabled - When popups will appear over sectors of the chart.public boolean getSectorActiveLabelsEnabled()
public void setDialActiveLabelsEnabled(boolean dialActiveLabelsEnabled)
dialActiveLabelsEnabled - When popups will appear over dials of the chart.public boolean getDialActiveLabelsEnabled()
public void setHandActiveLabelsEnabled(boolean handActiveLabelsEnabled)
handActiveLabelsEnabled - When popups will appear over hands of the chart.public boolean getHandActiveLabelsEnabled()
public void setDialSquare(boolean dialSquare)
dialSquare - When true, the dial will always have a
consistent width and height. When false, the dial will
attempt to use all available width and heightpublic boolean getDialSquare()
public void setDialSize(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
throws NFParamException
minWidth - The minimum width of the Dialchart.minHeight - The minimum height of the Dialchart.maxWidth - The maximum width of the Dialchart.maxHeight - The maximum height of the Dialchart.public void setDialOuterBorder(NFDialOuterBorder dialOuterBorder)
dialOuterBorder - Dial outer border attributespublic NFDialOuterBorder getDialOuterBorder()
public void setDialOuterFillPattern(NFFillPattern dialOuterFillPattern)
dialOuterFillPattern - Dial outer fill patternpublic NFFillPattern getDialOuterFillPattern()
public java.lang.String getDefaultData()
getDefaultData in class NFGraphpublic int getType()
getType in class NFGraphnetcharts.pro.charts.dial.NFGraph.DIAL
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in class NFGraphpublic void writeChart(java.lang.StringBuffer sb)
writeChart in class NFSizedChartpublic void resetState()
resetState in class NFSizedChart
|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2006 |
Last Modified: Apr 14, 2006 |