public abstract class AbstractChartProperties extends Object implements ChartProperties
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractChartProperties.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
protected DelegatedDynObject |
data |
protected List<RequiredField> |
requiredFields |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractChartProperties(String definitionName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRequiredField(RequiredField field1) |
void |
clear() |
ChartProperties |
clone() |
void |
delegate(DynObject dynObject) |
String |
getChartDescription()
Obtains a description of the chart purpose
|
boolean |
getChartIsHorizontal()
Check if the chart will be painted on horizontal or vertical
|
boolean |
getChartLabellingDataShown() |
Font |
getChartLabellingFont() |
String |
getChartLabellingPosition() |
boolean |
getChartLabellingVisible() |
String |
getChartName()
Get the name of the chart (internal name)
|
ChartRenderer |
getChartRenderer()
Get the current
ChartRenderer used |
ChartRenderer |
getChartRenderer(String name) |
String |
getChartRendererName()
Get ID of the current
ChartRenderer used |
String |
getChartTableName()
Gets the table name of the data origin.
|
String |
getChartTitle()
Get the title of the chart (shown in the chart area drawn)
|
String |
getChartType()
Get the ChartService's type.
|
float |
getDomainAxisPosition() |
DynClass |
getDynClass() |
Object |
getDynValue(String name) |
boolean |
getHasLegendCoordinates()
Gets if it must use the coordinates or not
|
boolean |
getHasLegendDefaultConf()
If the legend must attend to the manual configuration or the default
|
boolean |
getHasPlotDefaultSize()
Determines if the Plot has a default size
|
boolean |
getHasPlotOutline()
Determines if the Plot has outline or not
|
boolean |
getIsLegendVisible()
Gets if the legend is visible or not in this
ChartService |
String |
getLegendOrientation()
Obtains the predefined place inside the position selected of the legend
|
String |
getLegendPosition()
Obtains the predefined position of the legend
|
Font |
getLegendTitleFont()
Gets the font used on the title
|
boolean |
getLegendTitleIsVisible()
Gets if the legend title is visible
|
String |
getLegendTitleText()
Obtains the legend's title
|
int |
getLegendXCoordinate()
Obtains the x-coordinate of the position of the legend
|
int |
getLegendYCoordinate()
Obtains the y-coordinate of the position of the legend
|
String |
getNoDataMessageText() |
boolean |
getNullGroupIgnored() |
float |
getPlotBackgroundAlpha()
Gets the transparency alpha value of the plot area background
|
Color |
getPlotBackgroundColor()
Gets the background color of the Plot area
|
int |
getPlotHeight()
Returns the plot area height
|
int |
getPlotWidth()
Returns the plot area width
|
int |
getPlotXPosition()
Gets the x-coordinate of the upper-left corner of the Plot area
|
int |
getPlotYPosition()
Gets the y-coordinate of the upper-left corner of the Plot area
|
Map<String,ChartRenderer> |
getRenderers() |
RequiredField |
getRequiredField(String name)
Get an specific
RequiredField using its name. |
List<RequiredField> |
getRequiredFields()
Get a List with the
RequiredFields needed to define the
the set of fields of the ChartDataSet to contain the chart's data |
boolean |
getShowChartTooltip() |
boolean |
getShowChartURLs() |
boolean |
getUseSelectedFeatures()
true if the chart will be rendered only for selected features
|
boolean |
hasDefaultChartAxis() |
boolean |
hasDynValue(String name) |
void |
implement(DynClass dynClass) |
Object |
invokeDynMethod(int code,
Object[] args) |
Object |
invokeDynMethod(String name,
Object[] args) |
boolean |
is3DChart()
Gets the dimension of the chart
|
boolean |
isChartVisibleIfNoData() |
boolean |
isMandatoryChart() |
boolean |
isXYPlotChart() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerDefinition() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setChartDescription(String title) |
void |
setChartDimension(Boolean type) |
void |
setChartDynValue(String name,
Object value) |
void |
setChartIsHorizontal(Boolean type) |
void |
setChartLabellingDataShown(boolean b) |
void |
setChartLabellingFont(Font labellingFont) |
void |
setChartLabellingPosition(String chartLabellingRotation) |
void |
setChartLabellingVisible(boolean visible) |
void |
setChartName(String name) |
void |
setChartRenderer(String type) |
void |
setChartTableName(String table) |
void |
setChartTitle(String title)
This method gives a title to the chart when it's drawn
|
void |
setChartType(String type) |
void |
setDomainAxisPosition(float angle) |
void |
setDynValue(String name,
Object value) |
void |
setHasDefaultChartAxis(boolean selected) |
void |
setHasLegendCoordinates(boolean urls)
Assign if the legend must use a coordinates manually indicated
|
void |
setHasLegendManualConf(boolean urls)
Indicates if the Legend have to use the default configuration
or it has another one specified manually
|
void |
setHasPlotManualSize(boolean urls)
Sets if the Plot has a non-predefined size
|
void |
setHasPlotOutline(boolean urls)
Sets if the plot has outline or not
|
void |
setIsChartVisibleIfNoData(boolean charts) |
void |
setIsLegendVisible(boolean urls)
Sets if the legend will be visible for this
ChartService |
void |
setIsMandatoryChart(boolean selected) |
void |
setIsXYPlotChart(boolean selected) |
void |
setLegendOrientation(String table)
Inserts a predefined place inside the position selected for the legend
|
void |
setLegendPosition(String table)
Establish a predefined position for the legend
|
void |
setLegendTitleFont(Font table)
Establishes a font for the title
|
void |
setLegendTitleIsVisible(boolean selected)
Sets if the legend title will be visible
|
void |
setLegendTitleText(String table)
Assigns a text to the legend title
|
void |
setLegendXCoordinate(int table)
Sets the x-coordinate of the legend
|
void |
setLegendYCoordinate(int table)
Sets the y-coordinate of the legend
|
void |
setNoDataMessageText(String text) |
void |
setNullGroupIgnored(boolean ignored) |
void |
setPlotBackgroundAlpha(float table)
Sets a transparency for the plot area background
|
void |
setPlotBackgroundColor(Color table)
Assigns a background color to the Plot area
|
void |
setPlotHeight(int table)
Defines the height of the Plot area
|
void |
setPlotWidth(int table)
Defines the width of the Plot area
|
void |
setPlotXPosition(int table)
Establishes a x-coordinate for the upper-left corner of the Plot area
|
void |
setPlotYPosition(int table)
Establishes a y-coordinate for the upper-left corner of the Plot area
|
void |
setRequiredFields(List<RequiredField> requiredFields) |
void |
setShowChartTooltip(boolean tooltip) |
void |
setShowChartURLs(boolean urls) |
void |
setUseSelectedFeatures(boolean b) |
protected DelegatedDynObject data
protected List<RequiredField> requiredFields
protected AbstractChartProperties(String definitionName)
protected void addRequiredField(RequiredField field1)
public static void registerDefinition()
public ChartRenderer getChartRenderer()
ChartPropertiesChartRenderer usedgetChartRenderer in interface ChartPropertiesChartRendererpublic ChartRenderer getChartRenderer(String name)
getChartRenderer in interface ChartPropertiespublic Map<String,ChartRenderer> getRenderers()
getRenderers in interface ChartPropertiespublic void setUseSelectedFeatures(boolean b)
setUseSelectedFeatures in interface ChartPropertiespublic boolean getUseSelectedFeatures()
ChartPropertiesgetUseSelectedFeatures in interface ChartPropertiespublic void setChartType(String type)
public String getChartType()
ChartPropertiesgetChartType in interface ChartPropertiespublic void setChartRenderer(String type)
setChartRenderer in interface ChartPropertiespublic String getChartRendererName()
ChartPropertiesChartRenderer usedgetChartRendererName in interface ChartPropertiesChartRenderer namepublic void setChartDimension(Boolean type)
setChartDimension in interface ChartPropertiespublic boolean is3DChart()
ChartPropertiesis3DChart in interface ChartPropertiespublic void setChartIsHorizontal(Boolean type)
public boolean getChartIsHorizontal()
ChartPropertiesgetChartIsHorizontal in interface ChartPropertiespublic void setRequiredFields(List<RequiredField> requiredFields)
public List<RequiredField> getRequiredFields()
ChartPropertiesRequiredFields needed to define the
the set of fields of the ChartDataSet to contain the chart's datagetRequiredFields in interface ChartPropertiesRequiredFieldspublic RequiredField getRequiredField(String name)
ChartPropertiesRequiredField using its name.getRequiredField in interface ChartPropertiesRequiredFieldpublic void setChartName(String name)
setChartName in interface ChartPropertiespublic String getChartName()
ChartPropertiesgetChartName in interface ChartPropertiespublic void setChartTitle(String title)
ChartPropertiessetChartTitle in interface ChartPropertiespublic String getChartTitle()
ChartPropertiesgetChartTitle in interface ChartPropertiespublic void setChartDescription(String title)
setChartDescription in interface ChartPropertiespublic String getChartDescription()
ChartPropertiesgetChartDescription in interface ChartPropertiespublic void setChartTableName(String table)
setChartTableName in interface ChartPropertiespublic String getChartTableName()
ChartPropertiesgetChartTableName in interface ChartPropertiespublic void setShowChartTooltip(boolean tooltip)
public boolean getShowChartTooltip()
public void setShowChartURLs(boolean urls)
public boolean getShowChartURLs()
public boolean isMandatoryChart()
isMandatoryChart in interface ChartPropertiespublic void setIsMandatoryChart(boolean selected)
setIsMandatoryChart in interface ChartPropertiespublic boolean hasDefaultChartAxis()
hasDefaultChartAxis in interface ChartPropertiespublic void setHasDefaultChartAxis(boolean selected)
setHasDefaultChartAxis in interface ChartPropertiespublic boolean isXYPlotChart()
isXYPlotChart in interface ChartPropertiespublic void setIsXYPlotChart(boolean selected)
setIsXYPlotChart in interface ChartPropertiespublic boolean isChartVisibleIfNoData()
isChartVisibleIfNoData in interface ChartPropertiespublic void setIsChartVisibleIfNoData(boolean charts)
setIsChartVisibleIfNoData in interface ChartPropertiespublic void setNoDataMessageText(String text)
setNoDataMessageText in interface ChartPropertiespublic String getNoDataMessageText()
getNoDataMessageText in interface ChartPropertiespublic void setIsLegendVisible(boolean urls)
ChartPropertiesChartServicesetIsLegendVisible in interface ChartPropertiespublic boolean getIsLegendVisible()
ChartPropertiesChartServicegetIsLegendVisible in interface ChartPropertiespublic void setLegendTitleIsVisible(boolean selected)
ChartPropertiessetLegendTitleIsVisible in interface ChartPropertiespublic boolean getLegendTitleIsVisible()
ChartPropertiesgetLegendTitleIsVisible in interface ChartPropertiespublic void setLegendTitleText(String table)
ChartPropertiessetLegendTitleText in interface ChartPropertiespublic String getLegendTitleText()
ChartPropertiesgetLegendTitleText in interface ChartPropertiespublic void setLegendTitleFont(Font table)
ChartPropertiessetLegendTitleFont in interface ChartPropertiestable - to be usedpublic Font getLegendTitleFont()
ChartPropertiesgetLegendTitleFont in interface ChartPropertiespublic void setHasLegendManualConf(boolean urls)
ChartPropertiessetHasLegendManualConf in interface ChartPropertiespublic boolean getHasLegendDefaultConf()
ChartPropertiesgetHasLegendDefaultConf in interface ChartPropertiespublic void setHasLegendCoordinates(boolean urls)
ChartPropertiessetHasLegendCoordinates in interface ChartPropertiespublic boolean getHasLegendCoordinates()
ChartPropertiesgetHasLegendCoordinates in interface ChartPropertiespublic String getLegendPosition()
ChartPropertiesgetLegendPosition in interface ChartPropertiespublic void setLegendPosition(String table)
ChartPropertiessetLegendPosition in interface ChartPropertiespublic String getLegendOrientation()
ChartPropertiesgetLegendOrientation in interface ChartPropertiespublic void setLegendOrientation(String table)
ChartPropertiessetLegendOrientation in interface ChartPropertiespublic int getLegendXCoordinate()
ChartPropertiesgetLegendXCoordinate in interface ChartPropertiespublic void setLegendXCoordinate(int table)
ChartPropertiessetLegendXCoordinate in interface ChartPropertiespublic int getLegendYCoordinate()
ChartPropertiesgetLegendYCoordinate in interface ChartPropertiespublic void setLegendYCoordinate(int table)
ChartPropertiessetLegendYCoordinate in interface ChartPropertiespublic Color getPlotBackgroundColor()
ChartPropertiesgetPlotBackgroundColor in interface ChartPropertiespublic void setPlotBackgroundColor(Color table)
ChartPropertiessetPlotBackgroundColor in interface ChartPropertiespublic float getPlotBackgroundAlpha()
ChartPropertiesgetPlotBackgroundAlpha in interface ChartPropertiespublic void setPlotBackgroundAlpha(float table)
ChartPropertiessetPlotBackgroundAlpha in interface ChartPropertiespublic void setHasPlotOutline(boolean urls)
ChartPropertiessetHasPlotOutline in interface ChartPropertiespublic boolean getHasPlotOutline()
ChartPropertiesgetHasPlotOutline in interface ChartPropertiespublic void setHasPlotManualSize(boolean urls)
ChartPropertiessetHasPlotManualSize in interface ChartPropertiespublic boolean getHasPlotDefaultSize()
ChartPropertiesgetHasPlotDefaultSize in interface ChartPropertiespublic int getPlotXPosition()
ChartPropertiesgetPlotXPosition in interface ChartPropertiespublic void setPlotXPosition(int table)
ChartPropertiessetPlotXPosition in interface ChartPropertiespublic int getPlotYPosition()
ChartPropertiesgetPlotYPosition in interface ChartPropertiespublic void setPlotYPosition(int table)
ChartPropertiessetPlotYPosition in interface ChartPropertiespublic int getPlotWidth()
ChartPropertiesgetPlotWidth in interface ChartPropertiespublic void setPlotWidth(int table)
ChartPropertiessetPlotWidth in interface ChartPropertiespublic int getPlotHeight()
ChartPropertiesgetPlotHeight in interface ChartPropertiespublic void setPlotHeight(int table)
ChartPropertiessetPlotHeight in interface ChartPropertiespublic boolean getNullGroupIgnored()
getNullGroupIgnored in interface ChartPropertiespublic void setNullGroupIgnored(boolean ignored)
setNullGroupIgnored in interface ChartPropertiespublic float getDomainAxisPosition()
getDomainAxisPosition in interface ChartPropertiespublic void setDomainAxisPosition(float angle)
setDomainAxisPosition in interface ChartPropertiespublic void setChartLabellingVisible(boolean visible)
setChartLabellingVisible in interface ChartPropertiespublic boolean getChartLabellingVisible()
getChartLabellingVisible in interface ChartPropertiespublic void setChartLabellingFont(Font labellingFont)
setChartLabellingFont in interface ChartPropertiespublic Font getChartLabellingFont()
getChartLabellingFont in interface ChartPropertiespublic void setChartLabellingDataShown(boolean b)
setChartLabellingDataShown in interface ChartPropertiespublic boolean getChartLabellingDataShown()
getChartLabellingDataShown in interface ChartPropertiespublic String getChartLabellingPosition()
getChartLabellingPosition in interface ChartPropertiespublic void setChartLabellingPosition(String chartLabellingRotation)
setChartLabellingPosition in interface ChartPropertiespublic DynClass getDynClass()
getDynClass in interface DynObjectpublic Object getDynValue(String name) throws DynFieldNotFoundException
getDynValue in interface DynObjectDynFieldNotFoundExceptionpublic void setChartDynValue(String name, Object value)
setChartDynValue in interface ChartPropertiespublic void setDynValue(String name, Object value) throws DynFieldNotFoundException
setDynValue in interface DynObjectDynFieldNotFoundExceptionpublic boolean hasDynValue(String name)
hasDynValue in interface DynObjectpublic Object invokeDynMethod(String name, Object[] args) throws DynMethodException
invokeDynMethod in interface DynObjectDynMethodExceptionpublic Object invokeDynMethod(int code, Object[] args) throws DynMethodException
invokeDynMethod in interface DynObjectDynMethodExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic ChartProperties clone()
clone in interface ChartPropertiesclone in class Object