Skip to content

Commit 68de7af

Browse files
committed
Add JavaDocs to unsupported AreaBreakRenderer methods
DEVSIX-4803
1 parent 89ebd13 commit 68de7af

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

layout/src/main/java/com/itextpdf/layout/renderer/AreaBreakRenderer.java

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,39 @@ public AreaBreakRenderer(AreaBreak areaBreak) {
6868
this.areaBreak = areaBreak;
6969
}
7070

71+
/**
72+
* Throws an UnsupportedOperationException because instances of this
73+
* class are only used for terminating the current content area.
74+
*
75+
* @param renderer {@inheritDoc}
76+
*/
7177
@Override
7278
public void addChild(IRenderer renderer) {
73-
throw new RuntimeException();
79+
throw new UnsupportedOperationException();
7480
}
7581

7682
@Override
7783
public LayoutResult layout(LayoutContext layoutContext) {
7884
return new LayoutResult(LayoutResult.NOTHING, null, null, null, this).setAreaBreak(areaBreak);
7985
}
8086

87+
/**
88+
* Throws an UnsupportedOperationException because instances of this
89+
* class are only used for terminating the current content area.
90+
*
91+
* @param drawContext {@inheritDoc}
92+
*/
8193
@Override
8294
public void draw(DrawContext drawContext) {
8395
throw new UnsupportedOperationException();
8496
}
8597

98+
/**
99+
* Throws an UnsupportedOperationException because instances of this
100+
* class are only used for terminating the current content area.
101+
*
102+
* @return {@inheritDoc}
103+
*/
86104
@Override
87105
public LayoutArea getOccupiedArea() {
88106
throw new UnsupportedOperationException();
@@ -113,11 +131,27 @@ public <T1> T1 getDefaultProperty(int property) {
113131
return (T1) (Object) null;
114132
}
115133

134+
/**
135+
* Throws an UnsupportedOperationException because instances of this
136+
* class are only used for terminating the current content area.
137+
*
138+
* @param property {@inheritDoc}
139+
* @param defaultValue {@inheritDoc}
140+
* @param <T1> {@inheritDoc}
141+
* @return {@inheritDoc}
142+
*/
116143
@Override
117144
public <T1> T1 getProperty(int property, T1 defaultValue) {
118145
throw new UnsupportedOperationException();
119146
}
120147

148+
/**
149+
* Throws an UnsupportedOperationException because instances of this
150+
* class are only used for terminating the current content area.
151+
*
152+
* @param property {@inheritDoc}
153+
* @param value {@inheritDoc}
154+
*/
121155
@Override
122156
public void setProperty(int property, Object value) {
123157
throw new UnsupportedOperationException();
@@ -150,6 +184,13 @@ public boolean isFlushed() {
150184
return false;
151185
}
152186

187+
/**
188+
* Throws an UnsupportedOperationException because instances of this
189+
* class are only used for terminating the current content area.
190+
*
191+
* @param dx {@inheritDoc}
192+
* @param dy {@inheritDoc}
193+
*/
153194
@Override
154195
public void move(float dx, float dy) {
155196
throw new UnsupportedOperationException();

0 commit comments

Comments
 (0)