BrightSide Workbench Full Report + Source Code
org.turro.pdf.WatermarkCfg Class Reference

Public Member Functions

 WatermarkCfg (String text, float rotation)
 
 WatermarkCfg (String image)
 
 WatermarkCfg (String text, String image, float rotation)
 
String[] getText ()
 
String getImage ()
 
float getRotation ()
 
boolean hasText ()
 
boolean hasImage ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file WatermarkCfg.java.

Constructor & Destructor Documentation

◆ WatermarkCfg() [1/3]

org.turro.pdf.WatermarkCfg.WatermarkCfg ( String  text,
float  rotation 
)

Definition at line 34 of file WatermarkCfg.java.

34  {
35  this(text, null, rotation);
36  }

◆ WatermarkCfg() [2/3]

org.turro.pdf.WatermarkCfg.WatermarkCfg ( String  image)

Definition at line 38 of file WatermarkCfg.java.

38  {
39  this(null, image, 0.0F);
40  }

◆ WatermarkCfg() [3/3]

org.turro.pdf.WatermarkCfg.WatermarkCfg ( String  text,
String  image,
float  rotation 
)

Definition at line 42 of file WatermarkCfg.java.

42  {
43  this.text = text;
44  this.image = image;
45  this.rotation = rotation;
46  }

Member Function Documentation

◆ getImage()

String org.turro.pdf.WatermarkCfg.getImage ( )

Definition at line 52 of file WatermarkCfg.java.

52  {
53  return image;
54  }

◆ getRotation()

float org.turro.pdf.WatermarkCfg.getRotation ( )

Definition at line 56 of file WatermarkCfg.java.

56  {
57  return rotation;
58  }

◆ getText()

String [] org.turro.pdf.WatermarkCfg.getText ( )

Definition at line 48 of file WatermarkCfg.java.

48  {
49  return text.split("\\n");
50  }

◆ hasImage()

boolean org.turro.pdf.WatermarkCfg.hasImage ( )

Definition at line 64 of file WatermarkCfg.java.

64  {
65  return !Strings.isBlank(image);
66  }

◆ hasText()

boolean org.turro.pdf.WatermarkCfg.hasText ( )

Definition at line 60 of file WatermarkCfg.java.

60  {
61  return !Strings.isBlank(text);
62  }

The documentation for this class was generated from the following file: