1 51 package org.apache.fop.fo; 52 53 import org.apache.fop.datatypes.ColorType; 54 55 public class ColorTypeProperty extends Property { 56 57 public static class Maker extends Property.Maker { 58 59 public Maker(String propName) { 60 super(propName); 61 } 62 63 public Property convertProperty(Property p, 64 PropertyList propertyList, FObj fo) { 65 if (p instanceof ColorTypeProperty) 66 return p; 67 ColorType val = p.getColorType(); 68 if (val != null) 69 return new ColorTypeProperty(val); 70 return convertPropertyDatatype(p, propertyList, fo); 71 } 72 73 } 74 75 private ColorType colorType; 76 77 public ColorTypeProperty(ColorType colorType) { 78 this.colorType = colorType; 79 } 80 81 public ColorType getColorType() { 83 return this.colorType; 84 } 85 86 public Object getObject() { 87 return this.colorType; 88 } 89 90 } 91 | Popular Tags |