Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.lobobrowser.html.renderer.BaseRenderable
org.lobobrowser.html.renderer.BaseBoundableRenderable
org.lobobrowser.html.renderer.BaseRCollection
org.lobobrowser.html.renderer.RBlockViewport
public class RBlockViewport
extends org.lobobrowser.html.renderer.BaseRCollection
Field Summary | |
static Insets |
Fields inherited from class org.lobobrowser.html.renderer.BaseBoundableRenderable | |
SELECTION_COLOR , SELECTION_XOR , container , height , layoutUpTreeCanBeInvalidated , logger , modelNode , originalParent , parent , width , x , y |
Fields inherited from interface org.lobobrowser.html.renderer.Renderable | |
EMPTY_ARRAY |
Constructor Summary | |
|
Method Summary | |
void |
|
int | |
int | |
int | |
RenderableSpot |
|
BoundableRenderable |
|
BoundableRenderable |
|
Iterator | |
Iterator |
|
Iterator |
|
Iterator |
|
Renderable[] | |
void | |
boolean |
|
void | |
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
String |
|
Methods inherited from class org.lobobrowser.html.renderer.BaseRCollection | |
blur , extractSelectionText , focus , getRenderable , invalidateLayoutDeep , onMouseMoved , onMouseOut , onRightClick , paintSelection , updateWidgetBounds |
Methods inherited from class org.lobobrowser.html.renderer.BaseBoundableRenderable | |
contains , getBlockBackgroundColor , getBounds , getGUIPoint , getHeight , getModelNode , getOriginalOrCurrentParent , getOriginalParent , getParent , getRenderablePoint , getSize , getWidth , getX , getY , invalidateLayoutLocal , invalidateLayoutUpTree , isValid , markLayoutValid , onMouseMoved , onMouseOut , paintTranslated , relayout , relayoutImpl , repaint , repaint , setBounds , setHeight , setOrigin , setOriginalParent , setParent , setWidth , setX , setY , translateDescendentPoint |
Methods inherited from class org.lobobrowser.html.renderer.BaseRenderable | |
getOrdinal , getZIndex , setOrdinal |
public RBlockViewport(ModelNode modelNode, RenderableContainer container, int listNesting, UserAgentContext pcontext, HtmlRendererContext rcontext, FrameContext frameContext, org.lobobrowser.html.renderer.RCollection parent)
Constructs an HtmlBlockLayout.
- Parameters:
container
- This is usually going to be an RBlock.listNesting
- The nesting level for lists. This is zero except inside a list.pcontext
- The HTMLParserContext instance.frameContext
- This is usually going to be HtmlBlock, an object where text selections are contained.parent
- This is usually going to be the parent ofcontainer
.
public void align(int alignXPercent, int alignYPercent, int canvasWidth, int canvasHeight, Insets paddingInsets)
Applies any horizonal or vertical alignment. It may also adjust width and height if necessary.
- Parameters:
canvasWidth
-canvasHeight
-paddingInsets
-
public int getAvailContentWidth()
public int getFirstBaselineOffset()
public int getFirstLineHeight()
public RenderableSpot getLowestRenderableSpot(int x, int y)
- Specified by:
- getLowestRenderableSpot in interface BoundableRenderable
public BoundableRenderable getRenderable(int x, int y)
- Overrides:
- getRenderable in interface org.lobobrowser.html.renderer.BaseRCollection
public Iterator getRenderables()
- Specified by:
- getRenderables in interface org.lobobrowser.html.renderer.RCollection
public Iterator getRenderables(Rectangle clipBounds)
public Iterator getRenderables(int pointx, int pointy)
public Iterator getRenderables(java.awt.Point point)
public void invalidateLayoutLocal()
- Overrides:
- invalidateLayoutLocal in interface org.lobobrowser.html.renderer.BaseBoundableRenderable
public boolean isContainedByNode()
Returns true if the renderable is fully contained by its modelNode, but said modelNode does not fully contain an ancestor renderable.
- Specified by:
- isContainedByNode in interface BoundableRenderable
public void layout(int desiredWidth, int desiredHeight, Insets paddingInsets, NodeImpl rootNode, int yLimit, org.lobobrowser.html.renderer.FloatingBounds floatBounds)
Builds the layout/renderer tree from scratch. Note: Returned dimension needs to be actual size needed for rendered content, not the available container size. This is relied upon by table layout.
- Parameters:
yLimit
- If other than -1,layout
will throwSizeExceededException
in the event that the layout goes beyond this y-coordinate point.
public boolean onDoubleClick(MouseEvent event, int x, int y)
- Specified by:
- onDoubleClick in interface BoundableRenderable
public boolean onMouseClick(MouseEvent event, int x, int y)
- Specified by:
- onMouseClick in interface BoundableRenderable
public boolean onMouseDisarmed(MouseEvent event)
- Specified by:
- onMouseDisarmed in interface BoundableRenderable
public boolean onMousePressed(MouseEvent event, int x, int y)
Returns false if the event is consumed. True to propagate further.
- Specified by:
- onMousePressed in interface BoundableRenderable
public boolean onMouseReleased(MouseEvent event, int x, int y)
- Specified by:
- onMouseReleased in interface BoundableRenderable
public String toString()