org.lobobrowser.html.renderer
Interface RElement

All Superinterfaces:
BoundableRenderable, RCollection, Renderable, UINode
All Known Implementing Classes:
RBlock, RImgControl

public interface RElement
extends RCollection, UINode, BoundableRenderable

A renderer node for elements such as blocks, lists, tables, inputs, images, etc.


Field Summary
static int VALIGN_ABSBOTTOM
           
static int VALIGN_ABSMIDDLE
           
static int VALIGN_BASELINE
           
static int VALIGN_BOTTOM
           
static int VALIGN_MIDDLE
           
static int VALIGN_TOP
           
 
Fields inherited from interface org.lobobrowser.html.renderer.Renderable
EMPTY_ARRAY
 
Method Summary
 int getCollapsibleMarginBottom()
           
 int getCollapsibleMarginTop()
           
 int getMarginBottom()
           
 int getMarginLeft()
           
 int getMarginRight()
           
 int getMarginTop()
           
 int getVAlign()
          Vertical alignment for elements rendered in a line.
 void layout(int availWidth, int availHeight, boolean sizeOnly)
          Lays out the subtree below the RElement.
 
Methods inherited from interface org.lobobrowser.html.renderer.RCollection
blur, focus, getRenderables, invalidateLayoutDeep, updateWidgetBounds
 
Methods inherited from interface org.lobobrowser.html.renderer.BoundableRenderable
extractSelectionText, getBounds, getGUIPoint, getHeight, getLowestRenderableSpot, getModelNode, getOrdinal, getOrigin, getOriginalOrCurrentParent, getOriginalParent, getOriginRelativeTo, getParent, getRenderablePoint, getSize, getWidth, getX, getY, getZIndex, invalidateLayoutUpTree, isContainedByNode, onDoubleClick, onMouseClick, onMouseDisarmed, onMouseMoved, onMouseOut, onMousePressed, onMouseReleased, onRightClick, paintSelection, paintTranslated, relayout, repaint, repaint, setBounds, setHeight, setOrdinal, setOrigin, setOriginalParent, setParent, setWidth, setX, setY
 
Methods inherited from interface org.lobobrowser.html.renderer.Renderable
paint
 
Methods inherited from interface org.lobobrowser.html.domimpl.UINode
blur, focus, getBounds, getBoundsRelativeToBlock, repaint
 

Field Detail

VALIGN_TOP

static final int VALIGN_TOP
See Also:
Constant Field Values

VALIGN_MIDDLE

static final int VALIGN_MIDDLE
See Also:
Constant Field Values

VALIGN_BOTTOM

static final int VALIGN_BOTTOM
See Also:
Constant Field Values

VALIGN_ABSMIDDLE

static final int VALIGN_ABSMIDDLE
See Also:
Constant Field Values

VALIGN_ABSBOTTOM

static final int VALIGN_ABSBOTTOM
See Also:
Constant Field Values

VALIGN_BASELINE

static final int VALIGN_BASELINE
See Also:
Constant Field Values
Method Detail

layout

void layout(int availWidth,
            int availHeight,
            boolean sizeOnly)
Lays out the subtree below the RElement. The RElement is expected to set its own dimensions, but not its origin.

Parameters:
availWidth - The available width from the parent's canvas.
availHeight - The available height from the parent's canvas.
sizeOnly - Whether the layout is for sizing determination only.

getVAlign

int getVAlign()
Vertical alignment for elements rendered in a line. Returns one of the constants defined in this class.


getMarginTop

int getMarginTop()

getMarginLeft

int getMarginLeft()

getMarginBottom

int getMarginBottom()

getMarginRight

int getMarginRight()

getCollapsibleMarginTop

int getCollapsibleMarginTop()

getCollapsibleMarginBottom

int getCollapsibleMarginBottom()


SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Cobra Project Home]