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 |
|
void |
|
void |
|
int | |
org.lobobrowser.html.renderer.FloatingBounds |
|
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 , getOrigin , getOriginRelativeTo , 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, 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 adjust(int desiredWidth, int desiredHeight, Insets paddingInsets, org.lobobrowser.html.renderer.FloatingBounds floatBounds)
Performs layout adjustment step.
- Parameters:
desiredWidth
- The desired viewport width, including padding.desiredHeight
- The desired viewport height, including padding.paddingInsets
- The padding insets.floatBounds
- The starting float bounds, including floats in ancestors.
public void alignX(int alignXPercent, int canvasWidth, Insets paddingInsets)
Applies any horizonal aLignment. It may adjust height if necessary.
- Parameters:
canvasWidth
- The new width of the viewport. It could be different to the previously calculated width.paddingInsets
-
public void alignY(int alignYPercent, int canvasHeight, Insets paddingInsets)
Applies vertical alignment.
- Parameters:
canvasHeight
-paddingInsets
-
public int getAvailContentWidth()
public org.lobobrowser.html.renderer.FloatingBounds getExportableFloatingBounds()
Gets FloatingBounds from this viewport that should be considered by an ancestor block.
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(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()
- Specified by:
- isContainedByNode in interface BoundableRenderable
public void layout(int desiredWidth, int desiredHeight, Insets paddingInsets, 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)
- Specified by:
- onMousePressed in interface BoundableRenderable
public boolean onMouseReleased(MouseEvent event, int x, int y)
- Specified by:
- onMouseReleased in interface BoundableRenderable
public String toString()