Package com.storedobject.chart
Class MarkArea
java.lang.Object
com.storedobject.chart.MarkArea
- All Implemented Interfaces:
ComponentProperty,HasData
Mark area. Used to define style for one or more individual areas in many charts. use
Chart.getMarkArea(boolean) to get the MarkArea of the chart.
Examples: LineChart, ScatterChart, PieChart etc.- Author:
- Syam
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MarkArea.Block... blocks) Add blocks to this mark area.voidclear()Clear all blocks.voiddeclareData(Set<AbstractDataProvider<?>> dataSet) Declare the data set owned by thisComponentPartby adding it to theSetprovided.voidEncode the JSON string with the properties of this.final ItemStylegetItemStyle(boolean create) Get item style.voidremove(MarkArea.Block... blocks) Remove blocks from this mark area.voidsetItemStyle(ItemStyle itemStyle) Set item style.
-
Constructor Details
-
MarkArea
public MarkArea()
-
-
Method Details
-
declareData
Description copied from interface:HasDataDeclare the data set owned by thisComponentPartby adding it to theSetprovided.- Specified by:
declareDatain interfaceHasData- Parameters:
dataSet- Set to which all the data owned by thisComponentPartneeds to be added.
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Parameters:
sb- Encoded JSON string to be appended to this.
-
getItemStyle
Get item style.- Parameters:
create- If passed true, a new style is created if not exists.- Returns:
- Item style.
-
setItemStyle
-
add
Add blocks to this mark area.- Parameters:
blocks- Blocks to add.
-
remove
Remove blocks from this mark area.- Parameters:
blocks- Blocks to remove.
-
clear
public void clear()Clear all blocks.
-