public interface Style extends Serializable
Style
represents the visual presentation ('styling') attributes of
a value in a Row
. Styling can be used to highlight special values and
format the cells of eg. a spreadsheet.
Most datastores don't support styling, but some do. Those who do not support
it will just omit it.
Creation of Style
objects is handled by the StyleBuilder
class.Modifier and Type | Interface and Description |
---|---|
static interface |
Style.Color
Represents a color used for value highlighting.
|
static class |
Style.SizeUnit
Represents a unit of sizing elements (eg.
|
static class |
Style.TextAlignment
Represents the text alignment of a value.
|
Modifier and Type | Field and Description |
---|---|
static Style |
NO_STYLE
A style object used for values without styling, "unstyled" values or
"neutrally styled" values.
|
Modifier and Type | Method and Description |
---|---|
Style.TextAlignment |
getAlignment()
Gets the text alignment, or null if text alignment is unspecified.
|
Style.Color |
getBackgroundColor()
Gets the background color, or null if the color is unspecified.
|
Integer |
getFontSize()
Gets the font size, or null if font size is unspecified.
|
Style.SizeUnit |
getFontSizeUnit()
Gets the unit of the font size.
|
Style.Color |
getForegroundColor()
Gets the foreground (text) color, or null if the color is unspecified.
|
boolean |
isBold()
Determines whether or not the value is written in bold text.
|
boolean |
isItalic()
Determines whether or not the value is written in italic text.
|
boolean |
isUnderline()
Determines whether or not the value is written with an underline
|
String |
toCSS()
Creates a Cascading Style Sheets (CSS) representation of this style.
|
static final Style NO_STYLE
boolean isBold()
boolean isItalic()
boolean isUnderline()
Integer getFontSize()
Style.SizeUnit
Style.SizeUnit getFontSizeUnit()
Style.TextAlignment getAlignment()
Style.Color getForegroundColor()
Style.Color getBackgroundColor()
String toCSS()
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.