Package tech.tablesaw.plotly.components
Class ColorBar.ColorBarBuilder
java.lang.Object
tech.tablesaw.plotly.components.ColorBar.ColorBarBuilder
- Enclosing class:
- ColorBar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the color of padded area.borderColor(String color) Sets the color of the border enclosing this color bar.borderWidth(int width) Sets the width (in px) or the border enclosing this color bar.build()len(double len) Sets the length of the color bar, This measure excludes the size of the padding, ticks and labels.lenMode(ColorBar.LenMode lenMode) Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in "pixels.outlineColor(String outlineColor) Sets the axis line color.outlineWidth(int width) Sets the width (in px) of the axis line.thickness(double thickness) Sets the thickness of the color bar, This measure excludes the size of the padding, ticks and labels.tickSettings(TickSettings tickSettings) x(double x) A number between or equal to -2and 3) default:1.02 Sets the x position of the color bar(in plot fraction).xAnchor(ColorBar.Xanchor xAnchor) Sets this color bar's horizontal position anchor.xPad(int xPad) Sets the amount of padding(in px) along the x direction.y(double y) A number between or equal to -2and 3) default:0.5 Sets the y position of the color bar (in plot fraction).yAnchor(ColorBar.Yanchor yAnchor) Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar.yPad(int yPad) Sets the amount of paddng (in px) along the y direction.
-
Constructor Details
-
ColorBarBuilder
public ColorBarBuilder()
-
-
Method Details
-
thickness
Sets the thickness of the color bar, This measure excludes the size of the padding, ticks and labels.- Parameters:
thickness- a double greater than 0- Returns:
- this ColorBar
-
len
Sets the length of the color bar, This measure excludes the size of the padding, ticks and labels.- Parameters:
len- a double greater than 0- Returns:
- this ColorBar
-
lenMode
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in "pixels. Use `len` to set the value. -
thicknessMode
-
x
A number between or equal to -2and 3) default:1.02 Sets the x position of the color bar(in plot fraction). -
y
A number between or equal to -2and 3) default:0.5 Sets the y position of the color bar (in plot fraction). -
xAnchor
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. -
yAnchor
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. -
yPad
Sets the amount of paddng (in px) along the y direction. -
xPad
Sets the amount of padding(in px) along the x direction. -
outlineColor
Sets the axis line color. -
borderColor
Sets the color of the border enclosing this color bar. -
bgColor
Sets the color of padded area. -
borderWidth
Sets the width (in px) or the border enclosing this color bar. -
outlineWidth
Sets the width (in px) of the axis line. -
tickSettings
-
build
-