1 31 package org.pdfbox.pdmodel.interactive.annotation; 32 33 import org.pdfbox.cos.COSBase; 34 import org.pdfbox.cos.COSDictionary; 35 36 import org.pdfbox.pdmodel.common.COSObjectable; 37 38 44 public class PDBorderEffectDictionary implements COSObjectable 45 { 46 47 51 52 55 public static final String STYLE_SOLID = "S"; 56 57 60 public static final String STYLE_CLOUDY = "C"; 61 62 private COSDictionary dictionary; 63 64 67 public PDBorderEffectDictionary() 68 { 69 dictionary = new COSDictionary(); 70 } 71 72 78 public PDBorderEffectDictionary( COSDictionary dict ) 79 { 80 dictionary = dict; 81 } 82 83 88 public COSDictionary getDictionary() 89 { 90 return dictionary; 91 } 92 93 98 public COSBase getCOSObject() 99 { 100 return dictionary; 101 } 102 103 109 public void setIntensity( float i ) 110 { 111 getDictionary().setFloat( "I", i ); 112 } 113 114 119 public float getIntensity() 120 { 121 return getDictionary().getFloat( "I", 0 ); 122 } 123 124 130 public void setStyle( String s ) 131 { 132 getDictionary().setName( "S", s ); 133 } 134 135 141 public String getStyle() 142 { 143 return getDictionary().getNameAsString( "S", STYLE_SOLID ); 144 } 145 146 } | Popular Tags |