|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmultivalent.VObject
multivalent.Node
multivalent.INode
multivalent.gui.VFrame
Movable, resizable internal window, with title bar. Lens subclasses to add composition of effects via a LensMan(ager). The class Note subclasses to add a Document instance. Dialog subclasses to add HTML form.
Lens
Field Summary | |
---|---|
static int |
HEIGHT_MIN
Minimum dimension for window. |
boolean |
lampshade
Show just title bar or full window. |
static java.lang.String |
MSG_CLOSED
Announce that Frame has been closed. |
static java.lang.String |
MSG_MOVED
Announce that Frame has been moved. |
static java.lang.String |
MSG_RAISED
Announce that Frame has raised above all other Frames. |
static java.lang.String |
MSG_RESIZED
Announce that Frame has changed size. |
static java.lang.String |
PREF_VANISHING
Remove window controls when cursor not in frame? |
boolean |
resizable
Refers to interactive resizing with mouse, not programmatic control. |
static int |
WIDTH_MIN
Minimum dimension for window. |
Fields inherited from class multivalent.INode |
---|
border, INSETS, INSETS_ZERO, margin, padding |
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_ |
Constructor Summary | |
---|---|
VFrame(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attr,
INode parent)
|
|
VFrame(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attr,
INode parent,
java.net.URI docuri)
Content given by passed URL; pass null if want to build subtree yourself. |
Method Summary | |
---|---|
void |
close()
Remove window from screen. |
void |
event(java.awt.AWTEvent e)
Handle events while moving, resizing, .... |
boolean |
eventBeforeAfter(java.awt.AWTEvent e,
java.awt.Point rel)
Adjust for bbox (which itself has been adjusted for margins), padding, border. |
boolean |
eventNode(java.awt.AWTEvent e,
java.awt.Point rel)
Internal nodes pass on to children. |
boolean |
formatNode(int width,
int height,
Context cx)
Children report dimensions (width and height), parent places at (x,y). |
java.awt.Rectangle |
getContentBounds()
Returns new Rectangle sized and positioned to cover content, not title bar. |
java.lang.String |
getTitle()
Bounds of window, with (x,y) relative to containing Document. |
boolean |
isPinned()
|
void |
paintNode(java.awt.Rectangle docclip,
Context cx)
Draw content, then window apparatus (title bar, resize nib). |
void |
raise()
Windows added on top, so raise to top = remove + add. |
void |
setBounds(int x,
int y,
int width,
int height)
Identical to setLocation(x,y), setSize(width,height); |
void |
setIn(boolean in)
|
void |
setLocation(int x,
int y)
Should be fast so can interactively move window -- in the past have minimized amount of redrawing, but at 500MHz Pentium and HotSpot, plenty fast enough to redraw entire document. |
void |
setPinned(boolean pinned)
Moves between RELATIVE and ABSOLUTE visual layers on class Document, translating coordinates so window appears at same location at present scroll. |
void |
setSize(int width,
int height)
Set dimensions of window, including title bar. |
void |
setTitle(java.lang.String title)
|
Methods inherited from class multivalent.INode |
---|
addCategory, appendChild, breakAfter, breakBefore, checkRep, childAt, childNum, clipboardNode, clone, contains, dump, dx, dy, 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 |
Field Detail |
---|
public static final java.lang.String MSG_RESIZED
"frameResized": arg= VFrame
instance.
public static final java.lang.String MSG_MOVED
"frameMoved": arg= VFrame
instance.
public static final java.lang.String MSG_CLOSED
"frameResized": arg= VFrame
instance.
public static final java.lang.String MSG_RAISED
"frameRaised": arg= VFrame
instance.
public static final java.lang.String PREF_VANISHING
Boolean "vanishingTitle"
public static final int WIDTH_MIN
public static final int HEIGHT_MIN
public boolean resizable
public boolean lampshade
Constructor Detail |
---|
public VFrame(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attr, INode parent)
public VFrame(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attr, INode parent, java.net.URI docuri)
Method Detail |
---|
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public void setIn(boolean in)
public java.awt.Rectangle getContentBounds()
public boolean isPinned()
public void setPinned(boolean pinned)
public void raise()
public void setBounds(int x, int y, int width, int height)
public void setSize(int width, int height)
public void setLocation(int x, int y)
public void close()
public boolean formatNode(int width, int height, Context cx)
INode
formatNode
in class INode
FixedI
public void paintNode(java.awt.Rectangle docclip, Context cx)
paintNode
in class INode
public boolean eventBeforeAfter(java.awt.AWTEvent e, java.awt.Point rel)
INode
eventBeforeAfter
in class INode
public boolean eventNode(java.awt.AWTEvent e, java.awt.Point rel)
INode
eventNode
in class INode
TreeEvent
,
SemanticEvent
public void event(java.awt.AWTEvent e)
event
in interface EventListener
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |