@@ -68,21 +68,39 @@ public AreaBreakRenderer(AreaBreak areaBreak) {
68
68
this .areaBreak = areaBreak ;
69
69
}
70
70
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
+ */
71
77
@ Override
72
78
public void addChild (IRenderer renderer ) {
73
- throw new RuntimeException ();
79
+ throw new UnsupportedOperationException ();
74
80
}
75
81
76
82
@ Override
77
83
public LayoutResult layout (LayoutContext layoutContext ) {
78
84
return new LayoutResult (LayoutResult .NOTHING , null , null , null , this ).setAreaBreak (areaBreak );
79
85
}
80
86
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
+ */
81
93
@ Override
82
94
public void draw (DrawContext drawContext ) {
83
95
throw new UnsupportedOperationException ();
84
96
}
85
97
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
+ */
86
104
@ Override
87
105
public LayoutArea getOccupiedArea () {
88
106
throw new UnsupportedOperationException ();
@@ -113,11 +131,27 @@ public <T1> T1 getDefaultProperty(int property) {
113
131
return (T1 ) (Object ) null ;
114
132
}
115
133
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
+ */
116
143
@ Override
117
144
public <T1 > T1 getProperty (int property , T1 defaultValue ) {
118
145
throw new UnsupportedOperationException ();
119
146
}
120
147
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
+ */
121
155
@ Override
122
156
public void setProperty (int property , Object value ) {
123
157
throw new UnsupportedOperationException ();
@@ -150,6 +184,13 @@ public boolean isFlushed() {
150
184
return false ;
151
185
}
152
186
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
+ */
153
194
@ Override
154
195
public void move (float dx , float dy ) {
155
196
throw new UnsupportedOperationException ();
0 commit comments