1 package com.etymon.pj.object; 2 3 import java.io.*; 4 import java.util.*; 5 import com.etymon.pj.*; 6 import com.etymon.pj.exception.*; 7 8 12 public abstract class PjFont 13 extends PjDictionary { 14 15 18 public PjFont() { 19 super(); 20 _h.put(PjName.TYPE, PjName.FONT); 21 } 22 23 27 public PjFont(Hashtable h) { 28 super(h); 29 } 30 31 public void setName(PjName name) { 32 _h.put(PjName.NAME, name); 33 } 34 35 public PjObject getName() throws InvalidPdfObjectException { 36 return hget(PjName.NAME); 37 } 38 39 public void setBaseFont(PjName baseFont) { 40 _h.put(PjName.BASEFONT, baseFont); 41 } 42 43 public void setBaseFont(PjReference baseFont) { 44 _h.put(PjName.BASEFONT, baseFont); 45 } 46 47 public PjObject getBaseFont() throws InvalidPdfObjectException { 48 return hget(PjName.BASEFONT); 49 } 50 51 public void setFirstChar(PjNumber firstChar) { 52 _h.put(PjName.FIRSTCHAR, firstChar); 53 } 54 55 public void setFirstChar(PjReference firstChar) { 56 _h.put(PjName.FIRSTCHAR, firstChar); 57 } 58 59 public PjObject getFirstChar() throws InvalidPdfObjectException { 60 return hget(PjName.FIRSTCHAR); 61 } 62 63 public void setLastChar(PjNumber lastChar) { 64 _h.put(PjName.LASTCHAR, lastChar); 65 } 66 67 public void setLastChar(PjReference lastChar) { 68 _h.put(PjName.LASTCHAR, lastChar); 69 } 70 71 public PjObject getLastChar() throws InvalidPdfObjectException { 72 return hget(PjName.LASTCHAR); 73 } 74 75 public void setWidths(PjReference widths) { 76 _h.put(PjName.WIDTHS, widths); 77 } 78 79 public PjObject getWidths() throws InvalidPdfObjectException { 80 return hget(PjName.WIDTHS); 81 } 82 83 public void setEncoding(PjDictionary encoding) { 84 _h.put(PjName.ENCODING, encoding); 85 } 86 87 public void setEncoding(PjName encoding) { 88 _h.put(PjName.ENCODING, encoding); 89 } 90 91 public void setEncoding(PjReference encoding) { 92 _h.put(PjName.ENCODING, encoding); 93 } 94 95 public PjObject getEncoding() throws InvalidPdfObjectException { 96 return hget(PjName.ENCODING); 97 } 98 99 public void setFontDescriptor(PjReference fontDescriptor) { 100 _h.put(PjName.FONTDESCRIPTOR, fontDescriptor); 101 } 102 103 public PjObject getFontDescriptor() throws InvalidPdfObjectException { 104 return hget(PjName.FONTDESCRIPTOR); 105 } 106 107 } 108 | Popular Tags |