|
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.circular.NFSizedChart
netcharts.pro.charts.dial.NFDialchart
public class 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 |
HAND_ANIMATION_STYLE_FADE
Hand animation style fade |
static int |
HAND_ANIMATION_STYLE_GROW
Hand animation style grow |
static int |
HAND_ANIMATION_STYLE_NONE
No hand animation |
static int |
LEFT
Dial clip window in left hemisphere. |
static int |
NONE
None |
static int |
RIGHT
Dial clip window in right hemisphere. |
static int |
SECTOR_ANIMATION_STYLE_FADE
Sector animation style fade |
static int |
SECTOR_ANIMATION_STYLE_GROW
Sector animation style grow |
static int |
SECTOR_ANIMATION_STYLE_NONE
No sector animation style |
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, 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 | |
---|---|
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. |
int |
getHandAnimationStyle()
Get the hand animation style. |
NFLine |
getHandButtonBorder()
Get the border for the hand button |
NFCircularEdgeHighlightSeries |
getHandButtonEdgeHighlightSeries()
Get the hand edge highlight series. |
NFDropShadow |
getHandDropShadow()
Get the drop shadow for the hands |
boolean |
getSectorActiveLabelsEnabled()
Get whether or not popups over sectors are enabled. |
int |
getSectorAnimationStyle()
Get the sector animation style. |
NFCircularEdgeHighlightSeries |
getSectorEdgeHighlightSeries()
Get the sector edge highlight series. |
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 |
setHandAnimationStyle(int style)
Set the hand animation style. |
void |
setHandButtonBorder(NFLine handButtonBorder)
Set the border for the hand button |
void |
setHandButtonEdgeHighlightSeries(NFCircularEdgeHighlightSeries handButtonEdgeHighlightSeries)
Set the hand edge highlight series. |
void |
setHandDropShadow(NFDropShadow handDropShadow)
Set the drop shadow for the hands |
void |
setSectorActiveLabelsEnabled(boolean sectorActiveLabelsEnabled)
Set enable popup labels over sectors. |
void |
setSectorAnimationStyle(int style)
Set the sector animation style. |
void |
setSectorEdgeHighlightSeries(NFCircularEdgeHighlightSeries sectorEdgeHighlightSeries)
Set the sector edge highlight series. |
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 HAND_ANIMATION_STYLE_NONE
public static final int HAND_ANIMATION_STYLE_GROW
public static final int HAND_ANIMATION_STYLE_FADE
public static final int SECTOR_ANIMATION_STYLE_NONE
public static final int SECTOR_ANIMATION_STYLE_GROW
public static final int SECTOR_ANIMATION_STYLE_FADE
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
-
NFParamException
public void setDial(NFDial dial) throws NFParamException
dial
-
NFParamException
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
-
NFParamException
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, BOTTOMRIGHT
public 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.
NFParamException
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 void setHandAnimationStyle(int style)
If the value passed is not a valid hand animation style then HAND_ANIMATION_STYLE_NONE will be used
style
- One Of HAND_ANIMATION_STYLE_NONE (default), HAND_ANIMATION_STYLE_GROW, HAND_ANIMATION_STYLE_FADE
public int getHandAnimationStyle()
HAND_ANIMATION_STYLE_NONE, HAND_ANIMATION_STYLE_GROW, HAND_ANIMATION_STYLE_FADE
or
HAND_ANIMATION_STYLE_NONE
if not defined.public void setSectorAnimationStyle(int style)
If the value passed is not a valid sector animation style then SECTOR_ANIMATION_STYLE_NONE will be used
style
- One Of SECTOR_ANIMATION_STYLE_NONE (default), SECTOR_ANIMATION_STYLE_GROW, SECTOR_ANIMATION_STYLE_FADE
public int getSectorAnimationStyle()
SECTOR_ANIMATION_STYLE_NONE, SECTOR_ANIMATION_STYLE_GROW, SECTOR_ANIMATION_STYLE_FADE
or
SECTOR_ANIMATION_STYLE_NONE
if not defined.public void setHandDropShadow(NFDropShadow handDropShadow)
handDropShadow
- The drop shadow to use under the handspublic NFDropShadow getHandDropShadow()
public void setHandButtonBorder(NFLine handButtonBorder)
handButtonBorder
- The border for the hand buttonpublic NFLine getHandButtonBorder()
public void setHandButtonEdgeHighlightSeries(NFCircularEdgeHighlightSeries handButtonEdgeHighlightSeries)
handButtonEdgeHighlightSeries
- The series of hand edge highlightspublic NFCircularEdgeHighlightSeries getHandButtonEdgeHighlightSeries()
public void setSectorEdgeHighlightSeries(NFCircularEdgeHighlightSeries sectorEdgeHighlightSeries)
sectorEdgeHighlightSeries
- The series of sector edge highlightspublic NFCircularEdgeHighlightSeries getSectorEdgeHighlightSeries()
public java.lang.String getDefaultData()
getDefaultData
in class NFGraph
public int getType()
getType
in class NFGraph
netcharts.pro.charts.dial.NFGraph.DIAL
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 NFSizedChart
public void resetState()
resetState
in class NFSizedChart
|
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 |