Package com.jbstrap.ui.components.charts
Interface AdvancedMarker<T extends Series>
- Type Parameters:
T- Series type
- All Known Implementing Classes:
AreaSeries,BubbleSeries,DotSeries,LineSeries
public interface AdvancedMarker<T extends Series>
You can set the marker style for charts implementing this interface.
The interface enables you to set the markers’ fill and line color, and also line width.
You can customize the markers for the following charts:
- Line chart
- Dot chart
- Area chart
- Stacked area chart
- Bubble chart
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringGets the chart marker fill color.default StringGets the marker line color.default intGets the marker line width.default booleanChecks if the marker is displayed on the chart.default TsetMarkerFillColor(String fillColor) Sets the chart marker fill color.default TsetMarkerLineColor(String lineColor) Sets the marker line color.default TsetMarkerLineWidth(int lineWidth) Sets the marker line width.default TsetShowMarker(boolean show) Sets if the marker should be displayed on the chart.
-
Field Details
-
SHOW_MARKER
- See Also:
-
MARKER_LINE_COLOR
- See Also:
-
MARKER_LINE_WIDTH
- See Also:
-
MARKER_FILL_COLOR
- See Also:
-
-
Method Details
-
setMarkerFillColor
Sets the chart marker fill color.- Parameters:
fillColor- Marker fill color Colors must be specified using the CSS3 format.- Returns:
- Series object
-
getMarkerFillColor
Gets the chart marker fill color.- Returns:
- Marker fill color
-
setShowMarker
Sets if the marker should be displayed on the chart. By default, the marker is visible.- Parameters:
show- Iftrueis specified, the marker is displayed on the chart, otherwise not- Returns:
- Series object
-
isShowMarker
default boolean isShowMarker()Checks if the marker is displayed on the chart.- Returns:
- If
true, the marker is displayed, otherwisefalse
-
setMarkerLineColor
Sets the marker line color.- Parameters:
lineColor- Marker line color Line color must be specified using the CSS3 format.- Returns:
- Series object
-
getMarkerLineColor
Gets the marker line color.- Returns:
- Marker line color
-
setMarkerLineWidth
Sets the marker line width. The default line width is 2 pixels.- Parameters:
lineWidth- Marker line width Lie width must be specified in pixels.- Returns:
- Series object
-
getMarkerLineWidth
default int getMarkerLineWidth()Gets the marker line width.- Returns:
- Marker line width in pixels
-