1 50 51 package com.lowagie.text.pdf.codec.wmf; 52 import java.awt.Color ; 53 import java.io.IOException ; 54 55 public class MetaBrush extends MetaObject { 56 57 public static final int BS_SOLID = 0; 58 public static final int BS_NULL = 1; 59 public static final int BS_HATCHED = 2; 60 public static final int BS_PATTERN = 3; 61 public static final int BS_DIBPATTERN = 5; 62 public static final int HS_HORIZONTAL = 0; 63 public static final int HS_VERTICAL = 1; 64 public static final int HS_FDIAGONAL = 2; 65 public static final int HS_BDIAGONAL = 3; 66 public static final int HS_CROSS = 4; 67 public static final int HS_DIAGCROSS = 5; 68 69 int style = BS_SOLID; 70 int hatch; 71 Color color = Color.white; 72 73 public MetaBrush() { 74 type = META_BRUSH; 75 } 76 77 public void init(InputMeta in) throws IOException { 78 style = in.readWord(); 79 color = in.readColor(); 80 hatch = in.readWord(); 81 } 82 83 public int getStyle() { 84 return style; 85 } 86 87 public int getHatch() { 88 return hatch; 89 } 90 91 public Color getColor() { 92 return color; 93 } 94 } 95 | Popular Tags |