public class DialChart extends AbstractChart
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
antialias, backgroundBounds, backgroundFillColor, backgroundGradient, backgroundGradientColor, backgroundGradientFactory, backgroundOutlineColor, backgroundStroke, backgroundVisible, box, chartPane, fixedValueCount, format, gradient, gradientColor, highlightBackground, highlightForeground, iconHeight, iconWidth, legendFont, legendLayout, legendOrientation, legendPane, lowerLimit, max, min, proportions, proportionsOfRange, proportionsOfSum, publishedElements, range, selectedColor, selectedOffset, selectedStroke, shadowOffset, shapeStructs, sortComparator, stroke, sum, textGap, titleLabel, unit, upperLimit, valueTextCenter, valueTextColor, valueTextFont, valueTextPosition, valueTextVisible, visibleFilters, xGap, yGap
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
DialChart()
Creates a new
DialChart object |
DialChart(java.util.List items)
Creates a new
DialChart object initialized with an explicit
list |
DialChart(java.util.List items,
java.lang.String title)
Creates a new
DialChart object initialized with an explicit
list and a title. |
DialChart(java.util.List items,
java.lang.String title,
java.awt.Color backgroundColor)
Creates a new
DialChart object initialized with an explicit
list, a title and a background color. |
DialChart(java.util.List items,
java.lang.String title,
java.awt.Color backgroundColor,
java.awt.Color foregroundColor)
Creates a new
DialChart object initialized with an explicit
list, a title, a background color and a foreground color. |
DialChart(TDataBox box)
Creates a new
DialChart object initialized an explicit data box |
DialChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor)
Creates a new
DialChart object initialized with an explicit
data box,a title and a background color. |
DialChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor,
java.awt.Color foregroundColor)
Creates a new
DialChart object initialized with an explicit
data box,a title , a background color and a foreground color. |
Modifier and Type | Method and Description |
---|---|
protected void |
calculate()
An abstract method that will be called when this chart is publishing data,
The subclass overrides this method to calculate some values.
|
void |
exportSVG(java.lang.String fileName,
int width,
int height) |
protected double |
getActualBallSize()
Gets the actual size of the ball.
|
double |
getArcRange()
Gets the range of the arc in the arc type dial chart.
|
java.awt.Color |
getBallBorderColor()
Gets the border color of the ball of this chart.
|
java.awt.Color |
getBallColor()
Gets the ball color of this chart.
|
java.awt.Color |
getBallGradientColor()
Gets the gradient color of the ball.
|
int |
getBallGradientFactory()
Gets the gradient factory of the ball.
|
double |
getBallPercentSize()
Gets the percent size of the ball.
|
double |
getBallSize()
Gets the ball size of this chart.
|
int |
getDialType()
Gets the type of the dial chart.
|
double |
getEndAngle()
Gets the value of the end angle of this chart.
|
double |
getHandLegth(Element element)
Gets the length of the element.
|
int |
getHandStyle(Element element)
Gets the hand style of the element.
|
java.util.List |
getMarkers()
Gets the markers of this chart.
|
double |
getMaxValue()
Gets the maximal value of this chart.
|
double |
getMinValue()
Gets the minimal value of this chart.
|
java.awt.Color |
getRingBorderColor()
Gets the ring border color of this chart.
|
java.awt.Rectangle |
getRingBound()
Gets the ring bound.
|
java.awt.Color |
getRingColor()
Gets the color of the ring of this chart.
|
java.awt.Color |
getRingFillColor()
Gets the fill color of this chart panel.
|
java.awt.Color |
getRingGradientColor()
Gets the gradient color of the ring.
|
int |
getRingGradientFactory()
Gets the gradient factory of the ring.
|
java.lang.String |
getRingStroke()
Gets the stroke of the ring of this chart.
|
java.awt.Color |
getScaleColor()
Gets the color of the scale of this chart.
|
double |
getScaleLength()
Gets the length of the scale of the chart.
|
int |
getScaleMajorCount()
Gets the major count of the scale of this chart.
|
int |
getScaleMinorCount()
Gets the minor scale number of this chart.
|
java.lang.String |
getScaleStroke()
Gets the stroke of the scale of this chart.
|
int |
getScaleStyle()
Gets the scale style of this chart.
|
java.awt.Color |
getScaleTextColor()
Gets the color of the scale text.
|
java.awt.Font |
getScaleTextFont()
Gets the font of the scale text of this chart.
|
protected java.lang.String |
getScaleValueText(int index,
double valueRange,
int scaleMajorCount)
Gets the scale value text
|
double |
getStartAngle()
Gets the value of the start angle of this chart.
|
java.lang.String |
getToolTipText(Element element)
Gets the tooltip text of a specified
Element object. |
boolean |
isBallGradient()
Gets whether the ball is gradient.
|
boolean |
isRingBorderVisible()
Determines whether the border of the ring of this chart is visible
|
boolean |
isRingGradient()
Determines whether the fill color of the ring is gradient.
|
boolean |
isScaleInside()
Determines whether the scale of this chart is shown inside the ring.
|
boolean |
isScaleMinorVisible()
Determines whether the minor scale of this chart is visible.
|
boolean |
isScaleMinTextVisible()
Gets whether the minimal text scale is visible.
|
boolean |
isScaleTextVisible()
Determines whether the scale text of this chart is visible.
|
void |
paintChart(java.awt.Graphics2D g2d,
int width,
int height)
Paints the dial chart in the g2d context with the width and height.
|
void |
setArcRange(double arcRange)
Sets the range of the arc in the arc type dial chart.
|
void |
setBallBorderColor(java.awt.Color ballBorderColor)
Sets the color for the border of the ball of this chart.
|
void |
setBallColor(java.awt.Color ballColor)
Sets the color for the ball of this chart.
|
void |
setBallGradient(boolean ballGradient)
Sets whether the ball is gradient.
|
void |
setBallGradientColor(java.awt.Color ballGradientColor)
Sets the gradient color for the ball.
|
void |
setBallGradientFactory(int ballGradientFactory)
Sets the gradient factory for the ball.
|
void |
setBallPercentSize(double ballPercentSize)
Sets the percent size of the ball, if ballPercentSize is greater than 0,
the size of the ball will use the ballPercentSize.
|
void |
setBallSize(double ballSize)
Sets the size for the ball of this chart.
|
protected void |
setChartSVGAttribute(AbstractSVGChart absChart) |
void |
setDialType(int dialType)
Sets the type of the dial chart.
|
void |
setEndAngle(double endAngle)
Sets the value for the end angle of this chart.
|
void |
setMarkers(java.util.List markers)
Sets the marker for this chart.
|
void |
setMaxValue(double maxValue)
Sets the maximal value for this chart.
|
void |
setMinValue(double minValue)
Sets the value for the minimal value of this chart.
|
void |
setRingBorderColor(java.awt.Color ringBorderColor)
Sets a new ring border color for this chart.
|
void |
setRingBorderVisible(boolean ringBorderVisible)
Sets whether the border of the ring of this chart should be visible.
|
void |
setRingColor(java.awt.Color ringColor)
Sets the color for the ring of this chart.
|
void |
setRingFillColor(java.awt.Color fillColor)
Sets a new fill color for this chart.
|
void |
setRingGradient(boolean ringGradient)
Sets whether the fill color of the ring should be gradient.
|
void |
setRingGradientColor(java.awt.Color ringGradientColor)
Sets the gradient color of the ring.
|
void |
setRingGradientFactory(int ringGradientFactory)
Sets the gradient factory of the ring .
|
void |
setRingStroke(java.lang.String ringStroke)
Sets the stroke for the ring of this chart.
|
void |
setScaleColor(java.awt.Color scaleColor)
Sets the color for the scale of this chart.
|
void |
setScaleInside(boolean scaleInside)
Sets whether the scale of this chart should be shown inside the ring.
|
void |
setScaleLength(double scaleLength)
Sets the length for the scale of the chart.
|
void |
setScaleMajorCount(int scaleMajorCount)
Sets a new major count for the scale of this chart.
|
void |
setScaleMinorCount(int scaleMinorNumber)
Sets the minor scale number of this chart.
|
void |
setScaleMinorVisible(boolean scaleMinorVisible)
Sets whether the minor scale of this chart should be visible.
|
void |
setScaleMinTextVisible(boolean scaleMinTextVisible)
Sets whether the minimal text scale should be visible.
|
void |
setScaleStroke(java.lang.String scaleStroke)
Sets the stroke for the scale of this chart.
|
void |
setScaleStyle(int scaleStyle)
Sets the style for the scale of this chart.
|
void |
setScaleTextColor(java.awt.Color scaleTextColor)
Sets the color for the scale text.
|
void |
setScaleTextFont(java.awt.Font scaleTextFont)
Sets the font for the scale of this chart.
|
void |
setScaleTextVisible(boolean scaleTextVisible)
Sets whether the scale text of this chart should be visible.
|
void |
setStartAngle(double startAngle)
Sets the value for the start angle of this chart.
|
addElementClickedActionListener, addElementDoubleClickedActionListener, addItem, addSelectableFilter, addVisibleFilter, cleanDirtyState, clearItems, clearSelectableFilters, exportImage, exportImage, exportSVG, exportToImageIcon, fireElementClicked, fireElementDoubleClicked, getBackgroundBounds, getBackgroundFillColor, getBackgroundGradientColor, getBackgroundGradientFactory, getBackgroundOutlineColor, getBackgroundStroke, getChartPane, getColor, getDataBox, getElementAt, getElementClickedActionListeners, getElementDoubleClickedActionListeners, getFormat, getFormat, getFormatedText, getFormatedText, getGradientColor, getGradientColor, getHighlightBackground, getHighlightForeground, getIconHeight, getIconWidth, getItemByIndex, getItemCount, getItems, getLegendElements, getLegendFont, getLegendLabel, getLegendLayout, getLegendOrientation, getLegendPane, getLowerLimit, getMax, getMaxZoom, getMin, getMinZoom, getPopupMenuGenerator, getPublishedElements, getSelectableFilters, getSelectedColor, getSelectedColor, getSelectedOffset, getSelectedStroke, getSelectedStroke, getShadowOffset, getShapeStructAt, getSortComparator, getStroke, getStroke, getTextGap, getTitle, getTitleLabel, getUnit, getUpperLimit, getValue, getValues, getValueTextColor, getValueTextFont, getValueTextPosition, getVisibleFilters, getXGap, getXTranslate, getXZoom, getYGap, getYTranslate, getYZoom, getZoomIncrement, isAntialias, isBackgroundGradient, isBackgroundVisible, isClearSelectionOnMarginClicked, isEnableDoubleClickToReset, isEnableToolTipText, isEnableXTranslate, isEnableXZoom, isEnableYTranslate, isEnableYZoom, isGradient, isIteratorByHiberarchy, isLazyPublishMode, isLocked, isSelectable, isSelectableOnRightClick, isValueTextCenter, isValueTextVisible, isVisible, lock, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, paint, paintBackground, paintComponent, publishData, publishData, removeElementClickedActionListener, removeElementDoubleClickedActionListener, removeItem, removeSelectableFilter, removeVisibleFilter, reset, setAntialias, setBackgroundFillColor, setBackgroundGradient, setBackgroundGradientColor, setBackgroundGradientFactory, setBackgroundOutlineColor, setBackgroundStroke, setBackgroundVisible, setClearSelectionOnMarginClicked, setDataBox, setEnableDoubleClickToReset, setEnableToolTipText, setEnableXTranslate, setEnableXZoom, setEnableYTranslate, setEnableYZoom, setForeground, setFormat, setGradient, setGradientColor, setHighlightBackground, setHighlightForeground, setIconHeight, setIconWidth, setItems, setIteratorByHiberarchy, setLazyPublishMode, setLegendFont, setLegendLayout, setLegendOrientation, setLowerLimit, setMaxZoom, setMinZoom, setPopupMenuGenerator, setSelectableOnRightClick, setSelectedColor, setSelectedOffset, setSelectedStroke, setShadowOffset, setSortComparator, setStroke, setTextGap, setTitle, setTranslate, setUnit, setUpperLimit, setValueTextCenter, setValueTextColor, setValueTextFont, setValueTextPosition, setValueTextVisible, setXGap, setXTranslate, setXZoom, setYGap, setYTranslate, setYZoom, setZoomIncrement, unlock, updateTViewUI, zoomIn, zoomOut
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public DialChart()
DialChart
objectpublic DialChart(TDataBox box)
DialChart
object initialized an explicit data boxbox
- an explicit data boxpublic DialChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor)
DialChart
object initialized with an explicit
data box,a title and a background color.box
- an explicit data box object.title
- a String
titlebackgroundColor
- a background Color
objectpublic DialChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor, java.awt.Color foregroundColor)
DialChart
object initialized with an explicit
data box,a title , a background color and a foreground color.box
- an explicit data box object.title
- a String
titlebackgroundColor
- a background Color
objectforegroundColor
- a foreground Color
objectpublic DialChart(java.util.List items)
DialChart
object initialized with an explicit
listitems
- an explicit listpublic DialChart(java.util.List items, java.lang.String title)
DialChart
object initialized with an explicit
list and a title.items
- an explicit listtitle
- a title textpublic DialChart(java.util.List items, java.lang.String title, java.awt.Color backgroundColor)
DialChart
object initialized with an explicit
list, a title and a background color.items
- an explicit listtitle
- a String
textbackgroundColor
- a background Color
public DialChart(java.util.List items, java.lang.String title, java.awt.Color backgroundColor, java.awt.Color foregroundColor)
DialChart
object initialized with an explicit
list, a title, a background color and a foreground color.items
- an explicit listtitle
- a String
textbackgroundColor
- a background Color
foreroundColor
- a foreground Color
protected void calculate()
AbstractChart
calculate
in class AbstractChart
public void paintChart(java.awt.Graphics2D g2d, int width, int height)
paintChart
in class AbstractChart
g2d
- the Graphics
context in which to paintwidth
- the width of the chart panel.height
- the height of the chart panel.protected java.lang.String getScaleValueText(int index, double valueRange, int scaleMajorCount)
index
- the index of the scalevalueRange
- the scale value rangescaleMajorCount
- the scale major countprotected double getActualBallSize()
public java.lang.String getToolTipText(Element element)
AbstractChart
Element
object.getToolTipText
in class AbstractChart
element
- a specified Element
objectpublic double getHandLegth(Element element)
element
- public int getHandStyle(Element element)
element
- public java.util.List getMarkers()
setMarkers(List)
public void setMarkers(java.util.List markers)
markers
- the marker for this chart.getMarkers()
public boolean isScaleInside()
setScaleInside(boolean)
public void setScaleInside(boolean scaleInside)
scaleInside
- if true the scale should be shown inside the ring,false otherwise.isScaleInside()
public double getStartAngle()
setStartAngle(double)
public void setStartAngle(double startAngle)
startAngle
- the value for the start angle of this chart.getStartAngle()
public double getEndAngle()
setEndAngle(double)
public void setEndAngle(double endAngle)
endAngle
- the value for the end angle of this chart.getEndAngle()
public double getMaxValue()
setMaxValue(double)
public void setMaxValue(double maxValue)
maxValue
- the maximal value for this chart.getMaxValue()
public double getMinValue()
setMinValue(double)
public void setMinValue(double minValue)
minValue
- the value for the minimal value of this chart.getMinValue()
public double getScaleLength()
setScaleLength(double)
public void setScaleLength(double scaleLength)
scaleLength
- the length for the scale of the chart.getScaleLength()
public java.lang.String getRingStroke()
setRingStroke(String)
public void setRingStroke(java.lang.String ringStroke)
ringStroke
- the stroke for the ring of this chart.getRingStroke()
public java.awt.Color getRingColor()
setRingColor(Color)
public void setRingColor(java.awt.Color ringColor)
ringColor
- the color for the ring of this chart.getRingColor()
public java.lang.String getScaleStroke()
setScaleStroke(String)
public void setScaleStroke(java.lang.String scaleStroke)
scaleStroke
- the stroke for the scale of this chart.getScaleStroke()
public java.awt.Color getScaleColor()
setScaleColor(Color)
public void setScaleColor(java.awt.Color scaleColor)
scaleColor
- the color for the scale of this chart.getScaleColor()
public java.awt.Color getRingBorderColor()
setRingBorderColor(Color)
public void setRingBorderColor(java.awt.Color ringBorderColor)
ringBorderColor
- A new ring border color for this chart.getRingBorderColor()
public boolean isScaleTextVisible()
setScaleTextVisible(boolean)
public void setScaleTextVisible(boolean scaleTextVisible)
scaleTextVisible
- if true the scale text should be visible,false otherwise.setScaleTextVisible(boolean)
public int getScaleMajorCount()
#setSetScaleMajorCount(int)
public void setScaleMajorCount(int scaleMajorCount)
scaleMajorCount
- a new major count for the scale of this chartgetScaleMajorCount()
public boolean isScaleMinorVisible()
setScaleMinorVisible(boolean)
public void setScaleMinorVisible(boolean scaleMinorVisible)
scaleMinorVisible
- if true the minor scale of this chart should be visible,false otherwise.isScaleMinorVisible()
public java.awt.Color getBallBorderColor()
setBallBorderColor(Color)
public void setBallBorderColor(java.awt.Color ballBorderColor)
ballBorderColor
- the color for the border of the ball of this chart.getBallBorderColor()
public double getBallSize()
setBallSize(double)
public void setBallSize(double ballSize)
ballSize
- The size for the ball of this chart.setBallPercentSize(double)
,
getBallSize()
public int getScaleStyle()
setScaleStyle(int)
public void setScaleStyle(int scaleStyle)
TWaverConst.DIAL_SCALE_STYLE_LINE
TWaverConst.DIAL_SCALE_STYLE_BALL
scaleStyle
- The style for the scale of this chart.getScaleStyle()
public java.awt.Color getBallColor()
setBallColor(Color)
public void setBallColor(java.awt.Color ballColor)
ballColor
- the color for the ball of this chart.getBallColor()
public int getScaleMinorCount()
#setScaleMinorNumber(int)
public void setScaleMinorCount(int scaleMinorNumber)
scaleMinorNumber
- the minor scale number of this chart.#getScaleMinorNumber()
public boolean isRingBorderVisible()
setRingBorderVisible(boolean)
public void setRingBorderVisible(boolean ringBorderVisible)
ringBorderVisible
- if true if border of the ring of this chart should be visible,false otherwise.isRingBorderVisible()
public java.awt.Color getRingFillColor()
setRingFillColor(Color)
public void setRingFillColor(java.awt.Color fillColor)
ringFillColor
- a new Color
object for the fill color of this chartgetRingFillColor()
public boolean isRingGradient()
setRingGradient(boolean)
public void setRingGradient(boolean ringGradient)
gradient
- if true the ring should be filled with gradient color, false otherwise.isRingGradient()
public java.awt.Color getBallGradientColor()
setBallGradientColor(Color)
public void setBallGradientColor(java.awt.Color ballGradientColor)
ballGradientColor
- the gradient color for the ball.getBallGradientColor()
public boolean isBallGradient()
setBallGradient(boolean)
public void setBallGradient(boolean ballGradient)
ballGradient
- if true the ball is gradient, false otherwise.isBallGradient()
public int getRingGradientFactory()
setRingGradientFactory(int)
public void setRingGradientFactory(int ringGradientFactory)
ringGradientFactory
- the gradient factory of the ring.getRingGradientFactory()
public int getBallGradientFactory()
setBallGradientFactory(int)
public void setBallGradientFactory(int ballGradientFactory)
ballGradientFactory
- the gradient factory for the ball.getBallGradientFactory()
public java.awt.Color getRingGradientColor()
setRingGradientColor(Color)
public void setRingGradientColor(java.awt.Color ringGradientColor)
The
- gradient color of the ring.getRingGradientColor()
public boolean isScaleMinTextVisible()
setScaleMinTextVisible(boolean)
public void setScaleMinTextVisible(boolean scaleMinTextVisible)
If
- true the minimal text scale should be visible, false otherwise.isScaleMinTextVisible()
public java.awt.Rectangle getRingBound()
public java.awt.Color getScaleTextColor()
setScaleTextColor(Color)
public void setScaleTextColor(java.awt.Color scaleTextColor)
The
- color for the scale text.getScaleTextColor()
public java.awt.Font getScaleTextFont()
setScaleTextFont(Font)
public void setScaleTextFont(java.awt.Font scaleTextFont)
scaleTextFont
- the font for the scale of this chart.getScaleTextFont()
public void setArcRange(double arcRange)
arcRange
- The range of the arc in the arc type dial chart.getArcRange()
public double getArcRange()
setArcRange(double)
public int getDialType()
setDialType(int)
public void setDialType(int dialType)
TWaverConst.DIAL_TYPE_WHOLE
TWaverConst.DIAL_TYPE_ARC
dialType
- public double getBallPercentSize()
setBallPercentSize(double)
,
setBallSize(double);
,
getBallSize()
public void setBallPercentSize(double ballPercentSize)
ballPercentSize
- the percent size of the ball.setBallSize(double)
,
getBallSize()
,
setBallPercentSize(double)
protected void setChartSVGAttribute(AbstractSVGChart absChart)
setChartSVGAttribute
in class AbstractChart
public void exportSVG(java.lang.String fileName, int width, int height)
exportSVG
in class AbstractChart
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.