multivalent.node
Class IZoom
java.lang.Object
multivalent.VObject
multivalent.Node
multivalent.INode
multivalent.node.IZoom
- All Implemented Interfaces:
- java.lang.Cloneable
- public class IZoom
- extends INode
Broken
Insert node into tree and set zoom factor to implement zooming on subtree.
Formatting and repaint kept in non-zoomed coordinates.
Events and painting zoomed.
- Version:
- $Revision: 1.2 $ $Date: 2002/02/02 13:41:39 $
Field Summary |
int |
Zoom
Zoom factor, in percent. |
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 |
Constructor Summary |
IZoom(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attrs,
INode parent)
|
Method Summary |
boolean |
eventNode(java.awt.AWTEvent e,
java.awt.Point rel)
Scale down from zoomed visual to non-zoomed coordinates. |
boolean |
formatNode(int width,
int height,
Context cx)
Scale up formatted dimensions by zoom factor. |
void |
paintNode(java.awt.Rectangle docclip,
Context cx)
Scale up from non-zoomed coordinates to zoomed visual. |
Methods inherited from class multivalent.INode |
addCategory, appendChild, breakAfter, breakBefore, checkRep, childAt, childNum, clipboardNode, clone, contains, dump, dx, dy, eventBeforeAfter, findDFS, formatBeforeAfter, getElementById, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getNextSibling, getPreviousSibling, insertChildAt, isStruct, markDirtySubtreeDown, paintBeforeAfter, removeAllChildren, removeChild, removeChildAt, setChildAt, setName, size, structChildAt, structChildNum, structsize |
Methods inherited from class multivalent.Node |
addObserver, addSticky, addSticky, childNum, clipboardBeforeAfter, cmp, commonAncestor, commonAncestor, contains, deleteObserver, dump, dump, findBFS, findBFS, findBFS, findDFS, findDFS, findDFS, getAbsLocation, getActivesAt, getActivesAt, getActivesAt, getBbox, getBrowser, getDocument, getIScrollPane, getName, getNextLeaf, getNextNode, getNodeName, getObservers, getParentNode, getPrevLeaf, getPrevNode, getRelLocation, getRoot, getSticky, indexSticky, intersects, isLeaf, isValid, markDirty, markDirtySubtree, markDirtyTo, morphInto, reformat, remove, removeSticky, removeSticky, removeTidy, repaint, repaint, repaint, repaint, scrollTo, scrollTo, setParentNode, setValid, 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 |
Zoom
public int Zoom
- Zoom factor, in percent.
IZoom
public IZoom(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attrs,
INode parent)
formatNode
public boolean formatNode(int width,
int height,
Context cx)
- Scale up formatted dimensions by zoom factor.
- Overrides:
formatNode
in class INode
- See Also:
FixedI
paintNode
public void paintNode(java.awt.Rectangle docclip,
Context cx)
- Scale up from non-zoomed coordinates to zoomed visual.
- Overrides:
paintNode
in class INode
eventNode
public boolean eventNode(java.awt.AWTEvent e,
java.awt.Point rel)
- Scale down from zoomed visual to non-zoomed coordinates.
- Overrides:
eventNode
in class INode
- See Also:
TreeEvent
,
SemanticEvent