Uses of Class
io.keikai.axyra.sheets.style.Color
Packages that use Color
Package
Description
Public Java API for the Axyra Sheets engine.
The objects a workbook or sheet holds besides cell values: charts, tables,
data validations, conditional formats, comments, hyperlinks, sparklines,
form controls, slicers, timelines, external links, embedded objects and
more.
Cell styles, colors and workbook themes.
-
Uses of Color in io.keikai.axyra.sheets
Methods in io.keikai.axyra.sheets that return ColorModifier and TypeMethodDescriptionChartView.chartAreaFill()The chart-area fill color, ornullwhen none is set and the default white applies.ChartView.chartAreaLineColor()The chart-area border color, ornullwhen none is set.FindFormat.fillColor()Returns the value of thefillColorrecord component.FindFormat.fontColor()Returns the value of thefontColorrecord component.ChartView.plotAreaFill()The plot-area fill color, ornullwhen none is set.ChartView.plotAreaLineColor()The plot-area border color, ornullwhen none is set.ChartView.seriesFill(int seriesIndex) The solid fill color set on a series, ornullwhen the series uses the theme color.Sheet.shapeFillColor(int shapeIndex) Returns the shape's solid fill color as an RGB color, ornullwhen the shape has no solid RGB fill: no fill, a gradient, a pattern or a theme color.Sheet.shapeLineColor(int shapeIndex) Returns the shape's outline color as an RGB color, ornullwhen it has no solid RGB outline.Sheet.tabColor()Returns the tab color, ornullwhen the tab has none.Methods in io.keikai.axyra.sheets that return types with arguments of type ColorModifier and TypeMethodDescriptionChartView.seriesPointFills(int seriesIndex) The explicit per-data-point (per-slice / per-bar) fill overrides of a series, keyed by 0-based point index (ECMA-376 §21.2.2.52 dPt).Methods in io.keikai.axyra.sheets with parameters of type ColorModifier and TypeMethodDescriptionvoidSheet.setColumnColorFilter(int columnIndex, boolean cellColor, Color color) Filters a column by cell fill color, or by font color whencellColorisfalse: only rows whose cell hascolorstay visible.ChartView.setSeriesFill(int seriesIndex, Color fill) Sets the solid fill of one series, or removes it withnullso the theme color applies.voidSheet.setShapeFillColor(int shapeIndex, Color color) Sets the shape's fill to a solid color, replacing any gradient or pattern fill.voidSheet.setShapeLineColor(int shapeIndex, Color color) Sets the shape's outline color.voidSheet.setTabColor(Color color) Sets the tab color.voidSheet.sortByColor(Range range, int sortColumnIndex, boolean cellColor, boolean hasHeader, Color... colors) Sort the rows ofrangeby cell fill color (or font color whencellColoris false) atsortColumnIndex(0-based, relative to the range start).FindFormat.withFillColor(Color c) Returns a copy matching cells whose fill foreground (pattern) color equalsc.FindFormat.withFontColor(Color c) Returns a copy matching cells whose font color equalsc.Constructors in io.keikai.axyra.sheets with parameters of type Color -
Uses of Color in io.keikai.axyra.sheets.content
Methods in io.keikai.axyra.sheets.content that return ColorModifier and TypeMethodDescriptionRichText.RunInfo.color()Returns the value of thecolorrecord component.DataLabels.textColor()Returns the value of thetextColorrecord component.Methods in io.keikai.axyra.sheets.content with parameters of type ColorModifier and TypeMethodDescriptionSets the data-bar axis color.ConditionalFormat.Builder.barBorderColor(Color color) Draws a data-bar border incolor.ConditionalFormat.Builder.border(BorderStyle style, Color color) Draw the same border style and color on all four edges of matching cells — the differential<border>of the rule style.ConditionalFormat.Builder.borderSide(String side, BorderStyle borderStyle, Color color) Draw a border on one edge ("left","right","top", or"bottom") of matching cells.Chart.Builder.chartAreaBorder(Color color) Sets the chart-area border color.Chart.Builder.chartAreaFill(Color fill) Chart-area fill color (ECMA-376 §21.2.2.198<c:spPr>on the chart space).Sets the run's font color.ConditionalFormat.Builder.colorScale(Color... colors) A 2- or 3-color scale rule (min → [mid] → max).A data-bar rule drawn incolor.Fills matching cells with a solidcolor.Sets the font color of matching cells.ConditionalFormat.Builder.negativeBorderColor(Color color) Sets the border color of negative-value data bars.ConditionalFormat.Builder.negativeFillColor(Color color) Sets the fill color of negative-value data bars.Chart.Builder.plotAreaBorder(Color color) Sets the plot-area border color.Chart.Builder.plotAreaFill(Color fill) Sets the plot-area fill color.Override the fill color of one data point (pie slice / bar) on the most recently added series (ECMA-376 §21.2.2.52 dPt).Adds a data series with a solid fill color.DataLabels.withTextColor(Color color) Copy with the given label text color, an RGB color (nullinherits).Constructors in io.keikai.axyra.sheets.content with parameters of type ColorModifierConstructorDescriptionDataLabels(boolean showValue, boolean showCategoryName, boolean showSeriesName, boolean showPercent, boolean showLegendKey, String position, String numberFormat, Integer rotation, Color textColor, Boolean bold, Double fontSize) Creates an instance of aDataLabelsrecord class.RunInfo(String text, String fontName, Double fontSize, boolean bold, boolean italic, boolean underline, boolean strike, Color color) Creates an instance of aRunInforecord class. -
Uses of Color in io.keikai.axyra.sheets.style
Fields in io.keikai.axyra.sheets.style declared as ColorModifier and TypeFieldDescriptionstatic final ColorColor.BLACKOpaque black, #000000.static final ColorColor.BLUEOpaque blue, #0000FF.static final ColorColor.GRAYOpaque gray, #808080.static final ColorColor.GREENOpaque green, #008000 (HTML green, not #00FF00).static final ColorColor.REDOpaque red, #FF0000.static final ColorColor.WHITEOpaque white, #FFFFFF.static final ColorColor.YELLOWOpaque yellow, #FFFF00.Methods in io.keikai.axyra.sheets.style that return ColorModifier and TypeMethodDescriptionstatic ColorColor.argb(int a, int r, int g, int b) An RGB color with an alpha channel.static ColorColor.auto()The automatic color: Excel's "Automatic", which draws as the window-text color (black by default).BorderEdge.color()Returns the value of thecolorrecord component.GradientStop.color()Returns the value of thecolorrecord component.CellStyle.fillBackgroundColor()The fill background color, drawn behind the pattern of a non-solid fill.CellStyle.fillColor()The fill foreground color: the visible color of aPatternType.SOLIDfill, or the pattern color of the other patterns.CellStyle.fontColor()The font color: RGB, theme, indexed or automatic.static ColorDecodes the engine's JSON color form: a map such as{"rgb":"#AARRGGBB"},{"indexed":N},{"theme":I,"tint":T}or{"auto":true}, or a string in a form thatparse(String)accepts.static ColorColor.indexed(int index) A legacy indexed-palette color (ECMA-376 §18.8.27).static ColorColor.of(int argb) An RGB color from a packed0xAARRGGBBvalue.static ColorParses a color string.static ColorColor.rgb(int r, int g, int b) An opaque RGB color (alpha 255).Theme.rgb(Theme.Slot slot) The color of a slot as an RGBColor.static ColorColor.theme(int themeIndex) A theme-palette color with no tint.static ColorColor.theme(int themeIndex, double tint) A theme-palette color with a tint.Methods in io.keikai.axyra.sheets.style with parameters of type ColorModifier and TypeMethodDescriptionCellStyle.Builder.allBorders(BorderStyle style, Color color) Sets the left, right, top and bottom edges of each cell to the same line.CellStyle.Builder.border(Side side, BorderStyle style, Color color) Sets one border edge.Theme.Builder.color(Theme.Slot slot, Color color) Sets a slot to an RGB color, stored as"RRGGBB".CellStyle.Builder.fillPattern(PatternType pattern, Color foreground, Color background) Sets a patterned fill:patterndrawn inforegroundoverbackground.Sets the font color.CellStyle.Builder.gradientFill(int degree, Color... colors) Sets a linear gradient fill acrosscolors, spread evenly from position 0 to 1.CellStyle.Builder.pathGradientFill(Color... colors) Sets a path gradient fill that converges at the cell center (Excel's "From center" gradient), acrosscolorsspread evenly from position 0 to 1.Constructors in io.keikai.axyra.sheets.style with parameters of type ColorModifierConstructorDescriptionBorderEdge(BorderStyle style, Color color) Creates an instance of aBorderEdgerecord class.GradientStop(double position, Color color) Creates an instance of aGradientStoprecord class.