Class MarkPoint.Point
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.series.mark.AbstractMarkElement<MarkPoint.Point>
io.jmix.chartsflowui.kit.component.model.series.mark.MarkPoint.Point
- All Implemented Interfaces:
HasSymbols<MarkPoint.Point>
,Serializable
- Enclosing class:
- MarkPoint
public static class MarkPoint.Point
extends AbstractMarkElement<MarkPoint.Point>
implements HasSymbols<MarkPoint.Point>
Point to display.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
ChartObservableObject.ObjectChangeEvent
Nested classes/interfaces inherited from interface io.jmix.chartsflowui.kit.component.model.shared.HasSymbols
HasSymbols.Symbol, HasSymbols.SymbolType
-
Field Summary
Modifier and TypeFieldDescriptionprotected Coordinate
protected MarkPoint.Emphasis
protected String
protected HasSymbols.Symbol
protected Boolean
protected String[]
protected Integer
protected Integer
protected JsFunction
protected PointDataType
protected String
protected Integer
protected String
protected String
Fields inherited from class io.jmix.chartsflowui.kit.component.model.series.mark.AbstractMarkElement
itemStyle, label
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
String[]
getType()
getX()
getY()
void
setCoordinate
(Double... coordinate) void
setCoordinate
(String... coordinate) void
setEmphasis
(MarkPoint.Emphasis emphasis) void
void
setSymbol
(HasSymbols.SymbolType symbolType) Sets predefined symbol type or replaces an existing one.void
Sets a symbol or replaces an existing one.
Possible values:image://%url%
, example:image://http://example.website/a/b.png
image://%dataURI%
, example:image://data:image/gif;base64,...
path://%svgPathData%
, example:path://M30.9,53.2c16...
void
setSymbolKeepAspect
(Boolean symbolKeepAspect) Sets the keeping of aspects for a symbol.void
setSymbolOffset
(String xOffset, String yOffset) Sets an offset of symbol relative to original position or replaces an existing one.
Possible values: Pixel values:hasSymbols.setSymbolOffset("10", "10");
.void
setSymbolRotate
(Integer symbolRotate) Sets a rotate degree of symbol or replaces an existing one.void
setSymbolSize
(Integer symbolSize) Sets a symbol size or replaces an existing one.void
setSymbolSizeFunction
(JsFunction symbolSizeFunction) Sets a callback function for symbol size or replaces an existing one.void
setSymbolSizeFunction
(String symbolSizeFunction) Sets a callback function for symbol size as string or replaces an existing one.void
setType
(PointDataType type) void
setValueDim
(String valueDim) void
setValueIndex
(Integer valueIndex) void
void
withCoordinate
(Double... coordinate) withCoordinate
(String... coordinate) withEmphasis
(MarkPoint.Emphasis emphasis) withType
(PointDataType type) withValueDim
(String valueDim) withValueIndex
(Integer valueIndex) Methods inherited from class io.jmix.chartsflowui.kit.component.model.series.mark.AbstractMarkElement
getItemStyle, getLabel, setItemStyle, setLabel, withItemStyle, withLabel
Methods inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
addChild, fireChangeEvent, getChildren, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setChartObjectChangeListener, unmarkDirtyInDepth
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.shared.HasSymbols
withSymbol, withSymbol, withSymbolKeepAspect, withSymbolOffset, withSymbolRotate, withSymbolSize, withSymbolSizeFunction, withSymbolSizeFunction
-
Field Details
-
name
-
type
-
valueIndex
-
valueDim
-
coordinate
-
x
-
y
-
symbol
-
symbolSize
-
symbolSizeFunction
-
symbolRotate
-
symbolKeepAspect
-
symbolOffset
-
emphasis
-
-
Constructor Details
-
Point
public Point()
-
-
Method Details
-
getName
-
setName
-
getType
-
setType
-
getValueIndex
-
setValueIndex
-
getValueDim
-
setValueDim
-
getCoordinate
-
setCoordinate
-
setCoordinate
-
getX
-
setX
-
getY
-
setY
-
getSymbol
- Specified by:
getSymbol
in interfaceHasSymbols<MarkPoint.Point>
- Returns:
- symbol
-
setSymbol
Description copied from interface:HasSymbols
Sets a symbol or replaces an existing one.
Possible values:-
image://%url%
, example:image://http://example.website/a/b.png
-
image://%dataURI%
, example:image://data:image/gif;base64,...
-
path://%svgPathData%
, example:path://M30.9,53.2c16...
- Specified by:
setSymbol
in interfaceHasSymbols<MarkPoint.Point>
- Parameters:
icon
- symbol to set
-
-
getSymbolSize
- Specified by:
getSymbolSize
in interfaceHasSymbols<MarkPoint.Point>
- Returns:
- symbol size
-
setSymbolSize
Description copied from interface:HasSymbols
Sets a symbol size or replaces an existing one.- Specified by:
setSymbolSize
in interfaceHasSymbols<MarkPoint.Point>
- Parameters:
symbolSize
- symbol size to set
-
getSymbolSizeFunction
- Specified by:
getSymbolSizeFunction
in interfaceHasSymbols<MarkPoint.Point>
- Returns:
- callback function for symbol size
-
setSymbolSizeFunction
Description copied from interface:HasSymbols
Sets a callback function for symbol size as string or replaces an existing one.- Specified by:
setSymbolSizeFunction
in interfaceHasSymbols<MarkPoint.Point>
- Parameters:
symbolSizeFunction
- formatter function as string
-
getSymbolRotate
- Specified by:
getSymbolRotate
in interfaceHasSymbols<MarkPoint.Point>
- Returns:
- rotate degree of symbol
-
setSymbolRotate
Description copied from interface:HasSymbols
Sets a rotate degree of symbol or replaces an existing one. The negative value represents clockwise.- Specified by:
setSymbolRotate
in interfaceHasSymbols<MarkPoint.Point>
- Parameters:
symbolRotate
- rotate symbol to set
-
getSymbolKeepAspect
- Specified by:
getSymbolKeepAspect
in interfaceHasSymbols<MarkPoint.Point>
- Returns:
true
if the aspect for symbols must be kept,false
otherwise
-
setSymbolKeepAspect
Description copied from interface:HasSymbols
Sets the keeping of aspects for a symbol.- Specified by:
setSymbolKeepAspect
in interfaceHasSymbols<MarkPoint.Point>
- Parameters:
symbolKeepAspect
- whether to keep aspect for symbols in the form ofpath://%svgPathData%
-
getSymbolOffset
- Specified by:
getSymbolOffset
in interfaceHasSymbols<MarkPoint.Point>
- Returns:
- offset of symbol relative to original position
-
setSymbolOffset
Description copied from interface:HasSymbols
Sets an offset of symbol relative to original position or replaces an existing one.
Possible values:-
Pixel values:
hasSymbols.setSymbolOffset("10", "10");
. -
Percentage values:
hasSymbols.setSymbolOffset("50%", "45%");
. -
Pixel and percentage values combination:
hasSymbols.setSymbolOffset("5", "50%");
.
- Specified by:
setSymbolOffset
in interfaceHasSymbols<MarkPoint.Point>
- Parameters:
xOffset
- horizontal offsetyOffset
- vertical offset
-
Pixel values:
-
getEmphasis
-
setEmphasis
-
withName
-
withType
-
withValueIndex
-
withValueDim
-
withCoordinate
-
withCoordinate
-
withX
-
withY
-
withEmphasis
-