org.lobobrowser.html.renderer
Interface RElement
- BoundableRenderable, org.lobobrowser.html.renderer.RCollection, Renderable, UINode
- RBlock, RImgControl
public interface RElement
A renderer node for elements such as blocks, lists, tables, inputs, images, etc.
int | getVAlign() - Vertical alignment for elements rendered in a line.
|
void | layout(int availWidth, int availHeight, boolean expandWidth, boolean expandHeight) - Lays out the subtree below the RElement.
|
extractSelectionText , getBounds , getGUIPoint , getHeight , getLowestRenderableSpot , getModelNode , getOriginalOrCurrentParent , getOriginalParent , getParent , getRenderablePoint , getSize , getWidth , getX , getY , isContainedByNode , onDoubleClick , onMouseClick , onMouseDisarmed , onMouseMoved , onMouseOut , onMousePressed , onMouseReleased , onRightClick , paintSelection , paintTranslated , relayout , repaint , repaint , setBounds , setHeight , setOrigin , setOriginalParent , setParent , setWidth , setX , setY |
VALIGN_ABSBOTTOM
public static final int VALIGN_ABSBOTTOM
VALIGN_ABSMIDDLE
public static final int VALIGN_ABSMIDDLE
VALIGN_BASELINE
public static final int VALIGN_BASELINE
VALIGN_BOTTOM
public static final int VALIGN_BOTTOM
VALIGN_MIDDLE
public static final int VALIGN_MIDDLE
VALIGN_TOP
public static final int VALIGN_TOP
getVAlign
public int getVAlign()
Vertical alignment for elements rendered in a line.
Returns one of the constants defined in this class.
layout
public void layout(int availWidth,
int availHeight,
boolean expandWidth,
boolean expandHeight)
Lays out the subtree below the RElement.
The RElement is expected to set its own dimensions, but not its origin.
availWidth
- The available width from the parent's canvas.availHeight
- The available height from the parent's canvas.expandWidth
- Whether width should be expanded to fill availWidth.expandHeight
- Whether height should be expanded to fill availHeight.