|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.pilots.html4.TheView
This class provides mapping from DOM to Layout information. It can be used to retrieve position of an element on the screen, its bounding box, runtime style etc.
| Field Summary |
| Fields inherited from interface ice.pilots.html4.ParameterConstants |
IMPORTANT_PRIORITY, NORMAL_PRIORITY, PARAMETER_ALL, PARAMETER_BACKGROUND_COLOR, PARAMETER_HEIGHT, PARAMETER_LEFT, PARAMETER_MARGIN, PARAMETER_MARGIN_BOTTOM, PARAMETER_MARGIN_LEFT, PARAMETER_MARGIN_RIGHT, PARAMETER_MARGIN_TOP, PARAMETER_TOP, PARAMETER_WIDTH |
| Method Summary | |
void |
findBoundingBox(DNode e,
Rectangle r)
Find bounding box of a given DOM Node in the layout representation |
void |
findPosition(DNode e,
Point p)
Find position of a given DOM Node in the layout representation |
CSSStyleDeclaration |
getComputedStyle(Element elt,
String pseudoElt)
This method is used to get the computed style as it is defined in . |
DocPane |
getDocPane()
Returns the DocPane which normally is the physical window into which this view is painted. |
DocumentView |
getDocument()
The source DocumentView of which this is an
AbstractView. |
FocusManager |
getFocusManager()
|
int |
getHeight()
|
ObjectPainter |
getNodePainter(DNode node)
Get gui element that represent the DOM node or null if the element is rendered directly by layout engine |
ObjectPainter |
getNodeScroller(DNode node)
Retrieve the ScrollClient of a given DNode. |
ScrollBox |
getScroller(DNode node)
Retrieve the ScrollBox container of a given DNode. |
static Object |
getToolkitComponent(DNode node)
Get gui element that represent the DOM node or null if the element is rendered directly by layout engine or lightweight pilot |
int |
getWidth()
|
int |
getZoom()
Retrieves zoom for this particular view. |
void |
reqReflow()
Requests the layout to be re-calculated. |
void |
setZoom(int z)
Applies zoom for this particular view. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void reqReflow()
public DocumentView getDocument()
AbstractViewDocumentView of which this is an
AbstractView.
getDocument in interface AbstractViewpublic DocPane getDocPane()
public FocusManager getFocusManager()
public int getWidth()
public int getHeight()
public CSSStyleDeclaration getComputedStyle(Element elt,
String pseudoElt)
getComputedStyle in interface ViewCSSelt - The element whose style is to be computed. This parameter
cannot be null.pseudoElt - The pseudo-element or null if none.
CSSStyleDeclaration is
read-only and contains only absolute values.public void setZoom(int z)
public int getZoom()
public void findBoundingBox(DNode e,
Rectangle r)
public ObjectPainter getNodePainter(DNode node)
public static Object getToolkitComponent(DNode node)
public ObjectPainter getNodeScroller(DNode node)
node - A DNode
public ScrollBox getScroller(DNode node)
node - The DNode in question
public void findPosition(DNode e,
Point p)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||