org.eclipse.birt.chart.computation
Class DataPointHints

java.lang.Object
  extended by org.eclipse.birt.chart.computation.DataPointHints

public final class DataPointHints
extends java.lang.Object

Holds the information necessary to render a DataPoint Label


Constructor Summary
DataPointHints(java.lang.Object _oBaseValue, java.lang.Object _oOrthogonalValue, java.lang.Object _oSeriesValue, java.lang.Object _oPercentileValue, DataPoint _dp, FormatSpecifier _fsBase, FormatSpecifier _fsOrthogonal, FormatSpecifier _fsSeries, FormatSpecifier _fsPercentile, int _idx, Location _lo, double[] _dSize, RunTimeContext _rtc)
          The constructor.
DataPointHints(java.lang.Object _oBaseValue, java.lang.Object _oOrthogonalValue, java.lang.Object _oSeriesValue, java.lang.Object _oPercentileValue, DataPoint _dp, FormatSpecifier _fsBase, FormatSpecifier _fsOrthogonal, FormatSpecifier _fsSeries, FormatSpecifier _fsPercentile, int _idx, Location _lo, double _dSize, RunTimeContext _rtc)
          DataPointHints constructor.
 
Method Summary
 void accumulate(java.lang.Object _oBaseValue, java.lang.Object _oOrthogonalValue, java.lang.Object _oSeriesValue, java.lang.Object _oPercentileOrthogonalValue)
          Accumulates values to current DataPointHintes.
 java.lang.String getBaseDisplayValue()
          Returns the base display value of current DataPointHintes.
 java.lang.Object getBaseValue()
          Returns the base value of current DataPointHintes.
 java.lang.String getDisplayValue()
          Returns the display value of current DataPointHintes.
 int getIndex()
          Returns the index of current DataPointHints.
 Location getLocation()
          Returns the location value of current DataPointHintes.
 Location3D getLocation3D()
          Returns the 3d location value of current DataPointHintes(only available in 3d mode).
 java.lang.String getOrthogonalDisplayValue()
          Returns the orthogonal display value of current DataPointHintes.
 java.lang.Object getOrthogonalValue()
          Returns the orthogonal value of current DataPointHintes.
 java.lang.String getPercentileOrthogonalDisplayValue()
          Returns the percentile orthogonal display value of current DataPointHintes.
 java.lang.Object getPercentileOrthogonalValue()
          Returns the percentile orthogonal value of current DataPointHintes.
 java.lang.String getSeriesDisplayValue()
          Returns the series display value of current DataPointHintes.
 java.lang.Object getSeriesValue()
          Returns the series value of current DataPointHintes.
 double getSize()
          Returns the size value of current DataPointHintes.
 Size getSize2D()
          Returns the size value of current DataPointHintes(only available in 3d mode).
 java.lang.Double getStackOrthogonalValue()
          Returns the stacked orthogonal value.
 java.lang.Object getUserValue(java.lang.String key)
          Returns the user value of current DataPointHintes.
 DataPointHints getVirtualCopy()
          Returns a copy of current DataPointHints object, which is virtual.
 boolean isOutside()
          Invalidates if current data point is outside of plot area.
 boolean isVirtual()
           
 void markOutside()
          Sets current data point is outside of plot area.
 void setBaseValue(java.lang.Object newBaseValue)
          Sets the base value.
 void setIndex(int index)
           
 void setStackOrthogonalValue(java.lang.Double stackOrthogonalValue)
           
 void setUserValue(java.lang.String key, java.lang.Object value)
          Sets the user value of current DataPointHintes.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataPointHints

public DataPointHints(java.lang.Object _oBaseValue,
                      java.lang.Object _oOrthogonalValue,
                      java.lang.Object _oSeriesValue,
                      java.lang.Object _oPercentileValue,
                      DataPoint _dp,
                      FormatSpecifier _fsBase,
                      FormatSpecifier _fsOrthogonal,
                      FormatSpecifier _fsSeries,
                      FormatSpecifier _fsPercentile,
                      int _idx,
                      Location _lo,
                      double _dSize,
                      RunTimeContext _rtc)
               throws ChartException
DataPointHints constructor.

Parameters:
_oBaseValue - Category data
_oOrthogonalValue - Value data
_sSeriesValue - Value Series Name
_dp - DataPoint for combined value retrieval
_fsBase - Category Format Specifier
_fsOrthogonal - Value Format Specifier
_fsSeries - Value Series Name Format Specifier
_idx - Category Series index
_lo - Location
_dSize - Size
_rtc - Runtime Context
Throws:
ChartException

