1 17 18 19 20 package org.apache.fop.fo.pagination; 21 22 import org.apache.fop.apps.FOPException; 23 import org.apache.fop.fo.FONode; 24 import org.apache.fop.fo.FObj; 25 import org.apache.fop.fo.PropertyList; 26 import org.apache.fop.fo.ValidationException; 27 28 import org.xml.sax.Locator ; 29 30 34 public class ColorProfile extends FObj { 35 private String src; 37 private String colorProfileName; 38 private int renderingIntent; 39 41 44 public ColorProfile(FONode parent) { 45 super(parent); 46 } 47 48 51 public void bind(PropertyList pList) throws FOPException { 52 src = pList.get(PR_SRC).getString(); 53 colorProfileName = pList.get(PR_COLOR_PROFILE_NAME).getString(); 54 renderingIntent = pList.get(PR_RENDERING_INTENT).getEnum(); 55 } 56 57 61 protected void validateChildNode(Locator loc, String nsURI, String localName) 62 throws ValidationException { 63 invalidChildError(loc, nsURI, localName); 64 } 65 66 69 public String getColorProfileName() { 70 return colorProfileName; 71 } 72 73 74 public String getLocalName() { 75 return "color-profile"; 76 } 77 78 81 public int getNameId() { 82 return FO_COLOR_PROFILE; 83 } 84 85 90 public String getSrc() { 91 return this.src; 92 } 93 94 106 public int getRenderingIntent() { 107 return this.renderingIntent; 108 } 109 } 110 | Popular Tags |