Skip to content

Commit 29ffca1

Browse files
author
glenn.volckaert
committed
improve javadoc for class CanvasGraphicState
DEVSIX-7102
1 parent 199c7c2 commit 29ffca1

File tree

1 file changed

+69
-41
lines changed

1 file changed

+69
-41
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/canvas/CanvasGraphicsState.java

Lines changed: 69 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public void setLineWidth(float lineWidth) {
240240

241241

242242
/**
243-
* Gets the current cap style, see ISO-320001, 8.4.3.3 Line Cap Style.
243+
* Gets the current line cap style, see ISO-320001, 8.4.3.3 Line Cap Style.
244244
*
245245
* @return The current cap style.
246246
* @see PdfCanvas#setLineCapStyle(int) for more info.
@@ -250,7 +250,7 @@ public int getLineCapStyle() {
250250
}
251251

252252
/**
253-
* Sets the current cap style, see ISO-320001, 8.4.3.3 Line Cap Style.
253+
* Sets the current line cap style, see ISO-320001, 8.4.3.3 Line Cap Style.
254254
*
255255
* @param lineCapStyle The new cap style value.
256256
* @see PdfCanvas#setLineCapStyle(int) for more info.
@@ -301,7 +301,8 @@ public void setMiterLimit(float miterLimit) {
301301

302302

303303
/**
304-
* Gets line dash pattern value, {@code D} key, see ISO-320001, 8.4.3.6 Line Dash Pattern.
304+
* Gets line dash pattern value, {@code D} key, see ISO-320001, 8.4.3.6 Line Dash Pattern,
305+
* {@link com.itextpdf.kernel.pdf.extgstate.PdfExtGState#setDashPattern }.
305306
*
306307
* @return a {@code PdfArray}, that represents line dash pattern.
307308
*/
@@ -310,7 +311,8 @@ public PdfArray getDashPattern() {
310311
}
311312

312313
/**
313-
* Sets line dash pattern value, {@code D} key, see ISO-320001, 8.4.3.6 Line Dash Pattern.
314+
* Sets line dash pattern value, {@code D} key, see ISO-320001, 8.4.3.6 Line Dash Pattern,
315+
* {@link com.itextpdf.kernel.pdf.extgstate.PdfExtGState#setDashPattern }.
314316
*
315317
* @param dashPattern a {@code PdfArray}, that represents line dash pattern.
316318
*/
@@ -319,15 +321,15 @@ public void setDashPattern(PdfArray dashPattern) {
319321
}
320322

321323
/**
322-
* Gets the rendering intent see {@link PdfExtGState#getRenderingIntent()}.
324+
* Gets the rendering intent, see {@link PdfExtGState#getRenderingIntent()}.
323325
*
324326
* @return the rendering intent name.
325327
*/
326328
public PdfName getRenderingIntent() {
327329
return renderingIntent;
328330
}
329331
/**
330-
* Sets the rendering intent see {@link PdfExtGState#getRenderingIntent()}.
332+
* Sets the rendering intent, see {@link PdfExtGState#getRenderingIntent()}.
331333
*
332334
* @param renderingIntent the rendering intent name.
333335
*/
@@ -373,7 +375,8 @@ public void setFont(PdfFont font) {
373375
}
374376

375377
/**
376-
* Gets the current Text Rendering Mode, see ISO-320001, 9.3.6 Text Rendering Mode.
378+
* Gets the current Text Rendering Mode, see ISO-320001, 9.3.6 Text Rendering Mode,
379+
* {@link PdfCanvas#setTextRenderingMode}.
377380
*
378381
* @return The current text rendering mode.
379382
*/
@@ -382,7 +385,8 @@ public int getTextRenderingMode() {
382385
}
383386

384387
/**
385-
* Sets the current Text Rendering Mode, see ISO-320001, 9.3.6 Text Rendering Mode.
388+
* Sets the current Text Rendering Mode, see ISO-320001, 9.3.6 Text Rendering Mode,
389+
* {@link PdfCanvas#setTextRenderingMode}.
386390
*
387391
* @param textRenderingMode The new text rendering mode.
388392
*/
@@ -391,7 +395,8 @@ public void setTextRenderingMode(int textRenderingMode) {
391395
}
392396

393397
/**
394-
* Get the current Text Rise, see ISO-320001, 9.3.7 Text Rise.
398+
* Get the current Text Rise, see ISO-320001, 9.3.7 Text Rise,
399+
* {@link PdfCanvas#setTextRise}.
395400
*
396401
* @return The current text rise.
397402
*/
@@ -400,7 +405,8 @@ public float getTextRise() {
400405
}
401406

402407
/**
403-
* Set the current Text Rise, see ISO-320001, 9.3.7 Text Rise.
408+
* Set the current Text Rise, see ISO-320001, 9.3.7 Text Rise
409+
* {@link PdfCanvas#setTextRise}.
404410
*
405411
* @param textRise The new text rise value.
406412
*/
@@ -409,7 +415,8 @@ public void setTextRise(float textRise) {
409415
}
410416

411417
/**
412-
* Gets the current Flatness Tolerance, see ISO-320001, 10.6.2 Flatness Tolerance.
418+
* Gets the current Flatness Tolerance, see ISO-320001, 10.6.2 Flatness Tolerance,
419+
* {@link PdfCanvas#setFlatnessTolerance(float)}.
413420
*
414421
* @return The current flatness tolerance.
415422
*/
@@ -418,7 +425,8 @@ public float getFlatnessTolerance() {
418425
}
419426

420427
/**
421-
* Sets the current Flatness Tolerance, see ISO-320001, 10.6.2 Flatness Tolerance.
428+
* Sets the current Flatness Tolerance, see ISO-320001, 10.6.2 Flatness Tolerance,
429+
* {@link PdfCanvas#setFlatnessTolerance(float)}.
422430
*
423431
* @param flatnessTolerance The new flatness tolerance value.
424432
*/
@@ -427,7 +435,8 @@ public void setFlatnessTolerance(float flatnessTolerance) {
427435
}
428436

429437
/**
430-
* Sets the Word Spacing, see ISO-320001, 9.3.3 Word Spacing.
438+
* Sets the Word Spacing, see ISO-320001, 9.3.3 Word Spacing,
439+
* {@link PdfCanvas#setWordSpacing(float)}.
431440
*
432441
* @param wordSpacing The new word spacing value.
433442
*/
@@ -436,7 +445,8 @@ public void setWordSpacing(float wordSpacing) {
436445
}
437446

438447
/**
439-
* Gets the current Word Spacing, see ISO-320001, 9.3.3 Word Spacing.
448+
* Gets the current Word Spacing, see ISO-320001, 9.3.3 Word Spacing,
449+
* {@link PdfCanvas#setWordSpacing(float)}
440450
*
441451
* @return The current word spacing
442452
*/
@@ -445,7 +455,8 @@ public float getWordSpacing() {
445455
}
446456

447457
/**
448-
* Sets the Character Spacing, see ISO-320001, 9.3.2 Character Spacing.
458+
* Sets the Character Spacing, see ISO-320001, 9.3.2 Character Spacing,
459+
* {@link PdfCanvas#setCharacterSpacing(float)}
449460
*
450461
* @param characterSpacing The new character spacing value.
451462
*/
@@ -454,7 +465,8 @@ public void setCharSpacing(float characterSpacing) {
454465
}
455466

456467
/**
457-
* Gets the current Character Spacing, see ISO-320001, 9.3.2 Character Spacing.
468+
* Gets the current Character Spacing, see ISO-320001, 9.3.2 Character Spacing,
469+
* {@link PdfCanvas#setCharacterSpacing(float)}.
458470
*
459471
* @return The current character spacing value.
460472
*/
@@ -463,7 +475,8 @@ public float getCharSpacing() {
463475
}
464476

465477
/**
466-
* Gets the current Leading, see ISO-320001, 9.3.5 Leading.
478+
* Gets the current Leading, see ISO-320001, 9.3.5 Leading,
479+
* {@link PdfCanvas#setLeading(float)}.
467480
*
468481
* @return The current leading value.
469482
*/
@@ -472,7 +485,8 @@ public float getLeading() {
472485
}
473486

474487
/**
475-
* Sets the Leading, see ISO-320001, 9.3.5 Leading
488+
* Sets the Leading, see ISO-320001, 9.3.5 Leading,
489+
* {@link PdfCanvas#setLeading(float)}.
476490
*
477491
* @param leading The new leading value.
478492
*/
@@ -481,7 +495,8 @@ public void setLeading(float leading) {
481495
}
482496

483497
/**
484-
* Gets the current Horizontal Scaling percentage, see ISO-320001, 9.3.4 Horizontal Scaling
498+
* Gets the current Horizontal Scaling percentage, see ISO-320001, 9.3.4 Horizontal Scaling.
499+
* {@link PdfCanvas#setHorizontalScaling(float)}.
485500
*
486501
* @return The current horizontal scaling factor.
487502
*/
@@ -490,7 +505,8 @@ public float getHorizontalScaling() {
490505
}
491506

492507
/**
493-
* Sets the Horizontal Scaling percentage for text, see ISO-320001, 9.3.4 Horizontal Scaling
508+
* Sets the Horizontal Scaling percentage for text, see ISO-320001, 9.3.4 Horizontal Scaling,
509+
* {@link PdfCanvas#setHorizontalScaling(float)}.
494510
*
495511
* @param scale The new horizontal scaling factor.
496512
*/
@@ -499,8 +515,8 @@ public void setHorizontalScaling(float scale) {
499515
}
500516

501517
/**
502-
* Get the Stroke Overprint flag, see ISO 32000-1, see ISO 32000-1, 8.6.7 Overprint Control
503-
* and 11.7.4.5 Summary of Overprinting Behaviour.
518+
* Get the Stroke Overprint flag, see ISO 32000-1, 8.6.7 Overprint Control
519+
* and 11.7.4.5 Summary of Overprinting Behaviour, {@link PdfExtGState#getStrokeOverprintFlag()}.
504520
*
505521
* @return The current stroke overprint flag.
506522
*/
@@ -510,7 +526,7 @@ public boolean getStrokeOverprint() {
510526

511527
/**
512528
* Get the Fill Overprint flag, see ISO 32000-1, 8.6.7 Overprint Control
513-
* and 11.7.4.5 Summary of Overprinting Behaviour.
529+
* and 11.7.4.5 Summary of Overprinting Behaviour, {@link PdfExtGState#getFillOverprintFlag()}.
514530
*
515531
* @return The current stroke overprint flag.
516532
*/
@@ -519,8 +535,8 @@ public boolean getFillOverprint() {
519535
}
520536

521537
/**
522-
* Get the Overprint Mode, see ISO 32000-1, see ISO 32000-1, 8.6.7 Overprint Control
523-
* and 11.7.4.5 Summary of Overprinting Behaviour.
538+
* Get the Overprint Mode, see ISO 32000-1, 8.6.7 Overprint Control
539+
* and 11.7.4.5 Summary of Overprinting Behaviour, {@link PdfExtGState#getOverprintMode()}.
524540
*
525541
* @return The current overprint mode.
526542
*/
@@ -531,7 +547,8 @@ public int getOverprintMode() {
531547

532548
/**
533549
* Gets the current Black-generation function, see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
534-
* Table 58 – Entries in a Graphics State Parameter Dictionary.
550+
* Table 58 – Entries in a Graphics State Parameter Dictionary,
551+
* {@link PdfExtGState#getBlackGenerationFunction()}.
535552
*
536553
* @return the current black-generation function.
537554
*/
@@ -542,7 +559,8 @@ public PdfObject getBlackGenerationFunction() {
542559
/**
543560
* Gets the current overruling Black-generation function,
544561
* see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
545-
* Table 58 – Entries in a Graphics State Parameter Dictionary.
562+
* Table 58 – Entries in a Graphics State Parameter Dictionary,
563+
* {@link PdfExtGState#getBlackGenerationFunction2()}.
546564
*
547565
* @return the current overruling black-generation function.
548566
*/
@@ -553,7 +571,8 @@ public PdfObject getBlackGenerationFunction2() {
553571
/**
554572
* Gets the current Undercolor-removal function,
555573
* see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
556-
* Table 58 – Entries in a Graphics State Parameter Dictionary.
574+
* Table 58 – Entries in a Graphics State Parameter Dictionary
575+
* {@link PdfExtGState#getUndercolorRemovalFunction()}.
557576
*
558577
* @return the current black-generation function.
559578
*/
@@ -564,7 +583,8 @@ public PdfObject getUnderColorRemovalFunction() {
564583
/**
565584
* Gets the current overruling Undercolor-removal function,
566585
* see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
567-
* Table 58 – Entries in a Graphics State Parameter Dictionary.
586+
* Table 58 – Entries in a Graphics State Parameter Dictionary,
587+
* {@link PdfExtGState#getUndercolorRemovalFunction2()}.
568588
*
569589
* @return the current undercolor-removal function.
570590
*/
@@ -575,7 +595,8 @@ public PdfObject getUnderColorRemovalFunction2() {
575595
/**
576596
* Gets the current Transfer function,
577597
* see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
578-
* Table 58 – Entries in a Graphics State Parameter Dictionary.
598+
* Table 58 – Entries in a Graphics State Parameter Dictionary,
599+
* {@link PdfExtGState#getTransferFunction()}.
579600
*
580601
* @return the current transfer function.
581602
*/
@@ -586,7 +607,8 @@ public PdfObject getTransferFunction() {
586607
/**
587608
* Gets the current overruling transer function,
588609
* see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
589-
* Table 58 – Entries in a Graphics State Parameter Dictionary.
610+
* Table 58 – Entries in a Graphics State Parameter Dictionary,
611+
* {@link PdfExtGState#getTransferFunction2()}.
590612
*
591613
* @return the current overruling transer function.
592614
*/
@@ -596,7 +618,8 @@ public PdfObject getTransferFunction2() {
596618

597619
/**
598620
* Gets the current halftone ,
599-
* see ISO32000-1, 10.5 Halftones and Table 58 – Entries in a Graphics State Parameter Dictionary.
621+
* see ISO32000-1, 10.5 Halftones and Table 58 – Entries in a Graphics State Parameter Dictionary,
622+
* {@link PdfExtGState#getHalftone()}.
600623
*
601624
* @return the current halftone.
602625
*/
@@ -607,7 +630,8 @@ public PdfObject getHalftone() {
607630

608631
/**
609632
* Gets the current Smoothness Tolerance,
610-
* see ISO32000-1, 10.6.3 Smoothness Tolerance and Table 58 – Entries in a Graphics State Parameter Dictionary.
633+
* see ISO32000-1, 10.6.3 Smoothness Tolerance and Table 58 – Entries in a Graphics State Parameter Dictionary,
634+
* {@link PdfExtGState#getSmothnessTolerance()}.
611635
*
612636
* @return the current smoothness tolerance function.
613637
*/
@@ -616,7 +640,8 @@ public Float getSmoothnessTolerance() {
616640
}
617641

618642
/**
619-
* Gets the current Apply Automatic Stroke Adjustment flag, see ISO 32000-1, 10.6.5 Automatic Stroke Adjustment.
643+
* Gets the current Apply Automatic Stroke Adjustment flag, see ISO 32000-1, 10.6.5 Automatic Stroke Adjustment,
644+
* {@link PdfExtGState#getAutomaticStrokeAdjustmentFlag()}.
620645
*
621646
* @return The current automatic stroke adjustment flag.
622647
*/
@@ -626,7 +651,8 @@ public boolean getAutomaticStrokeAdjustment() {
626651

627652
/**
628653
* Gets the current Blend Mode, see ISO 32000-1, 11.3.5 Blend Mode and
629-
* 11.6.3 Specifying Blending Colour Space and Blend Mode.
654+
* 11.6.3 Specifying Blending Colour Space and Blend Mode,
655+
* {@link PdfExtGState#getBlendMode()}.
630656
*
631657
* @return The current blend mode.
632658
*/
@@ -636,7 +662,8 @@ public PdfObject getBlendMode() {
636662

637663
/**
638664
* Gets the current Soft Mask, see ISO 32000-1, 11.3.7.2 Source Shape and Opacity,
639-
* 11.6.4.3 Mask Shape and Opacity and 11.6.5.2 Soft-Mask Dictionaries.
665+
* 11.6.4.3 Mask Shape and Opacity and 11.6.5.2 Soft-Mask Dictionaries,
666+
* {@link PdfExtGState#getSoftMask()}.
640667
*
641668
* @return The current soft mask.
642669
*/
@@ -646,7 +673,7 @@ public PdfObject getSoftMask() {
646673

647674
/**
648675
* Gets the current Stroke Opacity value, see ISO 32000-1, 11.3.7.2 Source Shape and Opacity
649-
* and 11.6.4.4 Constant Shape and Opacity.
676+
* and 11.6.4.4 Constant Shape and Opacity, {@link PdfExtGState#getStrokeOpacity()}.
650677
*
651678
* @return the current stroke opacity value.
652679
*/
@@ -656,7 +683,7 @@ public float getStrokeOpacity() {
656683

657684
/**
658685
* Gets the current Fill Opacity value, see ISO 32000-1, 11.3.7.2 Source Shape and Opacity
659-
* and 11.6.4.4 Constant Shape and Opacity.
686+
* and 11.6.4.4 Constant Shape and Opacity, {@link PdfExtGState#getFillOpacity()}.
660687
*
661688
* @return the current fill opacity value.
662689
*/
@@ -666,7 +693,7 @@ public float getFillOpacity() {
666693

667694
/**
668695
* Gets the current Alpha is shape flag, see ISO 32000-1, 11.3.7.2 Source Shape and Opacity and
669-
* 11.6.4.3 Mask Shape and Opacity.
696+
* 11.6.4.3 Mask Shape and Opacity, {@link PdfExtGState#getAlphaSourceFlag()} .
670697
*
671698
* @return The current alpha is shape flag.
672699
*/
@@ -675,7 +702,8 @@ public boolean getAlphaIsShape() {
675702
}
676703

677704
/**
678-
* Gets the current Text Knockout flag, see ISO 32000-1, 9.3.8 Text Knockout.
705+
* Gets the current Text Knockout flag, see ISO 32000-1, 9.3.8 Text Knockout,
706+
* {@link PdfExtGState#getTextKnockoutFlag()}.
679707
*
680708
* @return The current text knockout flag.
681709
*/
@@ -686,7 +714,7 @@ public boolean getTextKnockout() {
686714
/**
687715
* Gets the current Halftone Phase, see Portable Document Format Reference Manual Version 1.2,
688716
* 7.12 Extended graphics states and PostScript Language Reference Manual, Second Edition,
689-
* 7.3.3, Halftone Phase.
717+
* 7.3.3, Halftone Phase.
690718
*
691719
* @return the current halftone phase.
692720
*/

0 commit comments

Comments
 (0)