Class ScaleContext

java.lang.Object
org.eclipse.birt.chart.computation.Methods
org.eclipse.birt.chart.computation.withaxes.ScaleContext
All Implemented Interfaces:
IConstants

public class ScaleContext extends Methods
Scale context for min/max computation.
  • Constructor Details

    • ScaleContext

      public ScaleContext(int iMarginPercent, int iType)
    • ScaleContext

      public ScaleContext(int iMarginPercent, int iType, Object oUnit, Object oMinValue, Object oMaxValue, Object oStep)
    • ScaleContext

      public ScaleContext(int iMarginPercent, int iType, Object oMinAuto, Object oMaxAuto, Object oStep)
  • Method Details

    • copy

      public ScaleContext copy()
    • updateShared

      public void updateShared(ScaleContext that)
      Parameters:
      that -
    • createSimpleScale

      public static ScaleContext createSimpleScale(Object oMin, Object oMax)
      Creates a simple instance of scale. Note that this instance is just used to store min/max and can not be computed directly.
      Parameters:
      oMin -
      oMax -
      Since:
      2.3
    • setFixedValue

      public void setFixedValue(boolean bMinimumFixed, boolean bMaximumFixed, Object oMinFixed, Object oMaxFixed)
    • setFixedStep

      public void setFixedStep(boolean bStepFixed, Integer oStepNumber)
    • getMin

      public Object getMin()
      Returns the minimum of the scale
      Returns:
      the minimum of the scale
    • setMin

      public void setMin(Object oMin)
    • getMax

      public Object getMax()
      Returns the maximum of the scale
      Returns:
      the maximum of the scale
    • setMax

      public void setMax(Object oMax)
    • getMinWithMargin

      public Object getMinWithMargin()
      Returns the minimum plus margin. Margin means extra space for rendering and clipping. If margin is 0, or no margin needed, return null.
      Returns:
      the minimum plus margin. If no margin, return null.
    • setMinWithMargin

      public void setMinWithMargin(Object oMinAuto)
    • getMaxWithMargin

      public Object getMaxWithMargin()
      Returns the maximum plus margin. Margin means extra space for rendering and clipping. If margin is 0, or no margin needed, return null.
      Returns:
      the maximum plus margin. If no margin, return null.
    • setMaxWithMargin

      public void setMaxWithMargin(Object oMaxAuto)
    • getStep

      public Object getStep()
    • setStep

      public void setStep(Object oStep)
    • getStepNumber

      public Integer getStepNumber()
    • setStepNumber

      public void setStepNumber(Integer oStepNumber)
    • computeMinMax

      public void computeMinMax()
    • computeMinMax

      public void computeMinMax(boolean bAlignZero)
    • getUnit

      public Object getUnit()
      Returns:
      Returns the iUnit.
    • setUnit

      public void setUnit(Object oUnit)
    • isExpandMinmax

      public boolean isExpandMinmax()
      Returns:
      Returns the bExpandMinmax.
    • setExpandMinmax

      public void setExpandMinmax(boolean expandMinmax)
      Parameters:
      expandMinmax - The bExpandMinmax to set.