Multivalent API

multivalent.std.adaptor.pdf
Class FixedLeafShade

java.lang.Object
  extended by multivalent.VObject
      extended by multivalent.Node
          extended by multivalent.Leaf
              extended by multivalent.std.adaptor.pdf.FixedLeafShade
All Implemented Interfaces:
java.lang.Cloneable, Fixed

public class FixedLeafShade
extends Leaf
implements Fixed

INCOMPLETE. Only Axial type implemented; others only draw background. Variety of PDF shadings.

Version:
$Revision: 1.5 $ $Date: 2003/08/29 04:00:39 $

Field Summary
 
Fields inherited from class multivalent.Node
align, ALIGN_INVALID, ATTR_ID, ATTR_SCRIPT, baseline, BASELINE, bbox, BOTH, BOTTOM, CENTER, CHAR, FILL, floats, INHERIT, JUSTIFY, LEFT, MAXNONSTRUCTDEPTH, MIDDLE, name_, NONE, observers_, parent_, PROBEWIDTH, RIGHT, sticky_, stickycnt_, TOP, valid_, valign
 
Fields inherited from class multivalent.VObject
attr_
 
Fields inherited from interface multivalent.node.Fixed
ATTR_REFORMATTED
 
Constructor Summary
protected FixedLeafShade(java.lang.String name, Dict dict, INode parent, java.awt.color.ColorSpace cs, java.awt.Rectangle bbox, PDFReader pdfr)
           
 
Method Summary
 java.awt.Rectangle getIbbox()
          An "ibbox", or initial bbox, holds the absolute coordinates vs relative ones in bboxes.
static FixedLeafShade getInstance(Dict dict, java.awt.color.ColorSpace cs, java.awt.Rectangle bbox, INode parent, PDFReader pdfr)
          Returns leaf that performs the type of smooth shading (gradient) described by the passed shading dictionary within the area bbox.
 boolean paintNodeContent(Context cx, int start, int end)
          Paint (plain) background, on top of which gradient is drawn.
 
Methods inherited from class multivalent.Leaf
append, checkRep, clipboardBeforeAfter, clipboardNode, copy, cut, delete, dx, dy, eatme, eventBeforeAfter, eventNode, formatBeforeAfter, formatNode, formatNodeContent, getFirstLeaf, getLastLeaf, insert, insert, isLeaf, lengthTo, markDirtySubtreeDown, offset2rel, paintBeforeAfter, paintNode, paste, paste, removeTidy, setName, split, subelement, subelementCalc, subelementHit
 
Methods inherited from class multivalent.Node
addObserver, addSticky, addSticky, breakAfter, breakBefore, childNum, clipboardBeforeAfter, clone, cmp, commonAncestor, commonAncestor, contains, contains, deleteObserver, dump, dump, dump, findBFS, findBFS, findBFS, findDFS, findDFS, findDFS, findDFS, getAbsLocation, getActivesAt, getActivesAt, getActivesAt, getBbox, getBrowser, getDocument, getElementById, getIScrollPane, getName, getNextLeaf, getNextNode, getNodeName, getObservers, getParentNode, getPrevLeaf, getPrevNode, getRelLocation, getRoot, getSticky, indexSticky, intersects, isStruct, isValid, markDirty, markDirtySubtree, markDirtyTo, morphInto, reformat, remove, removeSticky, removeSticky, repaint, repaint, repaint, repaint, scrollTo, scrollTo, setParentNode, setValid, size, sizeSticky, spanChunky, spanChunky, structChildNum, toString
 
Methods inherited from class multivalent.VObject
attrEntrySetIterator, attrKeysIterator, clearAttributes, getAttr, getAttr, getAttributes, getGlobal, getValue, hasAttributes, putAttr, removeAttr, setAttributes
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface multivalent.node.Fixed
getBbox
 

Constructor Detail

FixedLeafShade

protected FixedLeafShade(java.lang.String name,
                         Dict dict,
                         INode parent,
                         java.awt.color.ColorSpace cs,
                         java.awt.Rectangle bbox,
                         PDFReader pdfr)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getInstance

public static FixedLeafShade getInstance(Dict dict,
                                         java.awt.color.ColorSpace cs,
                                         java.awt.Rectangle bbox,
                                         INode parent,
                                         PDFReader pdfr)
                                  throws java.io.IOException
Returns leaf that performs the type of smooth shading (gradient) described by the passed shading dictionary within the area bbox.

Throws:
java.io.IOException

getIbbox

public java.awt.Rectangle getIbbox()
Description copied from interface: Fixed
An "ibbox", or initial bbox, holds the absolute coordinates vs relative ones in bboxes.

Specified by:
getIbbox in interface Fixed

paintNodeContent

public boolean paintNodeContent(Context cx,
                                int start,
                                int end)
Paint (plain) background, on top of which gradient is drawn.

Overrides:
paintNodeContent in class Leaf

Multivalent API