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

Class Box

openpdf-html/src/main/java/org/openpdf/render/Box.java:54–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52import static org.openpdf.render.Box.State.NOTHING;
53
54public abstract class Box implements Styleable {
55 @Nullable
56 private Element _element;
57
58 private int _x;
59 private int _y;
60
61 private int _absY;
62 private int _absX;
63
64 /**
65 * Box width.
66 */
67 private int _contentWidth;
68 private int _rightMBP;
69 private int _leftMBP;
70
71 private int _height;
72
73 @Nullable
74 private Layer _layer;
75 @Nullable
76 private Layer _containingLayer;
77
78 @Nullable
79 private Box _parent;
80
81 private final List<Box> _boxes = new ArrayList<>(3);
82
83 /**
84 * Keeps track of the start of children's containing block.
85 */
86 private int _tx;
87 private int _ty;
88
89 @Nullable
90 private CalculatedStyle _style;
91 @Nullable
92 private Box _containingBlock;
93
94 @Nullable
95 private Dimension _relativeOffset;
96
97 @Nullable
98 private PaintingInfo _paintingInfo;
99
100 @Nullable
101 private RectPropertySet _workingMargin;
102
103 private int _index;
104
105 @Nullable
106 private String _pseudoElementOrClass;
107
108 private final boolean _anonymous;
109
110 protected Box(@Nullable Box parent, @Nullable CalculatedStyle style) {
111 this._parent = parent;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected