Class 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 Details

  • Constructor Details

  • Method Details

    • copy

      public void copy(PieChartRenderControls controls)
    • 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

      public void setStartAngle(double startAngle, AngleOption measure)
      sets the starting angle and measure simultaneously, for clarity
      Parameters:
      startAngle - the angle to establish as the new starting angle
      measure - the measure (degrees or radians) that angle is using
    • getStartAngleMeasure

      public AngleOption getStartAngleMeasure()
      Returns:
      the angle option (degrees or radians) used to measure the starting angle
    • setStartAngleMeasure

      public void setStartAngleMeasure(AngleOption measure)
      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

      public ColorContourRecord getRadialSumContour()
      Returns:
      the radial sum display contour
    • setRadialSumContour

      public void setRadialSumContour(ColorContourRecord contour)
      Parameters:
      contour - the contour to display the radial sum with
    • getRadialSumContourType

      public ColorContourType getRadialSumContourType()
      Returns:
      the radial sum display contour type
    • setRadialSumContourType

      public void setRadialSumContourType(ColorContourType contourType)
      Parameters:
      contourType - the contour type to display the radial sum with
    • jaxbCreateTask

      public static PieChartRenderControls jaxbCreateTask()
    • toXml

      public String toXml()
      Specified by:
      toXml in class ChartRenderControls<PieSliceRenderControls>
      Returns:
      an XML format string for storing render control information
    • fromXml

      public PieChartRenderControls fromXml(String buildStr)
      Description copied from class: ChartRenderControls
      reconstructs this object from its xml string format
      Specified by:
      fromXml in class ChartRenderControls<PieSliceRenderControls>
      Parameters:
      buildStr - the XML format string to reconstruct these render controls from
    • isRadialSumTextVisible

      public boolean isRadialSumTextVisible()
    • setRadialSumTextVisible

      public void setRadialSumTextVisible(boolean _radialSumTextVisible)