Package org.apache.fop.area
Class Trait
java.lang.Object
org.apache.fop.area.Trait
- All Implemented Interfaces:
Serializable
Area traits used for rendering.
This class represents an area trait that specifies a value for rendering.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Background trait structure.static class
External Link trait structurestatic class
Class for internal link traits. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Integer
Background trait for an area.static final Integer
Blinking trait used when rendering inline parent.static final Integer
block progression direction traitstatic final Integer
The border after.static final Integer
The border before.static final Integer
The border end.static final Integer
The border start.static final Integer
The current color.static final Integer
column progression direction traitstatic final Integer
The end-indent trait.static final Integer
External link.static final Integer
The font triplet for the current font.static final Integer
Font size for the current font.static final Integer
inline progression direction traitstatic final Integer
Internal link trait.static final Integer
The is-reference-area trait.static final Integer
The is-viewport-area trait.static final Integer
For optional content groups.static final Integer
Linethrough trait used when rendering inline parent.static final Integer
Trait for color of linethrough decorations when rendering inline parent.static final int
Maximum value used by trait keysstatic final Integer
Overline trait used when rendering inline parent.static final Integer
Trait for color of overline decorations when rendering inline parent.static final Integer
The padding after.static final Integer
The padding before.static final Integer
The padding end.static final Integer
The padding start.static final Integer
The ID of the FO that produced an area.static final Integer
shift direction traitstatic final Integer
The space-after trait.static final Integer
The space-before trait.static final Integer
The space end.static final Integer
The space start.static final Integer
The start-indent trait.static final Integer
For navigation in the document structure.static final Integer
Underline trait used when rendering inline parent.static final Integer
Trait for color of underline decorations when rendering inline parent.static final Integer
Used to disable the rendering of a Block http://www.w3.org/TR/xsl/#rend-visstatic final Integer
writing mode trait -
Method Summary
Modifier and TypeMethodDescriptionstatic Class
getTraitClass
(Object traitCode) Get the data storage class for the trait.static String
getTraitName
(Object traitCode) Get the trait name for a trait code.
-
Field Details
-
INTERNAL_LINK
Internal link trait. Contains the PageViewport key and the PROD_ID of the target area -
EXTERNAL_LINK
External link. A URL link to an external resource. -
FONT
The font triplet for the current font. -
FONT_SIZE
Font size for the current font. -
COLOR
The current color. -
PROD_ID
The ID of the FO that produced an area. -
BACKGROUND
Background trait for an area. -
UNDERLINE
Underline trait used when rendering inline parent. -
OVERLINE
Overline trait used when rendering inline parent. -
LINETHROUGH
Linethrough trait used when rendering inline parent. -
BORDER_START
The border start. -
BORDER_END
The border end. -
BORDER_BEFORE
The border before. -
BORDER_AFTER
The border after. -
PADDING_START
The padding start. -
PADDING_END
The padding end. -
PADDING_BEFORE
The padding before. -
PADDING_AFTER
The padding after. -
SPACE_START
The space start. -
SPACE_END
The space end. -
START_INDENT
The start-indent trait. -
END_INDENT
The end-indent trait. -
SPACE_BEFORE
The space-before trait. -
SPACE_AFTER
The space-after trait. -
IS_REFERENCE_AREA
The is-reference-area trait. -
IS_VIEWPORT_AREA
The is-viewport-area trait. -
BLINK
Blinking trait used when rendering inline parent. -
UNDERLINE_COLOR
Trait for color of underline decorations when rendering inline parent. -
OVERLINE_COLOR
Trait for color of overline decorations when rendering inline parent. -
LINETHROUGH_COLOR
Trait for color of linethrough decorations when rendering inline parent. -
STRUCTURE_TREE_ELEMENT
For navigation in the document structure. -
WRITING_MODE
writing mode trait -
INLINE_PROGRESSION_DIRECTION
inline progression direction trait -
BLOCK_PROGRESSION_DIRECTION
block progression direction trait -
COLUMN_PROGRESSION_DIRECTION
column progression direction trait -
SHIFT_DIRECTION
shift direction trait -
LAYER
For optional content groups. -
VISIBILITY
Used to disable the rendering of a Block http://www.w3.org/TR/xsl/#rend-vis -
MAX_TRAIT_KEY
public static final int MAX_TRAIT_KEYMaximum value used by trait keys- See Also:
-
-
Method Details
-
getTraitName
Get the trait name for a trait code.- Parameters:
traitCode
- the trait code to get the name for- Returns:
- the trait name
-
getTraitClass
Get the data storage class for the trait.- Parameters:
traitCode
- the trait code to lookup- Returns:
- the class type for the trait
-