1 50 51 package com.lowagie.text.pdf.codec.wmf; 52 import java.awt.Color ; 53 import java.io.IOException ; 54 55 public class MetaPen extends MetaObject { 56 57 public static final int PS_SOLID = 0; 58 public static final int PS_DASH = 1; 59 public static final int PS_DOT = 2; 60 public static final int PS_DASHDOT = 3; 61 public static final int PS_DASHDOTDOT = 4; 62 public static final int PS_NULL = 5; 63 public static final int PS_INSIDEFRAME = 6; 64 65 int style = PS_SOLID; 66 int penWidth = 1; 67 Color color = Color.black; 68 69 public MetaPen() { 70 type = META_PEN; 71 } 72 73 public void init(InputMeta in) throws IOException { 74 style = in.readWord(); 75 penWidth = in.readShort(); 76 in.readWord(); 77 color = in.readColor(); 78 } 79 80 public int getStyle() { 81 return style; 82 } 83 84 public int getPenWidth() { 85 return penWidth; 86 } 87 88 public Color getColor() { 89 return color; 90 } 91 } 92 | Popular Tags |