@API(type=NOT_EXTENDABLE,
src=PRIVATE)
public class Styles
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected static int |
counter
Constants counter
|
static float |
EX_FACTOR
This is the factor: ex-height / em-height
The ex unit is defined by the font's x-height.
|
static int |
FONT_WEIGHT_BOLD
Value for the "bold" in the font-weight propery.
|
static int |
FONT_WEIGHT_NORMAL
Value for the "normal" in the font-weight propery.
|
static int |
KEY_ALIGNMENT_BASELINE
Property for CSS media paged, the alignment relative to the baseline.
|
static int |
KEY_BACKGROUND_COLOR
Background color.
|
static int |
KEY_BACKGROUND_IMAGE
Key used to store the property 'background-image' value.
|
static int |
KEY_BACKGROUND_POSITION
Key used to store the property 'background-position' value.
|
static int |
KEY_BACKGROUND_REPEAT
Key used to store the property 'background-repeat' value.
|
static int |
KEY_BACKGROUND_SIZE
Key used to store the property 'background-size' value.
|
static int |
KEY_BOOKMARK_LABEL
Bookmark label.
|
static int |
KEY_BOOKMARK_LEVEL
Bookmark level.
|
static int |
KEY_BOOKMARK_STATE
Bookmark state.
|
static int |
KEY_BORDER_BOTTOM_COLOR
Border bottom color
|
static int |
KEY_BORDER_BOTTOM_LEFT_RADIUS
border-bottom-left-radius.
|
static int |
KEY_BORDER_BOTTOM_RIGHT_RADIUS
border-bottom-right-radius.
|
static int |
KEY_BORDER_BOTTOM_STYLE
Border bottom style
|
static int |
KEY_BORDER_BOTTOM_WIDTH
Border bottom width
|
static int |
KEY_BORDER_COLLAPSE
This property selects a table's border model.
|
static int |
KEY_BORDER_LEFT_COLOR
Border left color
|
static int |
KEY_BORDER_LEFT_STYLE
Border right style
|
static int |
KEY_BORDER_LEFT_WIDTH
Border left width
|
static int |
KEY_BORDER_RIGHT_COLOR
Border right color
|
static int |
KEY_BORDER_RIGHT_STYLE
Border right style
|
static int |
KEY_BORDER_RIGHT_WIDTH
Border right width
|
static int |
KEY_BORDER_SPACING
Key for the border spacing array
|
static int |
KEY_BORDER_TOP_COLOR
Border top color
|
static int |
KEY_BORDER_TOP_LEFT_RADIUS
border-top-left-radius.
|
static int |
KEY_BORDER_TOP_RIGHT_RADIUS
border-top-right-radius.
|
static int |
KEY_BORDER_TOP_STYLE
Border top style
|
static int |
KEY_BORDER_TOP_WIDTH
Border top width
|
static int |
KEY_BOTTOM
The 'bottom' property.
|
static int |
KEY_CAPTION_SIDE
Property for CSS caption-side property.
|
static int |
KEY_COLUMN_SPAN
Specify how an element can span over a multiple column layout.
|
static int |
KEY_COUNTER_INCREMENT
The key for counter-increment .
|
static int |
KEY_COUNTER_RESET
The key for counter-reset .
|
static int |
KEY_DIRECT_WHITESPACE
Whitespace specified directly on the node, not inherited.
|
static int |
KEY_DIRECTION
Key used to store the property 'direction' value.
|
static int |
KEY_DISPLAY
Display type
|
static int |
KEY_DISPLAY_TAGS
Key used to hide sentinel markers.
|
static int |
KEY_EDITABLE
True if this view is editable
|
static int |
KEY_EMPTY_CELLS
Key used to store the property 'empty-cells' value as string.
|
static int |
KEY_EMPTY_CELLS_BOOLEAN
Key used to store the property 'empty-cells' value as boolean.
|
static int |
KEY_FILTERED_OUT
Key set for filtered out nodes.
|
static int |
KEY_FLOAT
Property for CSS media paged "float".
|
static int |
KEY_FOLDABLE
Key used to store the property 'foldable' value.
|
static int |
KEY_FOLDED
Key used to store the property 'folded' value.
|
static int |
KEY_FONT
Used font
|
static int |
KEY_FONT_FAMILY
Font family.
|
static int |
KEY_FONT_SIZE
Font size.
|
static int |
KEY_FONT_STYLE
Font style.
|
static int |
KEY_FONT_VARIANT
Font variant
|
static int |
KEY_FONT_VARIANT_ALTERNATES
Font variant alternates.
|
static int |
KEY_FONT_VARIANT_LIGATURES
Font variant ligatures.
|
static int |
KEY_FONT_VARIANT_NUMERIC
Font variant numeric.
|
static int |
KEY_FONT_WEIGHT
Font weight
|
static int |
KEY_FOREGROUND_COLOR
Foreground
|
static int |
KEY_HEIGHT
Height.
|
static int |
KEY_HYPHENS
This property controls whether hyphenation is allowed to
create more soft wrap opportunities within a line of text.
|
static int |
KEY_IMAGE_RESOLUTION
Key used to specify the image DPI.
|
static int |
KEY_IMPOSED_DISPLAY
Key used to override the display property defined in the css.
|
static int |
KEY_LEFT
The 'left' property.
|
static int |
KEY_LETTER_SPACING
Font letter spacing.
|
static int |
KEY_LINE_HEIGHT
If it is a float, it means a line height multiplier, which is relative to the
current font, and was specified as a number without metric or a percent.
|
static int |
KEY_LINK
Key used to store the URL for link elements.
|
static int |
KEY_LINK_URL
Deprecated.
since 17
|
static int |
KEY_LIST_STYLE_IMAGE
List style image
|
static int |
KEY_LIST_STYLE_POSITION
List style position
|
static int |
KEY_LIST_STYLE_TYPE
List style type
|
static int |
KEY_MARGIN_BOTTOM
Margin dimensions
|
static int |
KEY_MARGIN_LEFT
Margin left
|
static int |
KEY_MARGIN_RIGHT
Margin right
|
static int |
KEY_MARGIN_TOP
Margin top
|
static int |
KEY_MAX_HEIGHT
Maximum height.
|
static int |
KEY_MAX_WIDTH
Maximum width.
|
static int |
KEY_MIN_HEIGHT
Minimum height.
|
static int |
KEY_MIN_WIDTH
Minimum width.
|
static int |
KEY_MIXED_CONTENT
Generated mixed Content property key.
|
static int |
KEY_NON_FOLDABLE_CHILD_NAME
Key used to store the property 'non foldable child name' value.
|
static int |
KEY_ORPHANS
Property for CSS media paged "orphans".
|
static int |
KEY_OUTLINE_COLOR
Outline color
|
static int |
KEY_OUTLINE_STYLE
Outline style
|
static int |
KEY_OUTLINE_WIDTH
Outline width
|
static int |
KEY_OVERFLOW_WRAP
Overflow wrap.
|
static int |
KEY_OXY_ALT_TEXT
Key used to specify the accessibility alternate text.
|
static int |
KEY_OXY_AVOID_BREAKING_LINE_AT_HYPHENS
Controls the line breaking status for hyphens.
|
static int |
KEY_OXY_BORDERS_CONDITIONALITY
Property for -oxy-borders-conditionality which allow borders on line breaks.
|
static int |
KEY_OXY_CAPTION_REPEAT_ON_NEXT_PAGES
Property enabling the table caption repetition on next pages (When the table is long
and it spans multiple pages).
|
static int |
KEY_OXY_CHANGEBAR_COLOR
Property for -oxy-changebar-color, set the changebar color.
|
static int |
KEY_OXY_CHANGEBAR_OFFSET
Property for -oxy-changebar-offset, set the distance from the column edge.
|
static int |
KEY_OXY_CHANGEBAR_PLACEMENT
Property for -oxy-changebar-placement, set the changebar position.
|
static int |
KEY_OXY_CHANGEBAR_STYLE
Property for -oxy-changebar-style, set how the change bar appears.
|
static int |
KEY_OXY_CHANGEBAR_WIDTH
Property for -oxy-changebar-width, set the changebar color.
|
static int |
KEY_OXY_COLUMN_BREAK_AFTER
Property for CSS media paged, signals the column break policy that applies.
|
static int |
KEY_OXY_COLUMN_BREAK_BEFORE
Property for CSS media paged, signals the column break policy that applies.
|
static int |
KEY_OXY_COLUMN_BREAK_INSIDE
Property for CSS media paged, signals the column break policy that applies.
|
static int |
KEY_OXY_FLOATING_TOOLBAR
Key used to store the property -oxy-floating-toolbar.
|
static int |
KEY_OXY_HYPHENATION_CHARACTER
An oxygen extension, mostly used to hide the hyphen characters.
|
static int |
KEY_OXY_HYPHENATION_PUSH_CHARACTER_COUNT
The minimum number of characters in a hyphenated word after the
hyphenation character.
|
static int |
KEY_OXY_HYPHENATION_REMAIN_CHARACTER_COUNT
The hyphenation-remain-character-count specifies the minimum
number of characters in a hyphenated word before the hyphenation
character.
|
static int |
KEY_OXY_LINK_ACTIVATION_TRIGGER
Key used to store the property '-oxy-link-activation-trigger' value.
|
static int |
KEY_OXY_PAGE_GROUP
The
oxy-page-group property. |
static int |
KEY_OXY_PDF_META_AUTHOR
Key used for PDF metadata.
|
static int |
KEY_OXY_PDF_META_CUSTOM
Key used for PDF metadata.
|
static int |
KEY_OXY_PDF_META_DESCRIPTION
Key used for PDF metadata.
|
static int |
KEY_OXY_PDF_META_KEYWORD
Key used for PDF metadata.
|
static int |
KEY_OXY_PDF_META_KEYWORDS
Key used for PDF metadata.
|
static int |
KEY_OXY_PDF_META_TITLE
Key used for PDF metadata.
|
static int |
KEY_OXY_PDF_TAG_TYPE
Key used to specify the accessibility PDF tag.
|
static int |
KEY_OXY_SHOW_ONLY_WHEN_CAPTION_REPEATED_ON_NEXT_PAGES
Property that marks a pseudo :before or :after that is associated
to a table caption.
|
static int |
KEY_OXY_STYLE
The -oxy-style property that defines additional styles.
|
static int |
KEY_PADDING_BOTTOM
Padding dimensions
|
static int |
KEY_PADDING_LEFT
Pad left
|
static int |
KEY_PADDING_RIGHT
Pad right
|
static int |
KEY_PADDING_TOP
Pad top
|
static int |
KEY_PAGE
The CSS page - for media print.
|
static int |
KEY_PAGE_BREAK_AFTER
Property for CSS media paged, signals the page break policy that applies.
|
static int |
KEY_PAGE_BREAK_BEFORE
Property for CSS media paged, signals the page break policy that applies.
|
static int |
KEY_PAGE_BREAK_INSIDE
Property for CSS media paged, signals the page break policy that applies.
|
static int |
KEY_PLACEHOLDER_CONTENT
Key used to store the property 'placeholder-content' value.
|
static int |
KEY_POSITION
The 'position' property.
|
static int |
KEY_RIGHT
The 'right' property.
|
static int |
KEY_SHOW_PLACEHOLDER
Key used to store the property 'show-placeholder' value.
|
static int |
KEY_STRING_SET
Property for CSS media paged "string-set".
|
static int |
KEY_TABLE_COLUMN_SPAN
CSS property taken into account to compute the column spanning of a table cell.
|
static int |
KEY_TABLE_LAYOUT
The 'table-layout' property controls the algorithm used to lay out the table cells, rows, and columns.
|
static int |
KEY_TABLE_ROW_SPAN
CSS property taken into account to compute the row spanning of a table cell.
|
static int |
KEY_TAGS_BACKGROUND_COLOR
Key used to store the property '-oxy-tags-background-color' value.
|
static int |
KEY_TAGS_COLOR
Key used to store the property '-oxy-tags-color' value.
|
static int |
KEY_TEXT_ALIGN
Text align
|
static int |
KEY_TEXT_DECORATION
Deprecated.
It is a shorthand now, use
KEY_TEXT_DECORATION_LINE ,
KEY_TEXT_DECORATION_COLOR , KEY_TEXT_DECORATION_STYLE instead. |
static int |
KEY_TEXT_DECORATION_COLOR
Key used to store color for text decoration.
|
static int |
KEY_TEXT_DECORATION_LINE
Key used to store 'text-decoration-line' property.
|
static int |
KEY_TEXT_DECORATION_STYLE
Key used to store 'text-decoration' property.
|
static int |
KEY_TEXT_INDENT
Text indent
|
static int |
KEY_TEXT_TRANSFORM
Text transform
|
static int |
KEY_TOP
The 'top' property.
|
static int |
KEY_TRANSFORM_ROTATION
Specify that the element can have a different rotation than the parent.
|
static int |
KEY_UNICODE_BIDI
Key used to store the property 'unicode-bidi' value.
|
static int |
KEY_VERTICAL_ALIGN
Key for vertical align.
|
static int |
KEY_VISIBILITY
Key for the 'visibility' property.
|
static int |
KEY_VISIBITY
Deprecated.
This is a typo of the
KEY_VISIBILITY . |
static int |
KEY_WHITESPACE
Whitespace
|
static int |
KEY_WIDOWS
Property for CSS media paged "widows".
|
static int |
KEY_WIDTH
Width.
|
protected static int |
pmCounter
All the properties before this counter are for media screen.
|
protected java.lang.Object[] |
stylesArray
The styles map
|
Constructor and Description |
---|
Styles()
Constructor.
|
Styles(boolean enablePagedMediaProperties)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
affectsCounters()
Checks if the styles increment or reset some of the counters.
|
boolean |
canBeCached()
Verify if styles can be cached.
|
Styles |
clone()
Shallow clone.
|
boolean |
dependsOnTargetCounter()
Checks if the style defines some static content using the
target-counter or target-counters CSS function.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlignmentBaseline() |
Color |
getBackgroundColor() |
URIContent |
getBackgroundImage()
This property sets the background image of an element.
|
BackgroundPosition |
getBackgroundPosition()
If a background position is specified, this property indicates the position of the background image
relative to its box.
|
java.lang.String |
getBackgroundRepeat()
If a background image is specified, this property specifies whether the image is repeated (tiled),
and how.
|
Color |
getBorderBottomColor() |
RelativeLength |
getBorderBottomLeftRadius() |
RelativeLength |
getBorderBottomRightRadius() |
java.lang.String |
getBorderBottomStyle() |
int |
getBorderBottomWidth() |
Color |
getBorderLeftColor() |
java.lang.String |
getBorderLeftStyle() |
int |
getBorderLeftWidth() |
Color |
getBorderRightColor() |
java.lang.String |
getBorderRightStyle() |
int |
getBorderRightWidth() |
java.lang.String |
getBordersConditionality() |
Color |
getBorderTopColor() |
RelativeLength |
getBorderTopLeftRadius() |
RelativeLength |
getBorderTopRightRadius() |
java.lang.String |
getBorderTopStyle() |
int |
getBorderTopWidth() |
RelativeLength |
getBottom() |
Color |
getColor() |
CSSCounter[] |
getCounters() |
CSSCounterIncrement[] |
getCountersIncrement() |
java.util.Map<java.lang.String,CustomPropertyValue> |
getCustomCssProperties() |
java.lang.String |
getDirection()
The direction CSS property should be set to match the direction of the text:
rtl for Hebrew
or Arabic text and ltr for other scripts. |
java.lang.String |
getDirectWhitespace() |
java.lang.String |
getDisplay()
First it looks at the KEY_IMPOSED_DISPLAY property.
|
java.lang.String |
getDisplayTags() |
Font |
getFont() |
java.lang.String |
getFontVariant()
Gets the font-variant.
|
int |
getFontWeight() |
RelativeLength |
getHeight() |
int |
getHorizontalBorderSpacing() |
java.lang.String |
getHyperlinkActivationType() |
RelativeLength |
getLeft() |
org.w3c.css.sac.LexicalUnit |
getLexicalUnit(int key)
Gets a lexical unit.
|
int |
getLineHeight(FontMetrics fm)
Sets the distance between lines: normal number length %
|
java.lang.String |
getLinkURL() |
java.lang.String |
getListStylePosition() |
java.lang.String |
getListStyleType() |
RelativeLength |
getMarginBottom() |
RelativeLength |
getMarginLeft() |
RelativeLength |
getMarginRight() |
RelativeLength |
getMarginTop() |
RelativeLength |
getMaxWidth() |
RelativeLength |
getMinHeight()
Gets the value associated with the min-height property
|
RelativeLength |
getMinWidth() |
StaticContent[] |
getMixedContent() |
java.lang.String[] |
getNonFoldableChildName() |
Color |
getOutlineColor() |
java.lang.String |
getOutlineStyle() |
int |
getOutlineWidth() |
RelativeLength |
getPaddingBottom() |
RelativeLength |
getPaddingLeft() |
RelativeLength |
getPaddingRight() |
RelativeLength |
getPaddingTop() |
java.lang.String |
getPlaceholderContent() |
java.lang.String |
getPosition()
Checks the 'position' property.
|
java.lang.Object |
getProperty(int property)
Gets a property value.
|
java.lang.Object |
getPropertyByName(java.lang.String name)
Retrieve the property by its name.
|
static java.lang.String |
getPropertyName(int index) |
int |
getPseudoLevel()
If this is the style for a pseudo element, get its level.
|
int |
getRecognizedPropertiesNumber()
Use this to get the number of recognized properties.
|
RelativeLength |
getRight() |
boolean |
getShowEmptyCells() |
java.lang.String |
getShowPlaceholders() |
java.util.Map<java.lang.String,StaticContent[]> |
getStringSet()
The string-set property contains one or more pairs, each consisting of an custom
identifier (the name of the named string) followed by a content-list describing
how to construct the value of the named string.
|
int |
getTableColumnSpan()
Gets the 'table-column-span' property value.
|
int |
getTableRowSpan()
Gets the 'table-row-span' property value.
|
Color |
getTagsBackgroundColor()
Obtain the color for full-tags background.
|
Color |
getTagsColor()
Obtain the color for full-tags background.
|
java.lang.String |
getTextAlign()
Aligns the text in an element: left right center justify.
|
java.lang.String[] |
getTextDecoration()
Deprecated.
This was used to return only the text-decoration-line part from the text-decoration shorthand,
as defined here https://drafts.csswg.org/css-text-decor-3/#text-decoration-property.
|
Color |
getTextDecorationColor() |
java.lang.String[] |
getTextDecorationLine() |
java.lang.String |
getTextDecorationStyle() |
RelativeLength |
getTextIndent()
Gets the horizontal space that should be left before the
beginning of the first line of the text content of an element.
|
java.lang.String |
getTextTransform() |
RelativeLength |
getTop() |
java.lang.String |
getUnicodeBIDI()
The unicode-bidi CSS property together with the direction property relates to the handling
of bidirectional text in a document.
|
java.lang.String |
getVerticalAlign() |
int |
getVerticalBorderSpacing() |
java.lang.String |
getVisibility() |
java.lang.String |
getWhitespace() |
RelativeLength |
getWidth() |
boolean |
hasBorder() |
int |
hashCode() |
boolean |
isChangebarDisplay()
Check if the display has '-oxy-change-bar-start' or '-oxy-change-bar-end' value.
|
boolean |
isEditable() |
boolean |
isEnablePagedMediaProperties() |
boolean |
isFilteredOut() |
boolean |
isFoldable() |
boolean |
isFolded() |
static boolean |
isInheritable(int property)
Check if the given property should be copied from parent to child.
|
static boolean |
isInheritable(java.lang.String property)
Check if the given property can be inherited from parent to child.
|
boolean |
isInline()
Gets the imposed display - it may be the same as the one specified in the CSS - and checks if it is inline or inline block.
|
boolean |
isInlineBlockInCSS() |
boolean |
isInlineInCSS() |
boolean |
isInTable()
Check if is a style from a table but not a cell.
|
boolean |
isInvisible() |
boolean |
isListItem() |
boolean |
isMorphDisplay()
Check if the display has 'morph' or '-oxy-morph' value.
|
boolean |
isSpecifiedTextAlign()
Checks if the text-align property from the current element styles
has a value specified by the CSS.
|
boolean |
isTable()
Checks if the display mode indicated to be a table.
|
boolean |
isTableCaption()
Checks if the display mode indicated to be a table caption.
|
boolean |
isTableCell()
Checks if the display mode indicated to be a table cell.
|
boolean |
isTableColumn()
Checks if the display mode indicated to be a table column.
|
boolean |
isTableColumnGroup()
Checks if the display mode indicated to be a table group of columns.
|
boolean |
isTableFooterGroup()
Checks if the display mode indicated to be a table group footer.
|
boolean |
isTableHeaderGroup()
Checks if the display mode indicated to be a table group header.
|
boolean |
isTableRow() |
boolean |
isTableRowGroup() |
void |
setCanBeCached(boolean canBeCached)
Sets if those styles can be shared between two or more nodes.
|
void |
setCustomProperty(java.util.Map<java.lang.String,CustomPropertyValue> props)
Sets the list of custom CSS properties and their values.
|
void |
setProperty(int property,
java.lang.Object value)
Set a property to the map.
|
void |
setProperty(int property,
java.lang.Object value,
org.w3c.css.sac.LexicalUnit lu)
Set a property to the map.
|
void |
setPseudoLevel(int pseudoLevel)
If this is the style for a pseudo element, keep here its level.
|
java.lang.String |
toString() |
public static final float EX_FACTOR
public static final int FONT_WEIGHT_NORMAL
public static final int FONT_WEIGHT_BOLD
protected static int counter
public static final int KEY_BACKGROUND_COLOR
public static final int KEY_BORDER_BOTTOM_COLOR
public static final int KEY_BORDER_BOTTOM_STYLE
public static final int KEY_BORDER_BOTTOM_WIDTH
public static final int KEY_BORDER_LEFT_COLOR
public static final int KEY_BORDER_LEFT_STYLE
public static final int KEY_BORDER_LEFT_WIDTH
public static final int KEY_BORDER_RIGHT_COLOR
public static final int KEY_BORDER_RIGHT_STYLE
public static final int KEY_BORDER_RIGHT_WIDTH
public static final int KEY_BORDER_TOP_COLOR
public static final int KEY_BORDER_TOP_STYLE
public static final int KEY_BORDER_TOP_WIDTH
public static final int KEY_FOREGROUND_COLOR
public static final int KEY_MIXED_CONTENT
StaticContent
interface.
new StaticContent
[] { new StringContent
("Text value for the KEY_MIXED_CONTENT property") }
public static final int KEY_DISPLAY
public static final int KEY_FONT
public static final int KEY_FONT_WEIGHT
public static final int KEY_LINE_HEIGHT
public static final int KEY_LIST_STYLE_TYPE
public static final int KEY_MARGIN_BOTTOM
public static final int KEY_MARGIN_LEFT
public static final int KEY_MARGIN_RIGHT
public static final int KEY_MARGIN_TOP
public static final int KEY_PADDING_BOTTOM
public static final int KEY_PADDING_LEFT
public static final int KEY_PADDING_RIGHT
public static final int KEY_PADDING_TOP
public static final int KEY_WIDTH
public static final int KEY_HEIGHT
public static final int KEY_MIN_WIDTH
public static final int KEY_MAX_WIDTH
public static final int KEY_TEXT_ALIGN
public static final int KEY_TEXT_INDENT
public static final int KEY_WHITESPACE
public static final int KEY_EDITABLE
public static final int KEY_BORDER_SPACING
public static final int KEY_VISIBILITY
@Deprecated public static final int KEY_VISIBITY
KEY_VISIBILITY
.public static final int KEY_EMPTY_CELLS
public static final int KEY_FOLDABLE
public static final int KEY_NON_FOLDABLE_CHILD_NAME
public static final int KEY_VERTICAL_ALIGN
public static final int KEY_COUNTER_RESET
public static final int KEY_COUNTER_INCREMENT
public static final int KEY_IMPOSED_DISPLAY
public static final int KEY_TEXT_DECORATION_LINE
@Deprecated public static final int KEY_TEXT_DECORATION
KEY_TEXT_DECORATION_LINE
,
KEY_TEXT_DECORATION_COLOR
, KEY_TEXT_DECORATION_STYLE
instead.KEY_TEXT_DECORATION_LINE
.
Starting from CSS level 3, the 'text-decoration' property is a shorthand,
mapped to 'text-decoration-line', 'text-decoration-style' and
'text-decoration-color'.public static final int KEY_TEXT_DECORATION_COLOR
public static final int KEY_LINK
@Deprecated public static final int KEY_LINK_URL
public static final int KEY_DISPLAY_TAGS
public static final int KEY_DIRECT_WHITESPACE
public static final int KEY_FILTERED_OUT
public static final int KEY_TEXT_TRANSFORM
public static final int KEY_SHOW_PLACEHOLDER
public static final int KEY_PLACEHOLDER_CONTENT
public static final int KEY_FOLDED
public static final int KEY_TAGS_BACKGROUND_COLOR
public static final int KEY_TAGS_COLOR
public static final int KEY_BACKGROUND_IMAGE
public static final int KEY_BACKGROUND_REPEAT
public static final int KEY_BACKGROUND_POSITION
public static final int KEY_DIRECTION
public static final int KEY_UNICODE_BIDI
public static final int KEY_TEXT_DECORATION_STYLE
public static final int KEY_MIN_HEIGHT
public static final int KEY_MAX_HEIGHT
public static final int KEY_POSITION
public static final int KEY_TOP
public static final int KEY_BOTTOM
public static final int KEY_LEFT
public static final int KEY_RIGHT
public static final int KEY_OUTLINE_COLOR
public static final int KEY_OUTLINE_STYLE
public static final int KEY_OUTLINE_WIDTH
public static final int KEY_OXY_STYLE
public static final int KEY_EMPTY_CELLS_BOOLEAN
public static final int KEY_OXY_LINK_ACTIVATION_TRIGGER
public static final int KEY_OXY_FLOATING_TOOLBAR
StaticContent
interface.public static final int KEY_BORDER_TOP_LEFT_RADIUS
public static final int KEY_BORDER_TOP_RIGHT_RADIUS
public static final int KEY_BORDER_BOTTOM_RIGHT_RADIUS
public static final int KEY_BORDER_BOTTOM_LEFT_RADIUS
protected static int pmCounter
public static final int KEY_LIST_STYLE_POSITION
public static final int KEY_LIST_STYLE_IMAGE
public static final int KEY_PAGE
public static final int KEY_OXY_PAGE_GROUP
oxy-page-group
property. The presence of this property
on an the element makes the Chemistry processor start a new page sequence
that begins with that element, even if the element before it had the
same page
property.public static final int KEY_IMAGE_RESOLUTION
public static final int KEY_OXY_ALT_TEXT
public static final int KEY_OXY_PDF_TAG_TYPE
public static final int KEY_OXY_PDF_META_AUTHOR
CSSPropertiesOxygenExtension#OXY_PDF_META_AUTHOR
public static final int KEY_OXY_PDF_META_TITLE
CSSPropertiesOxygenExtension#OXY_PDF_META_TITLE
public static final int KEY_OXY_PDF_META_DESCRIPTION
CSSPropertiesOxygenExtension#OXY_PDF_META_DESCRIPTION
public static final int KEY_OXY_PDF_META_KEYWORDS
CSSPropertiesOxygenExtension#OXY_PDF_META_KEYWORDS
public static final int KEY_OXY_PDF_META_KEYWORD
CSSPropertiesOxygenExtension#OXY_PDF_META_KEYWORD
public static final int KEY_OXY_PDF_META_CUSTOM
CSSPropertiesOxygenExtension#OXY_PDF_META_CUSTOM
public static final int KEY_BACKGROUND_SIZE
public static final int KEY_PAGE_BREAK_AFTER
public static final int KEY_PAGE_BREAK_BEFORE
public static final int KEY_PAGE_BREAK_INSIDE
public static final int KEY_OXY_COLUMN_BREAK_AFTER
public static final int KEY_OXY_COLUMN_BREAK_BEFORE
public static final int KEY_OXY_COLUMN_BREAK_INSIDE
public static final int KEY_OXY_BORDERS_CONDITIONALITY
public static final int KEY_OXY_CHANGEBAR_OFFSET
public static final int KEY_OXY_CHANGEBAR_STYLE
public static final int KEY_OXY_CHANGEBAR_PLACEMENT
public static final int KEY_OXY_CHANGEBAR_COLOR
public static final int KEY_OXY_CHANGEBAR_WIDTH
public static final int KEY_ORPHANS
public static final int KEY_WIDOWS
public static final int KEY_STRING_SET
public static final int KEY_FLOAT
public static final int KEY_TABLE_ROW_SPAN
public static final int KEY_TABLE_COLUMN_SPAN
public static final int KEY_CAPTION_SIDE
public static final int KEY_TABLE_LAYOUT
public static final int KEY_BORDER_COLLAPSE
public static final int KEY_COLUMN_SPAN
public static final int KEY_TRANSFORM_ROTATION
public static final int KEY_HYPHENS
public static final int KEY_BOOKMARK_LEVEL
public static final int KEY_BOOKMARK_LABEL
public static final int KEY_BOOKMARK_STATE
public static final int KEY_LETTER_SPACING
public static final int KEY_FONT_FAMILY
public static final int KEY_FONT_SIZE
public static final int KEY_FONT_STYLE
public static final int KEY_FONT_VARIANT
public static final int KEY_FONT_VARIANT_ALTERNATES
public static final int KEY_FONT_VARIANT_LIGATURES
public static final int KEY_FONT_VARIANT_NUMERIC
public static final int KEY_OVERFLOW_WRAP
public static final int KEY_OXY_HYPHENATION_CHARACTER
public static final int KEY_OXY_HYPHENATION_PUSH_CHARACTER_COUNT
public static final int KEY_OXY_HYPHENATION_REMAIN_CHARACTER_COUNT
public static final int KEY_ALIGNMENT_BASELINE
public static final int KEY_OXY_CAPTION_REPEAT_ON_NEXT_PAGES
public static final int KEY_OXY_SHOW_ONLY_WHEN_CAPTION_REPEATED_ON_NEXT_PAGES
public static final int KEY_OXY_AVOID_BREAKING_LINE_AT_HYPHENS
protected final java.lang.Object[] stylesArray
public Styles()
public Styles(boolean enablePagedMediaProperties)
enablePagedMediaProperties
- true
if the styles
object is built for the PDF converter, and all the known paged
media features must be taken into account.public boolean isEnablePagedMediaProperties()
public static java.lang.String getPropertyName(int index)
index
- The index of the property.public java.lang.Object getPropertyByName(java.lang.String name)
name
- The property name.public Color getBackgroundColor()
background-color
property.
Returns null
if the background color is transparent.public URIContent getBackgroundImage()
background-image
property.
Returns null
if the background image is not defined.public java.lang.String getBackgroundRepeat()
public BackgroundPosition getBackgroundPosition()
null
.public Color getTagsBackgroundColor()
-oxy-tags-background-color
property.
Returns null
if no background color was defined in css.public Color getTagsColor()
-oxy-tags-background-color
property.
Returns null
if no background color was defined in css.public boolean hasBorder()
true
if the styles define a visible border.public Color getBorderBottomColor()
borderBottomColor
property.public java.lang.String getBorderBottomStyle()
borderBottomStyle
property.public Color getBorderLeftColor()
borderLeftColor
property.public java.lang.String getBorderLeftStyle()
borderLeftStyle
property.public Color getBorderRightColor()
borderRightColor
property.public java.lang.String getBorderRightStyle()
borderRightStyle
property.public Color getBorderTopColor()
borderTopColor
property.public java.lang.String getBorderTopStyle()
borderTopStyle
property.public Color getOutlineColor()
outline-color
property. If is not set
returns thepublic java.lang.String getOutlineStyle()
outline-style
property.public int getOutlineWidth()
outline-width
property.public Color getColor()
color
property.public StaticContent[] getMixedContent()
List
of ContentPart
objects
representing the content
property.public java.lang.String getDisplay()
display
property or CSS.INLINE if nothing is
specified.public java.lang.String getPosition()
CSSValues.STATIC
, CSSValues.RELATIVE
, CSSValues.FIXED
or CSSValues.ABSOLUTE
.public boolean isMorphDisplay()
true
for morph display.public boolean isChangebarDisplay()
true
if is a change bar.public boolean isInvisible()
true
if the associated element is invisible.public boolean isListItem()
true
if the associated element is a list item.public Font getFont()
font
property. Never null.public int getFontWeight()
fontWeight
property.public java.lang.String getFontVariant()
font-variant
property. One of 'normal' or 'small-caps'.
Never null
.public int getLineHeight(FontMetrics fm)
fm
- Font metrics for this style's fontlineHeight
property.public java.lang.String getListStyleType()
listStyleType
property.public java.lang.String getListStylePosition()
listStylePosition
property.public java.lang.String getTextAlign()
textAlign
property.public boolean isSpecifiedTextAlign()
public RelativeLength getTextIndent()
text-indent
property, or null if none.public boolean isInline()
public boolean isTableRowGroup()
public boolean isTableRow()
public int getBorderBottomWidth()
public int getBorderLeftWidth()
public int getBorderRightWidth()
public int getBorderTopWidth()
public RelativeLength getMarginBottom()
public RelativeLength getBorderBottomLeftRadius()
public RelativeLength getBorderBottomRightRadius()
public RelativeLength getBorderTopLeftRadius()
public RelativeLength getBorderTopRightRadius()
public RelativeLength getMarginLeft()
public RelativeLength getMarginRight()
public RelativeLength getMarginTop()
public RelativeLength getPaddingBottom()
public java.lang.String getDirection()
rtl
for Hebrew
or Arabic text and ltr
for other scripts. The property sets the base text direction of block-level elements and the direction of embeddings created by the unicode-bidi property. It also sets the default alignment of text and block-level elements and the direction that cells flow within a table row. Unlike the dir attribute in HTML, the direction property is not inherited from table columns into table cells, since CSS inheritance follows the document tree, and table cells are inside of the rows but not inside of the columns.
This is inheritable.
The initial value is CSSValues.LTR
.
CSSValues.LTR
or CSSValues.RTL
.public java.lang.String getUnicodeBIDI()
This is not inheritable.
The initial value is CSSValues.NORMAL
.
CSSValues.EMBED
, CSSValues.BIDI_OVERRIDE
or CSSValues.NORMAL
.public RelativeLength getPaddingLeft()
public RelativeLength getPaddingRight()
public RelativeLength getPaddingTop()
public boolean isTable()
public boolean isTableCell()
public java.lang.String getWhitespace()
public java.lang.String getDirectWhitespace()
public boolean isTableHeaderGroup()
public boolean isTableFooterGroup()
public boolean isTableColumn()
public boolean isTableColumnGroup()
public RelativeLength getWidth()
public RelativeLength getHeight()
public RelativeLength getMinWidth()
public RelativeLength getMaxWidth()
public boolean isEditable()
public int getHorizontalBorderSpacing()
public int getVerticalBorderSpacing()
public void setProperty(int property, java.lang.Object value)
property
- The key of the property to be set. It can be one of the keys defined in
this class.value
- The value of the property.
Accepted values depend on the property and can have as type String
,
Color
, RelativeLength
, CSSCounter
or CSSCounterIncrement
.
The actual values are the Java representations of the ones accepted in the CSS specification.
Read more about the CSS support in the Developer Guide.public void setProperty(int property, java.lang.Object value, org.w3c.css.sac.LexicalUnit lu)
property
- The key of the property to be set. It can be one of the keys defined in
this class.value
- The value of the property.
Accepted values depend on the property and can have as type String
,
Color
, RelativeLength
, CSSCounter
or CSSCounterIncrement
.
The actual values are the Java representations of the ones accepted in the CSS specification.
Read more about the CSS support in the Developer Guide.lu
- The CSS lexical unit that was evaluated to the value of the property. Normally, this
is ignored, but may be useful to subclasses (for instance in the CSS to FO processor).public java.lang.Object getProperty(int property)
property
- The property name.public static boolean isInheritable(int property)
property
- The index of the CSS property. One of the KEY_ constants.
Use getRecognizedPropertiesNumber()
to get the limit.true
if the given property can be copied.public static boolean isInheritable(java.lang.String property)
true
for "border" or "border-right"
(is a shorthand, does not know about it), but false
for "border-right-color".property
- The name of the CSS property. Must not be a shorthand!true
if the given property is inherited.public java.lang.String getVisibility()
public java.lang.String getShowPlaceholders()
public java.lang.String getPlaceholderContent()
public boolean getShowEmptyCells()
public boolean isFoldable()
public boolean isFolded()
true
if this element is foldedpublic java.lang.String[] getNonFoldableChildName()
public boolean isTableCaption()
public boolean isInlineInCSS()
true
if element is specified as INLINE in CSS source.public boolean isInlineBlockInCSS()
true
if element is specified as INLINE_BLOCK in CSS source.public java.lang.String getVerticalAlign()
@Deprecated public java.lang.String[] getTextDecoration()
public java.lang.String[] getTextDecorationLine()
public java.lang.String getTextDecorationStyle()
public Color getTextDecorationColor()
public CSSCounter[] getCounters()
public CSSCounterIncrement[] getCountersIncrement()
public boolean isInTable()
true
if the current style is a one of
CSS.TABLE, CSS.INLINE_TABLE, CSS.TABLE_ROW, CSS.TABLE_ROW_GROUP,
CSS.TABLE_FOOTER_GROUP, CSS.TABLE_HEADER_GROUPpublic java.lang.String getLinkURL()
public java.lang.String getHyperlinkActivationType()
public java.lang.String getDisplayTags()
public java.lang.String getTextTransform()
public boolean isFilteredOut()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public Styles clone()
clone
in class java.lang.Object
public boolean canBeCached()
public void setCanBeCached(boolean canBeCached)
canBeCached
- True when be shared between two or more nodes.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public RelativeLength getMinHeight()
public RelativeLength getLeft()
null
.public RelativeLength getRight()
null
.public RelativeLength getTop()
null
.public RelativeLength getBottom()
null
.public void setPseudoLevel(int pseudoLevel)
pseudoLevel
- The level of the pseudo element, if the style is associated to one.public int getPseudoLevel()
public int getRecognizedPropertiesNumber()
isEnablePagedMediaProperties()
is true
, there are many more properties recognized.public org.w3c.css.sac.LexicalUnit getLexicalUnit(int key)
null
.key
- The property key.null
.public int getTableRowSpan()
public int getTableColumnSpan()
public java.util.Map<java.lang.String,StaticContent[]> getStringSet()
null
.public java.lang.String getAlignmentBaseline()
null
. Default is 'baseline'.public java.lang.String getBordersConditionality()
public boolean dependsOnTargetCounter()
true
if target-counter or target-counters are used.public boolean affectsCounters()
public void setCustomProperty(java.util.Map<java.lang.String,CustomPropertyValue> props)
props
- Custom CSS propertiespublic java.util.Map<java.lang.String,CustomPropertyValue> getCustomCssProperties()
© Copyright Syncro Soft SRL 2002 - 2021. All rights reserved.