Class AbstractVisualMap<T extends AbstractVisualMap<T>>
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.visualMap.AbstractVisualMap<T>
- Type Parameters:
T
- origin class type
- All Implemented Interfaces:
HasPosition<T>
,HasPadding<T>
,Serializable
- Direct Known Subclasses:
ContinuousVisualMap
,PiecewiseVisualMap
public abstract class AbstractVisualMap<T extends AbstractVisualMap<T>>
extends ChartObservableObject
implements HasPadding<T>, HasPosition<T>
Base class for component type for visual encoding.
Multiple
visualMap
component could be defined in a chart instance, which enable
that different dimensions of a series data are mapped to different visual channels.
More detailed information is provided in the documentation.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The layout relationship between the graphical elements for pieces and their labels.static class
Controller forAbstractVisualMap.VisualMapController.inRange
andAbstractVisualMap.VisualMapController.outOfRange
properties.Nested classes/interfaces inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
ChartObservableObject.ObjectChangeEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected AbstractVisualMap.MapAlign
protected Color
protected Color
protected Double
protected String
protected AbstractVisualMap.VisualMapController
protected String
protected String
protected JsFunction
protected Boolean
protected String
protected VisualEffect
protected Boolean
protected Double
protected Double
protected String
protected Double
protected Double
protected Orientation
protected VisualEffect
protected Padding
protected Double
protected String
protected Integer[]
protected Boolean
protected String[]
protected Double
protected TextStyle
protected String
protected VisualMapType
protected Double
protected Double
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlign()
getId()
getLeft()
getMax()
getMin()
getRight()
Integer[]
getShow()
String[]
getText()
getTop()
getType()
getZ()
void
void
setBackgroundColor
(Color backgroundColor) void
setBorderColor
(Color borderColor) void
setBorderWidth
(Double borderWidth) void
Sets a distance between component and the bottom side of the container.
Possible values are: A pixel value like"20"
.void
setController
(AbstractVisualMap.VisualMapController controller) void
setDimension
(String dimension) void
setFormatter
(String formatter) void
setFormatterFunction
(JsFunction formatterFunction) void
setFormatterFunction
(String formatterFunction) void
setHoverLink
(Boolean hoverLink) void
void
setInRange
(VisualEffect inRange) void
setInverse
(Boolean inverse) void
setItemHeight
(Double itemHeight) void
setItemWidth
(Double itemWidth) void
Sets a distance between component and the left side of the container.
Possible values are: A pixel value like"20"
.void
void
void
setOrientation
(Orientation orientation) void
setOutOfRange
(VisualEffect outOfRange) void
setPadding
(Integer padding) Sets padding on each of the four sides or replaces an existing one.void
setPadding
(Integer vertical, Integer horizontal) Sets the top/bottom and left/right paddings or replaces an existing one.void
setPadding
(Integer top, Integer right, Integer bottom, Integer left) Sets each of the four paddings separately.void
setPrecision
(Double precision) void
Sets a distance between component and the right side of the container.
Possible values are: A pixel value like"20"
.void
setSeriesIndex
(Integer... seriesIndex) void
void
void
setTextGap
(Double textGap) void
setTextStyle
(TextStyle textStyle) void
Sets a distance between component and the top side of the container.
Possible values are: A pixel value like"20"
.void
void
withBackgroundColor
(Color backgroundColor) withBorderColor
(Color borderColor) withBorderWidth
(Double borderWidth) withController
(AbstractVisualMap.VisualMapController controller) withDimension
(String dimension) withFormatter
(String formatter) withFormatterFunction
(JsFunction formatterFunction) withFormatterFunction
(String formatterFunction) withHoverLink
(Boolean hoverLink) withInRange
(VisualEffect inRange) withInverse
(Boolean inverse) withItemHeight
(Double itemHeight) withItemWidth
(Double itemWidth) withOrientation
(Orientation orient) withOutOfRange
(VisualEffect outOfRange) withPrecision
(Double precision) withSeriesIndex
(Integer... seriesIndex) withTextGap
(Double textGap) withTextStyle
(TextStyle textStyle) withZLevel
(Double zLevel) 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.HasPadding
withPadding, withPadding, withPadding
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.HasPosition
withBottom, withLeft, withRight, withTop
-
Field Details
-
id
-
type
-
min
-
max
-
inverse
-
precision
-
itemWidth
-
itemHeight
-
align
-
text
-
textGap
-
show
-
dimension
-
seriesIndex
-
hoverLink
-
inRange
-
outOfRange
-
controller
-
zLevel
-
z
-
left
-
top
-
right
-
bottom
-
padding
-
backgroundColor
-
borderColor
-
borderWidth
-
textStyle
-
formatter
-
formatterFunction
-
orientation
-
-
Constructor Details
-
AbstractVisualMap
-
-
Method Details
-
getId
-
setId
-
getType
-
getMin
-
setMin
-
getMax
-
setMax
-
getInverse
-
setInverse
-
getPrecision
-
setPrecision
-
getItemWidth
-
setItemWidth
-
getItemHeight
-
setItemHeight
-
getAlign
-
setAlign
-
getText
-
setText
-
getTextGap
-
setTextGap
-
getShow
-
setShow
-
getDimension
-
setDimension
-
getSeriesIndex
-
setSeriesIndex
-
getHoverLink
-
setHoverLink
-
getInRange
-
getOutOfRange
-
getController
-
setController
-
getZLevel
-
setZLevel
-
getZ
-
setZ
-
getLeft
- Specified by:
getLeft
in interfaceHasPosition<T extends AbstractVisualMap<T>>
- Returns:
- distance between component and the left side of the container
-
setLeft
Description copied from interface:HasPosition
Sets a distance between component and the left side of the container.
Possible values are:-
A pixel value like
"20"
. -
Percentage value relative to container width like
"20%"
. -
Predefined values like
"left"
,"center"
,"right"
.
- Specified by:
setLeft
in interfaceHasPosition<T extends AbstractVisualMap<T>>
- Parameters:
left
- distance to set
-
A pixel value like
-
getTop
- Specified by:
getTop
in interfaceHasPosition<T extends AbstractVisualMap<T>>
- Returns:
- distance between component and the top side of the container
-
setTop
Description copied from interface:HasPosition
Sets a distance between component and the top side of the container.
Possible values are:-
A pixel value like
"20"
. -
Percentage value relative to container width like
"20%"
. -
Predefined values like
"top"
,"middle"
,"bottom"
.
- Specified by:
setTop
in interfaceHasPosition<T extends AbstractVisualMap<T>>
- Parameters:
top
- distance to set
-
A pixel value like
-
getRight
- Specified by:
getRight
in interfaceHasPosition<T extends AbstractVisualMap<T>>
- Returns:
- distance between component and the right side of the container
-
setRight
Description copied from interface:HasPosition
Sets a distance between component and the right side of the container.
Possible values are:-
A pixel value like
"20"
. -
Percentage value relative to container width like
"20%"
.
- Specified by:
setRight
in interfaceHasPosition<T extends AbstractVisualMap<T>>
- Parameters:
right
- distance to set
-
A pixel value like
-
getBottom
- Specified by:
getBottom
in interfaceHasPosition<T extends AbstractVisualMap<T>>
- Returns:
- distance between component and the bottom side of the container
-
setBottom
Description copied from interface:HasPosition
Sets a distance between component and the bottom side of the container.
Possible values are:-
A pixel value like
"20"
. -
Percentage value relative to container width like
"20%"
.
- Specified by:
setBottom
in interfaceHasPosition<T extends AbstractVisualMap<T>>
- Parameters:
bottom
- distance to set
-
A pixel value like
-
getPadding
- Specified by:
getPadding
in interfaceHasPadding<T extends AbstractVisualMap<T>>
- Returns:
- space around content
-
setPadding
Description copied from interface:HasPadding
Sets padding on each of the four sides or replaces an existing one. The unit is px.- Specified by:
setPadding
in interfaceHasPadding<T extends AbstractVisualMap<T>>
- Parameters:
padding
- padding to set
-
setPadding
Description copied from interface:HasPadding
Sets the top/bottom and left/right paddings or replaces an existing one. The unit is px.- Specified by:
setPadding
in interfaceHasPadding<T extends AbstractVisualMap<T>>
- Parameters:
vertical
- top and bottom padding to sethorizontal
- left and right padding to set
-
setPadding
Description copied from interface:HasPadding
Sets each of the four paddings separately. The unit is px.- Specified by:
setPadding
in interfaceHasPadding<T extends AbstractVisualMap<T>>
- Parameters:
top
- top padding to setright
- right padding to setbottom
- bottom padding to setleft
- left padding to set
-
getBackgroundColor
-
getBorderColor
-
getBorderWidth
-
setBorderWidth
-
getTextStyle
-
getFormatter
-
setFormatter
-
getFormatterFunction
-
setFormatterFunction
-
getOrientation
-
withId
-
withMin
-
withMax
-
withInverse
-
withPrecision
-
withItemWidth
-
withItemHeight
-
withAlign
-
withText
-
withTextGap
-
withShow
-
withDimension
-
withSeriesIndex
-
withHoverLink
-
withController
-
withZLevel
-
withZ
-
withBorderWidth
-
withFormatter
-
withFormatterFunction
-