org.eclipse.birt.chart.ui.swt.interfaces
Interface IChartType


public interface IChartType

IChartType


Field Summary
static java.lang.String THREE_DIMENSION_TYPE
          Type constant of 3D.
static java.lang.String TWO_DIMENSION_TYPE
          Type constant of 2D.
static java.lang.String TWO_DIMENSION_WITH_DEPTH_TYPE
          Type constant of 2D with depth.
 
Method Summary
 boolean canAdapt(org.eclipse.birt.chart.model.Chart cModel, java.util.Hashtable htModelHints)
          Returns whether this type implementation can process the specified model.
 boolean canCombine()
          Return true if the type can be used in a combination chart.
 ISelectDataComponent getBaseUI(org.eclipse.birt.chart.model.Chart chart, ISelectDataCustomizeUI selectDataUI, org.eclipse.birt.chart.ui.swt.wizard.ChartWizardContext context, java.lang.String sTitle)
          Returns base UI in data sheet
 java.util.Collection<IChartSubType> getChartSubtypes(java.lang.String Dimension, org.eclipse.birt.chart.model.attribute.Orientation orientation)
          Returns the names of the chart sub-types available for this type.
 java.lang.String getDefaultDimension()
          Returns the default dimension of this chart type.
 org.eclipse.birt.chart.model.attribute.Orientation getDefaultOrientation()
          Returns the default orientation.
 java.lang.String getDisplayName()
          Returns the display name of the chart type.
 IHelpContent getHelp()
          Returns the help information.
 org.eclipse.swt.graphics.Image getImage()
          Returns the image icon of the chart type.
 org.eclipse.birt.chart.model.Chart getModel(java.lang.String sType, org.eclipse.birt.chart.model.attribute.Orientation Orientation, java.lang.String Dimension, org.eclipse.birt.chart.model.Chart currentChart)
          Returns the Chart model for given parameters.
 java.lang.String getName()
          Returns the name of the chart type.
 org.eclipse.birt.chart.model.component.Series getSeries()
           
 java.lang.String[] getSupportedDimensions()
          Returns the dimension array this chart type supports.
 boolean isDimensionSupported(java.lang.String dimensionType, org.eclipse.birt.chart.ui.swt.wizard.ChartWizardContext context, int nbOfAxes, int nbOfSeries)
          Checks whether the dimension is valid with specified number of axes or series.
 boolean supportsTransposition()
          Returns if this chart type supports transposition.
 boolean supportsTransposition(java.lang.String dimension)
          Returns if this chart type supports transposition for given dimension.
 

Field Detail

TWO_DIMENSION_TYPE

static final java.lang.String TWO_DIMENSION_TYPE
Type constant of 2D.


TWO_DIMENSION_WITH_DEPTH_TYPE

static final java.lang.String TWO_DIMENSION_WITH_DEPTH_TYPE
Type constant of 2D with depth.


THREE_DIMENSION_TYPE

static final java.lang.String THREE_DIMENSION_TYPE
Type constant of 3D.

Method Detail

getName

java.lang.String getName()
Returns the name of the chart type.

Returns:
Chart type name.

getDisplayName

java.lang.String getDisplayName()
Returns the display name of the chart type. This is what appears in the selection list in the Chart Selector UI.

Returns:
Chart type display name.
Since:
Version 2.1

getImage

org.eclipse.swt.graphics.Image getImage()
Returns the image icon of the chart type. This is what appears in the selection list in the Chart Selector UI.

Returns:
Chart image icon.

getChartSubtypes

java.util.Collection<IChartSubType> getChartSubtypes(java.lang.String Dimension,
                                                     org.eclipse.birt.chart.model.attribute.Orientation orientation)
Returns the names of the chart sub-types available for this type. These names are used to build the sub-type selection panel in the Chart Selector UI.

Returns:
Array of sub-type names.

canAdapt

boolean canAdapt(org.eclipse.birt.chart.model.Chart cModel,
                 java.util.Hashtable htModelHints)
Returns whether this type implementation can process the specified model. The first instance that returns true will be considered as the correct chart type. If all types return false, the chart type and subtype from the model will be used.

Parameters:
cModel - chart model representing an existing chart
htModelHints - pre-computed 'hints' from the model to reduce computations needed to be performed by each implementation.
Returns:
true if this chart type can adapt the specified model to its own type. false if it cannot.

getModel

org.eclipse.birt.chart.model.Chart getModel(java.lang.String sType,
                                            org.eclipse.birt.chart.model.attribute.Orientation Orientation,
                                            java.lang.String Dimension,
                                            org.eclipse.birt.chart.model.Chart currentChart)
Returns the Chart model for given parameters.

Parameters:
sType -
Orientation -
Dimension -
currentChart -

getSupportedDimensions

java.lang.String[] getSupportedDimensions()
Returns the dimension array this chart type supports.


getDefaultDimension

java.lang.String getDefaultDimension()
Returns the default dimension of this chart type.


supportsTransposition

boolean supportsTransposition()
Returns if this chart type supports transposition.


supportsTransposition

boolean supportsTransposition(java.lang.String dimension)
Returns if this chart type supports transposition for given dimension.

Since:
2.0

getDefaultOrientation

org.eclipse.birt.chart.model.attribute.Orientation getDefaultOrientation()
Returns the default orientation.

Since:
2.2

getHelp

IHelpContent getHelp()
Returns the help information.


getBaseUI

ISelectDataComponent getBaseUI(org.eclipse.birt.chart.model.Chart chart,
                               ISelectDataCustomizeUI selectDataUI,
                               org.eclipse.birt.chart.ui.swt.wizard.ChartWizardContext context,
                               java.lang.String sTitle)
Returns base UI in data sheet

Parameters:
chart -
selectDataUI -
context -
sTitle -
Returns:
UI componnet
Since:
2.0

isDimensionSupported

boolean isDimensionSupported(java.lang.String dimensionType,
                             org.eclipse.birt.chart.ui.swt.wizard.ChartWizardContext context,
                             int nbOfAxes,
                             int nbOfSeries)
Checks whether the dimension is valid with specified number of axes or series.

Parameters:
dimensionType - dimension type
nbOfAxes - number of axes
nbOfSeries - number of series
Returns:
dimension is valid or invalid
Since:
2.1

getSeries

org.eclipse.birt.chart.model.component.Series getSeries()
Since:
2.2

canCombine

boolean canCombine()
Return true if the type can be used in a combination chart.

Returns:
true if the type can be used in a combination chart.
Since:
2.3


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