Package org.loboevolution.html.renderer
Class RInlineBlock
- All Implemented Interfaces:
ImageObserver
,UINode
,BoundableRenderable
,RCollection
,RElement
,Renderable
,RenderableContainer
RInlineBlock class.
-
Field Summary
Fields inherited from class org.loboevolution.html.renderer.BaseElementRenderable
backgroundColor, backgroundImage, borderBottomColor, borderInfo, borderInsets, borderLeftColor, borderRightColor, borderTopColor, delayedPairs, INVALID_SIZE, lastBackgroundImageUri, layoutDeepCanBeInvalidated, marginInsets, overflowX, overflowY, paddingInsets, relativeOffsetX, relativeOffsetY, SCROLL_BAR_THICKNESS, userAgentContext, zIndex
Fields inherited from class org.loboevolution.html.renderer.BaseBoundableRenderable
container, layoutUpTreeCanBeInvalidated, modelNode, originalParent, parent, SELECTION_COLOR, SELECTION_XOR
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface org.loboevolution.html.renderer.Renderable
EMPTY_ARRAY
-
Constructor Summary
ConstructorsConstructorDescriptionRInlineBlock
(RenderableContainer container, RBlockInfo info) Constructor for RInlineBlock. -
Method Summary
Modifier and TypeMethodDescriptionaddComponent
(Component component) addComponent.void
assignDimension.protected void
doLayout
(int availWidth, int availHeight, boolean sizeOnly) doLayout.getLowestRenderableSpot
(int x, int y) getLowestRenderableSpot.getPaintedBackgroundColor.getRenderables.void
layout
(int availWidth, int availHeight, boolean sizeOnly) Lays out the subtree below the RElement.boolean
onDoubleClick
(MouseEvent event, int x, int y) onDoubleClick.boolean
onMouseClick
(MouseEvent event, int x, int y) onMouseClick.boolean
onMouseDisarmed
(MouseEvent event) onMouseDisarmed.boolean
onMousePressed
(MouseEvent event, int x, int y) onMousePressed.boolean
onMouseReleased
(MouseEvent event, int x, int y) onMouseReleased.void
paint.void
CalledMethods inherited from class org.loboevolution.html.renderer.BaseElementRenderable
addDelayedPair, applyStyle, clearDelayedPairs, clearGUIComponents, clearStyle, getBorderInsets, getClipBounds, getCollapsibleMarginBottom, getCollapsibleMarginTop, getDeclaredHeight, getDeclaredMaxHeight, getDeclaredMaxWidth, getDeclaredMinHeight, getDeclaredMinWidth, getDeclaredWidth, getDelayedPairs, getInnerHeight, getInnerWidth, getInsets, getInsetsMarginBorder, getInsetsPadding, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getParentContainer, getZIndex, hasDeclaredWidth, imageUpdate, invalidateLayoutDeep, invalidateLayoutLocal, isContainedByNode, isMarginBoundary, prePaint, sendDelayedPairsToParent, sendGUIComponentsToParent, setupRelativePosition, translateDescendentPoint, updateAllWidgetBounds, updateWidgetBounds
Methods inherited from class org.loboevolution.html.renderer.BaseRCollection
blur, extractSelectionText, focus, getClipBoundsWithoutInsets, getDeclaredHeightImpl, getDeclaredWidthImpl, getRenderable, onMouseMoved, onMouseOut, onRightClick, paintSelection, updateWidgetBounds
Methods inherited from class org.loboevolution.html.renderer.BaseBoundableRenderable
contains, getBlockBackgroundColor, getBounds, getGUIPoint, getModelNode, getOrigin, getOriginalOrCurrentParent, getOriginalParent, getOriginRelativeTo, getOriginRelativeToAbs, getOriginRelativeToNoScroll, getParent, getRectangle, getRenderablePoint, getSize, getVisualBounds, getVisualHeight, getVisualWidth, invalidateLayoutUpTree, isDelegated, isValid, markLayoutValid, onMouseScroll, paintTranslated, relayout, relayoutIfValid, repaint, repaint, setOriginalParent, setParent
Methods inherited from class org.loboevolution.html.renderer.RRectangle
setBounds, setOrigin
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.loboevolution.html.renderer.BoundableRenderable
contains, extractSelectionText, getBounds, getGUIPoint, getHeight, getModelNode, getOrdinal, getOrigin, getOriginalOrCurrentParent, getOriginalParent, getOriginRelativeTo, getOriginRelativeToAbs, getOriginRelativeToNoScroll, getParent, getRectangle, getRenderablePoint, getSize, getVisualBounds, getVisualHeight, getVisualWidth, getWidth, getX, getY, invalidateLayoutUpTree, isDelegated, onMouseMoved, onMouseOut, onMouseScroll, onRightClick, paintSelection, paintTranslated, relayout, repaint, repaint, setBounds, setDelegator, setHeight, setOrdinal, setOrigin, setOriginalParent, setParent, setWidth, setX, setY
Methods inherited from interface org.loboevolution.html.renderer.RCollection
blur, focus, getClipBoundsWithoutInsets, getRenderable, updateWidgetBounds
Methods inherited from interface org.loboevolution.html.renderer.Renderable
findHtmlRenderable, isFixed
Methods inherited from interface org.loboevolution.html.renderer.RenderableContainer
focus, getGUIPoint, getOriginRelativeToAbs, getVisualBounds, getVisualHeight, getVisualWidth, getY, invalidateLayoutUpTree, relayout, repaint
-
Constructor Details
-
RInlineBlock
Constructor for RInlineBlock.
- Parameters:
container
- aRenderableContainer
object.info
- aRBlockInfo
object.
-
-
Method Details
-
assignDimension
public void assignDimension()assignDimension.
-
getRenderables
getRenderables.
- Returns:
- a
List
object.
-
getLowestRenderableSpot
getLowestRenderableSpot.
- Parameters:
x
- aInteger
object.y
- aInteger
object.- Returns:
- a
RenderableSpot
object.
-
onDoubleClick
onDoubleClick.
- Specified by:
onDoubleClick
in interfaceBoundableRenderable
- Overrides:
onDoubleClick
in classBaseBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMouseClick
onMouseClick.
- Specified by:
onMouseClick
in interfaceBoundableRenderable
- Overrides:
onMouseClick
in classBaseBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMouseDisarmed
onMouseDisarmed.
- Specified by:
onMouseDisarmed
in interfaceBoundableRenderable
- Overrides:
onMouseDisarmed
in classBaseBoundableRenderable
- Parameters:
event
- aMouseEvent
object.- Returns:
- a boolean.
-
onMousePressed
onMousePressed.
- Specified by:
onMousePressed
in interfaceBoundableRenderable
- Overrides:
onMousePressed
in classBaseBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMouseReleased
onMouseReleased.
- Specified by:
onMouseReleased
in interfaceBoundableRenderable
- Overrides:
onMouseReleased
in classBaseBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
paint
paint.
- Specified by:
paint
in interfaceRenderable
- Overrides:
paint
in classBaseElementRenderable
- Parameters:
g
- aGraphics
object.
-
repaint
Called- Parameters:
modelNode
- aModelNode
object.
-
getPaintedBackgroundColor
getPaintedBackgroundColor.
- Returns:
- a
Color
object.
-
doLayout
protected void doLayout(int availWidth, int availHeight, boolean sizeOnly) doLayout.
- Specified by:
doLayout
in classBaseElementRenderable
- Parameters:
availWidth
- aInteger
object.availHeight
- aInteger
object.sizeOnly
- a boolean.
-
layout
public 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. Lays out children, and deals with "valid" state. Override doLayout method instead of this one.- Specified by:
layout
in interfaceRElement
- Overrides:
layout
in classBaseElementRenderable
- 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.
-
addComponent
addComponent.
- Specified by:
addComponent
in interfaceRenderableContainer
- Overrides:
addComponent
in classBaseElementRenderable
- Parameters:
component
- aComponent
object.- Returns:
- a
Component
object.
-