DataPointHints

public DataPointHints(java.lang.Object _oBaseValue,
                      java.lang.Object _oOrthogonalValue,
                      java.lang.Object _oSeriesValue,
                      java.lang.Object _oPercentileValue,
                      DataPoint _dp,
                      FormatSpecifier _fsBase,
                      FormatSpecifier _fsOrthogonal,
                      FormatSpecifier _fsSeries,
                      FormatSpecifier _fsPercentile,
                      int _idx,
                      Location _lo,
                      double[] _dSize,
                      RunTimeContext _rtc)
               throws ChartException
The constructor.

Parameters:
_oBaseValue -
_oOrthogonalValue -
_oSeriesValue -
_dp -
_fsBase -
_fsOrthogonal -
_fsSeries -
_idx - base Series index
_lo -
_dSize -
_rtc -
Throws:
ChartException
Method Detail

getVirtualCopy

public DataPointHints getVirtualCopy()
                              throws ChartException
Returns a copy of current DataPointHints object, which is virtual.

Returns:
Throws:
ChartException

accumulate

public void accumulate(java.lang.Object _oBaseValue,
                       java.lang.Object _oOrthogonalValue,
                       java.lang.Object _oSeriesValue,
                       java.lang.Object _oPercentileOrthogonalValue)
Accumulates values to current DataPointHintes.

Parameters:
_oBaseValue -
_oOrthogonalValue -
_oSeriesValue -

getBaseValue

public final java.lang.Object getBaseValue()
Returns the base value of current DataPointHintes.

Returns:

getOrthogonalValue

public final java.lang.Object getOrthogonalValue()
Returns the orthogonal value of current DataPointHintes.

Returns:

getStackOrthogonalValue

public final java.lang.Double getStackOrthogonalValue()
Returns the stacked orthogonal value.

Returns:
stacked value or null if not stacked

setStackOrthogonalValue

public final void setStackOrthogonalValue(java.lang.Double stackOrthogonalValue)

markOutside

public final void markOutside()
Sets current data point is outside of plot area.


isOutside

public final boolean isOutside()
Invalidates if current data point is outside of plot area.


getSeriesValue

public final java.lang.Object getSeriesValue()
Returns the series value of current DataPointHintes.

Returns:

getPercentileOrthogonalValue

public final java.lang.Object getPercentileOrthogonalValue()
Returns the percentile orthogonal value of current DataPointHintes.

Returns:

getLocation

public final Location getLocation()
Returns the location value of current DataPointHintes.

Returns:

getLocation3D

public final Location3D getLocation3D()
Returns the 3d location value of current DataPointHintes(only available in 3d mode).

Returns:

getIndex

public final int getIndex()
Returns the index of current DataPointHints.

Returns:

getSize

public final double getSize()
Returns the size value of current DataPointHintes.

Returns:

getSize2D

public final Size getSize2D()
Returns the size value of current DataPointHintes(only available in 3d mode).

Returns:

getUserValue

public final java.lang.Object getUserValue(java.lang.String key)
Returns the user value of current DataPointHintes.

Parameters:
key -
Returns:

setUserValue

public final void setUserValue(java.lang.String key,
                               java.lang.Object value)
Sets the user value of current DataPointHintes.

Parameters:
key -
value -

getOrthogonalDisplayValue

public final java.lang.String getOrthogonalDisplayValue()
Returns the orthogonal display value of current DataPointHintes.

Returns:

getBaseDisplayValue

public final java.lang.String getBaseDisplayValue()
Returns the base display value of current DataPointHintes.

Returns:

getSeriesDisplayValue

public final java.lang.String getSeriesDisplayValue()
Returns the series display value of current DataPointHintes.

Returns:

getPercentileOrthogonalDisplayValue

public final java.lang.String getPercentileOrthogonalDisplayValue()
Returns the percentile orthogonal display value of current DataPointHintes.

Returns:

getDisplayValue

public final java.lang.String getDisplayValue()
Returns the display value of current DataPointHintes.

Returns:

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

setBaseValue

public final void setBaseValue(java.lang.Object newBaseValue)
Sets the base value.

Parameters:
newBaseValue - the new base value

setIndex

public final void setIndex(int index)

isVirtual

public boolean isVirtual()


Copyright © 2005-2008 Actuate Corp. All rights reserved.