Package hec.gfx2d.swing.charts.pie
Class PieChartRenderControls
java.lang.Object
hec.gfx2d.swing.charts.data.ChartRenderControls<PieSliceRenderControls>
hec.gfx2d.swing.charts.pie.PieChartRenderControls
- All Implemented Interfaces:
PropertyFireable,Serializable
public class PieChartRenderControls
extends ChartRenderControls<PieSliceRenderControls>
implements Serializable
Copyright (C) 2017 Hydrologic Engineering Center,
United States Army Corps of Engineers, All Rights Reserved
HEC-Java NEXGEN
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class hec.gfx2d.swing.charts.data.ChartRenderControls
_itemControls, PROPERTY_ITEM_CONTROLS, PROPERTY_LEGEND_SIDE, PROPERTY_ROUNDING_PRECISION, PROPERTY_ROUNDING_STYLE, PROPERTY_SHOW_LEGEND, PROPERTY_SHOW_THRESHOLD_VALUES, PROPERTY_SHOW_THRESHOLDS, PROPERTY_TITLE_COLOR, PROPERTY_TITLE_FONT, PROPERTY_TITLE_FORMAT, PROPERTY_UPDATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(PieChartRenderControls controls) reconstructs this object from its xml string formatdoublebooleanbooleanbooleanbooleanstatic PieChartRenderControlsvoidsetDrawClockwise(boolean drawClockwise) voidsetRadialSumContour(ColorContourRecord contour) voidsetRadialSumContourType(ColorContourType contourType) voidsetRadialSumTextVisible(boolean _radialSumTextVisible) voidsetShowRadialSum(boolean showRadialSum) voidsetSingleColorSum(boolean singleColorSum) voidsetStartAngle(double startAngle) voidsetStartAngle(double startAngle, AngleOption measure) sets the starting angle and measure simultaneously, for clarityvoidsetStartAngleMeasure(AngleOption measure) toXml()Methods inherited from class hec.gfx2d.swing.charts.data.ChartRenderControls
addListener, copy, fireUpdate, fireUpdate, getFooterColor, getFooterFont, getFooterFormat, getId, getItemControls, getLegendSide, getRoundingDecimals, getRoundingDigits, getRoundingPrecision, getRoundingSigFigs, getRoundingStyle, getSubtitleColor, getSubtitleFont, getSubtitleFormat, getThresholds, getTitleColor, getTitleFont, getTitleFormat, isFooterVisible, isShowLegend, isShowThresholds, isShowThresholdText, isSubtitleVisible, isTitleVisible, setFooterColor, setFooterFont, setFooterFormat, setFooterVisible, setItemControls, setLegendSide, setRoundingDecimals, setRoundingDigits, setRoundingPrecision, setRoundingSigFigs, setRoundingStyle, setShowLegend, setShowThresholds, setShowThresholdText, setSubtitleColor, setSubtitleFont, setSubtitleFormat, setSubtitleVisible, setThresholds, setTitleColor, setTitleFont, setTitleFormat, setTitleVisible
-
Field Details
-
PROPERTY_START_ANGLE
- See Also:
-
PROPERTY_START_ANGLE_MEASURE
- See Also:
-
PROPERTY_DRAW_CLOCKWISE
- See Also:
-
PROPERTY_SHOW_RADIAL_SUM
- See Also:
-
PROPERTY_RADIAL_SUM_TEXT_VISIBLE
- See Also:
-
PROPERTY_SINGLE_COLOR_SUM
- See Also:
-
PROPERTY_RADIAL_SUM_CONTOUR
- See Also:
-
PROPERTY_RADIAL_SUM_CONTOUR_TYPE
- See Also:
-
-
Constructor Details
-
PieChartRenderControls
-
PieChartRenderControls
-
-
Method Details
-
copy
-
isDrawClockwise
public boolean isDrawClockwise()- Returns:
- the clockwise drawing flag
-
setDrawClockwise
public void setDrawClockwise(boolean drawClockwise) - Parameters:
drawClockwise- the flag which causes slices to draw in the clockwise direction
-
getStartAngle
public double getStartAngle()- Returns:
- the starting angle (in degrees or radians)
-
setStartAngle
public void setStartAngle(double startAngle) - Parameters:
startAngle- the angle at which to start drawing (measured by the current angle measure)
-
setStartAngle
sets the starting angle and measure simultaneously, for clarity- Parameters:
startAngle- the angle to establish as the new starting anglemeasure- the measure (degrees or radians) that angle is using
-
getStartAngleMeasure
- Returns:
- the angle option (degrees or radians) used to measure the starting angle
-
setStartAngleMeasure
- Parameters:
measure- the angle option (degrees or radians) to set as the new starting angle measure
-
isShowRadialSum
public boolean isShowRadialSum()- Returns:
- the radial sum visibility status
-
setShowRadialSum
public void setShowRadialSum(boolean showRadialSum) - Parameters:
showRadialSum- the visibility state of the radial sum
-
isSingleColorSum
public boolean isSingleColorSum()- Returns:
- whether the sum is determining a single use color from its contour
-
setSingleColorSum
public void setSingleColorSum(boolean singleColorSum) - Parameters:
singleColorSum- whether the sum should use one color determined by its contour
-
getRadialSumContour
- Returns:
- the radial sum display contour
-
setRadialSumContour
- Parameters:
contour- the contour to display the radial sum with
-
getRadialSumContourType
- Returns:
- the radial sum display contour type
-
setRadialSumContourType
- Parameters:
contourType- the contour type to display the radial sum with
-
jaxbCreateTask
-
toXml
- Specified by:
toXmlin classChartRenderControls<PieSliceRenderControls>- Returns:
- an XML format string for storing render control information
-
fromXml
Description copied from class:ChartRenderControlsreconstructs this object from its xml string format- Specified by:
fromXmlin classChartRenderControls<PieSliceRenderControls>- Parameters:
buildStr- the XML format string to reconstruct these render controls from
-
isRadialSumTextVisible
public boolean isRadialSumTextVisible() -
setRadialSumTextVisible
public void setRadialSumTextVisible(boolean _radialSumTextVisible)
-