MCPcopy Create free account
hub / github.com/LibrePDF/OpenPDF / Styleable

Interface Styleable

openpdf-html/src/main/java/org/openpdf/layout/Styleable.java:36–52  ·  view source on GitHub ↗

All objects appearing the layout tree must implement this interface. It can roughly be thought of as a styled element (although an InlineLayoutBox may be split across many lines) and some Styleable objects may not define an element at all (e.g. anonymous inline boxes) and some {@cod

Source from the content-addressed store, hash-verified

34 * (e.g. {@code :before} and {@code :after} pseudo-elements)
35 */
36public interface Styleable {
37 @Nullable
38 @CheckReturnValue
39 CalculatedStyle getStyle();
40
41 void setStyle(@Nullable CalculatedStyle style);
42
43 @Nullable
44 @CheckReturnValue
45 Element getElement();
46
47 void setElement(@Nullable Element e);
48
49 @Nullable
50 @CheckReturnValue
51 String getPseudoElementOrClass();
52}

Callers 27

stripAllWhitespaceMethod · 0.95
runMethod · 0.65
ConsoleStyleContextMethod · 0.65
stripInlineContentMethod · 0.65
canCollapseThroughMethod · 0.65
stripTextContentMethod · 0.65
stripWhitespaceMethod · 0.65
collapseWhitespaceMethod · 0.65
reorderTableContentMethod · 0.65
addFirstLetterBoxMethod · 0.65
styleTextMethod · 0.65

Implementers 3

InlineBoxopenpdf-html/src/main/java/org/openpdf
Boxopenpdf-html/src/main/java/org/openpdf
TableColumnopenpdf-html/src/main/java/org/openpdf

Calls

no outgoing calls

Tested by

no test coverage detected