@@ -143,7 +143,9 @@ public PdfLineAnnotation setLineEndingStyles(PdfArray lineEndingStyles) {
143
143
* when traversing the line from its starting point to its ending point (as specified by {@link PdfName#L} (see {@link #getLine()});
144
144
* a negative value indicates the opposite direction.
145
145
* @return a float specifying the length of leader lines in default user space.
146
+ * @deprecated use {@link #getLeaderLineLength()} instead.
146
147
*/
148
+ @ Deprecated
147
149
public float getLeaderLine () {
148
150
PdfNumber n = getPdfObject ().getAsNumber (PdfName .LL );
149
151
return n == null ? 0 : n .floatValue ();
@@ -156,11 +158,37 @@ public float getLeaderLine() {
156
158
* a negative value indicates the opposite direction.
157
159
* @param leaderLine a float specifying the length of leader lines in default user space.
158
160
* @return this {@link PdfLineAnnotation} instance.
161
+ * @deprecated use {@link #setLeaderLineLength(float)} instead.
159
162
*/
163
+ @ Deprecated
160
164
public PdfLineAnnotation setLeaderLine (float leaderLine ) {
161
165
return (PdfLineAnnotation ) put (PdfName .LL , new PdfNumber (leaderLine ));
162
166
}
163
167
168
+ /**
169
+ * The length of leader lines in default user space that extend from each endpoint of the line perpendicular
170
+ * to the line itself. A positive value means that the leader lines appear in the direction that is clockwise
171
+ * when traversing the line from its starting point to its ending point (as specified by {@link PdfName#L} (see {@link #getLine()});
172
+ * a negative value indicates the opposite direction.
173
+ * @return a float specifying the length of leader lines in default user space.
174
+ */
175
+ public float getLeaderLineLength () {
176
+ PdfNumber n = getPdfObject ().getAsNumber (PdfName .LL );
177
+ return n == null ? 0 : n .floatValue ();
178
+ }
179
+
180
+ /**
181
+ * Sets the length of leader lines in default user space that extend from each endpoint of the line perpendicular
182
+ * to the line itself. A positive value means that the leader lines appear in the direction that is clockwise
183
+ * when traversing the line from its starting point to its ending point (as specified by {@link PdfName#L} (see {@link #getLine()});
184
+ * a negative value indicates the opposite direction.
185
+ * @param leaderLineLength a float specifying the length of leader lines in default user space.
186
+ * @return this {@link PdfLineAnnotation} instance.
187
+ */
188
+ public PdfLineAnnotation setLeaderLineLength (float leaderLineLength ) {
189
+ return (PdfLineAnnotation ) put (PdfName .LL , new PdfNumber (leaderLineLength ));
190
+ }
191
+
164
192
/**
165
193
* A non-negative number that represents the length of leader line extensions that extend from the line proper
166
194
* 180 degrees from the leader lines.
0 commit comments