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
RequiredField s 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()
ChartProperties
ChartRenderer
usedgetChartRenderer
in interface ChartProperties
ChartRenderer
public ChartRenderer getChartRenderer(String name)
getChartRenderer
in interface ChartProperties
public Map<String,ChartRenderer> getRenderers()
getRenderers
in interface ChartProperties
public void setUseSelectedFeatures(boolean b)
setUseSelectedFeatures
in interface ChartProperties
public boolean getUseSelectedFeatures()
ChartProperties
getUseSelectedFeatures
in interface ChartProperties
public void setChartType(String type)
public String getChartType()
ChartProperties
getChartType
in interface ChartProperties
public void setChartRenderer(String type)
setChartRenderer
in interface ChartProperties
public String getChartRendererName()
ChartProperties
ChartRenderer
usedgetChartRendererName
in interface ChartProperties
ChartRenderer
namepublic void setChartDimension(Boolean type)
setChartDimension
in interface ChartProperties
public boolean is3DChart()
ChartProperties
is3DChart
in interface ChartProperties
public void setChartIsHorizontal(Boolean type)
public boolean getChartIsHorizontal()
ChartProperties
getChartIsHorizontal
in interface ChartProperties
public void setRequiredFields(List<RequiredField> requiredFields)
public List<RequiredField> getRequiredFields()
ChartProperties
RequiredField
s needed to define the
the set of fields of the ChartDataSet
to contain the chart's datagetRequiredFields
in interface ChartProperties
RequiredField
spublic RequiredField getRequiredField(String name)
ChartProperties
RequiredField
using its name.getRequiredField
in interface ChartProperties
RequiredField
public void setChartName(String name)
setChartName
in interface ChartProperties
public String getChartName()
ChartProperties
getChartName
in interface ChartProperties
public void setChartTitle(String title)
ChartProperties
setChartTitle
in interface ChartProperties
public String getChartTitle()
ChartProperties
getChartTitle
in interface ChartProperties
public void setChartDescription(String title)
setChartDescription
in interface ChartProperties
public String getChartDescription()
ChartProperties
getChartDescription
in interface ChartProperties
public void setChartTableName(String table)
setChartTableName
in interface ChartProperties
public String getChartTableName()
ChartProperties
getChartTableName
in interface ChartProperties
public void setShowChartTooltip(boolean tooltip)
public boolean getShowChartTooltip()
public void setShowChartURLs(boolean urls)
public boolean getShowChartURLs()
public boolean isMandatoryChart()
isMandatoryChart
in interface ChartProperties
public void setIsMandatoryChart(boolean selected)
setIsMandatoryChart
in interface ChartProperties
public boolean hasDefaultChartAxis()
hasDefaultChartAxis
in interface ChartProperties
public void setHasDefaultChartAxis(boolean selected)
setHasDefaultChartAxis
in interface ChartProperties
public boolean isXYPlotChart()
isXYPlotChart
in interface ChartProperties
public void setIsXYPlotChart(boolean selected)
setIsXYPlotChart
in interface ChartProperties
public boolean isChartVisibleIfNoData()
isChartVisibleIfNoData
in interface ChartProperties
public void setIsChartVisibleIfNoData(boolean charts)
setIsChartVisibleIfNoData
in interface ChartProperties
public void setNoDataMessageText(String text)
setNoDataMessageText
in interface ChartProperties
public String getNoDataMessageText()
getNoDataMessageText
in interface ChartProperties
public void setIsLegendVisible(boolean urls)
ChartProperties
ChartService
setIsLegendVisible
in interface ChartProperties
public boolean getIsLegendVisible()
ChartProperties
ChartService
getIsLegendVisible
in interface ChartProperties
public void setLegendTitleIsVisible(boolean selected)
ChartProperties
setLegendTitleIsVisible
in interface ChartProperties
public boolean getLegendTitleIsVisible()
ChartProperties
getLegendTitleIsVisible
in interface ChartProperties
public void setLegendTitleText(String table)
ChartProperties
setLegendTitleText
in interface ChartProperties
public String getLegendTitleText()
ChartProperties
getLegendTitleText
in interface ChartProperties
public void setLegendTitleFont(Font table)
ChartProperties
setLegendTitleFont
in interface ChartProperties
table
- to be usedpublic Font getLegendTitleFont()
ChartProperties
getLegendTitleFont
in interface ChartProperties
public void setHasLegendManualConf(boolean urls)
ChartProperties
setHasLegendManualConf
in interface ChartProperties
public boolean getHasLegendDefaultConf()
ChartProperties
getHasLegendDefaultConf
in interface ChartProperties
public void setHasLegendCoordinates(boolean urls)
ChartProperties
setHasLegendCoordinates
in interface ChartProperties
public boolean getHasLegendCoordinates()
ChartProperties
getHasLegendCoordinates
in interface ChartProperties
public String getLegendPosition()
ChartProperties
getLegendPosition
in interface ChartProperties
public void setLegendPosition(String table)
ChartProperties
setLegendPosition
in interface ChartProperties
public String getLegendOrientation()
ChartProperties
getLegendOrientation
in interface ChartProperties
public void setLegendOrientation(String table)
ChartProperties
setLegendOrientation
in interface ChartProperties
public int getLegendXCoordinate()
ChartProperties
getLegendXCoordinate
in interface ChartProperties
public void setLegendXCoordinate(int table)
ChartProperties
setLegendXCoordinate
in interface ChartProperties
public int getLegendYCoordinate()
ChartProperties
getLegendYCoordinate
in interface ChartProperties
public void setLegendYCoordinate(int table)
ChartProperties
setLegendYCoordinate
in interface ChartProperties
public Color getPlotBackgroundColor()
ChartProperties
getPlotBackgroundColor
in interface ChartProperties
public void setPlotBackgroundColor(Color table)
ChartProperties
setPlotBackgroundColor
in interface ChartProperties
public float getPlotBackgroundAlpha()
ChartProperties
getPlotBackgroundAlpha
in interface ChartProperties
public void setPlotBackgroundAlpha(float table)
ChartProperties
setPlotBackgroundAlpha
in interface ChartProperties
public void setHasPlotOutline(boolean urls)
ChartProperties
setHasPlotOutline
in interface ChartProperties
public boolean getHasPlotOutline()
ChartProperties
getHasPlotOutline
in interface ChartProperties
public void setHasPlotManualSize(boolean urls)
ChartProperties
setHasPlotManualSize
in interface ChartProperties
public boolean getHasPlotDefaultSize()
ChartProperties
getHasPlotDefaultSize
in interface ChartProperties
public int getPlotXPosition()
ChartProperties
getPlotXPosition
in interface ChartProperties
public void setPlotXPosition(int table)
ChartProperties
setPlotXPosition
in interface ChartProperties
public int getPlotYPosition()
ChartProperties
getPlotYPosition
in interface ChartProperties
public void setPlotYPosition(int table)
ChartProperties
setPlotYPosition
in interface ChartProperties
public int getPlotWidth()
ChartProperties
getPlotWidth
in interface ChartProperties
public void setPlotWidth(int table)
ChartProperties
setPlotWidth
in interface ChartProperties
public int getPlotHeight()
ChartProperties
getPlotHeight
in interface ChartProperties
public void setPlotHeight(int table)
ChartProperties
setPlotHeight
in interface ChartProperties
public boolean getNullGroupIgnored()
getNullGroupIgnored
in interface ChartProperties
public void setNullGroupIgnored(boolean ignored)
setNullGroupIgnored
in interface ChartProperties
public float getDomainAxisPosition()
getDomainAxisPosition
in interface ChartProperties
public void setDomainAxisPosition(float angle)
setDomainAxisPosition
in interface ChartProperties
public void setChartLabellingVisible(boolean visible)
setChartLabellingVisible
in interface ChartProperties
public boolean getChartLabellingVisible()
getChartLabellingVisible
in interface ChartProperties
public void setChartLabellingFont(Font labellingFont)
setChartLabellingFont
in interface ChartProperties
public Font getChartLabellingFont()
getChartLabellingFont
in interface ChartProperties
public void setChartLabellingDataShown(boolean b)
setChartLabellingDataShown
in interface ChartProperties
public boolean getChartLabellingDataShown()
getChartLabellingDataShown
in interface ChartProperties
public String getChartLabellingPosition()
getChartLabellingPosition
in interface ChartProperties
public void setChartLabellingPosition(String chartLabellingRotation)
setChartLabellingPosition
in interface ChartProperties
public DynClass getDynClass()
getDynClass
in interface DynObject
public Object getDynValue(String name) throws DynFieldNotFoundException
getDynValue
in interface DynObject
DynFieldNotFoundException
public void setChartDynValue(String name, Object value)
setChartDynValue
in interface ChartProperties
public void setDynValue(String name, Object value) throws DynFieldNotFoundException
setDynValue
in interface DynObject
DynFieldNotFoundException
public boolean hasDynValue(String name)
hasDynValue
in interface DynObject
public Object invokeDynMethod(String name, Object[] args) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public Object invokeDynMethod(int code, Object[] args) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public ChartProperties clone()
clone
in interface ChartProperties
clone
in class Object