Package org.loboevolution.html.renderer
Interface BoundableRenderable
- All Superinterfaces:
Renderable
- All Known Subinterfaces:
RCollection
,RElement
- All Known Implementing Classes:
BaseElementRenderable
,RBlock
,RBlockViewport
,RImgControl
,RInlineBlock
,RTable
,RTableCell
,RUIControl
,TranslatedRenderable
A renderer node with well-defined bounds. Most renderer nodes implement this
interface.
-
Field Summary
Fields inherited from interface org.loboevolution.html.renderer.Renderable
EMPTY_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(int x, int y) contains.boolean
extractSelectionText
(StringBuilder buffer, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) extractSelectionText.getBounds.getGUIPoint
(int clientX, int clientY) getGUIPoint.int
getHeight.getLowestRenderableSpot
(int x, int y) getLowestRenderableSpot.getModelNode.int
getOrdinal.getOrigin.getOriginalOrCurrentParent.getOriginalParent.getOriginRelativeTo
(RCollection ancestor) getOriginRelativeTo.getOriginRelativeToAbs
(RCollection ancestor) getOriginRelativeToAbs.getOriginRelativeToNoScroll
(RCollection ancestor) getOriginRelativeToNoScroll.getParent.getRenderablePoint
(int guiX, int guiY) getRenderablePoint.getSize()
getSize.getVisualBounds.int
getVisualHeight.int
getVisualWidth.int
getWidth()
getWidth.int
getX()
getX.int
getY()
getY.int
getZIndex.void
invalidateLayoutUpTree.boolean
isContainedByNode.boolean
isDelegated.boolean
onDoubleClick
(MouseEvent event, int x, int y) onDoubleClick.boolean
onMouseClick
(MouseEvent event, int x, int y) onMouseClick.boolean
onMouseDisarmed
(MouseEvent event) onMouseDisarmed.void
onMouseMoved
(MouseEvent event, int x, int y, boolean triggerEvent, ModelNode limit) onMouseMoved.void
onMouseOut
(MouseEvent event, int x, int y, ModelNode limit) onMouseOut.boolean
onMousePressed
(MouseEvent event, int x, int y) onMousePressed.boolean
onMouseReleased
(MouseEvent event, int x, int y) onMouseReleased.void
boolean
onRightClick
(MouseEvent event, int x, int y) onRightClick.boolean
paintSelection
(Graphics g, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) paintSelection.void
paintTranslated.void
relayout()
relayout.void
repaint()
repaint.void
repaint
(int x, int y, int width, int height) repaint.void
setBounds
(int x, int y, int with, int height) setBounds.void
setDelegator
(BoundableRenderable pDelegator) setParent.void
setHeight
(int height) setHeight.void
setOrdinal
(int ordinal) setOrdinal.void
setOrigin
(int x, int y) setOrigin.void
setOriginalParent
(RCollection origParent) setOriginalParent.void
setParent
(RCollection parent) setParent.void
setWidth
(int width) setWidth.void
setX
(int x) setX.void
setY
(int y) setY.Methods inherited from interface org.loboevolution.html.renderer.Renderable
findHtmlRenderable, isFixed, paint
-
Method Details
-
getSize
Dimension getSize()getSize.
- Returns:
- a
Dimension
object.
-
getBounds
Rectangle getBounds()getBounds.
- Returns:
- a
Rectangle
object.
-
getVisualBounds
Rectangle getVisualBounds()getVisualBounds.
- Returns:
- a
Rectangle
object.
-
contains
boolean contains(int x, int y) contains.
-
getLowestRenderableSpot
getLowestRenderableSpot.
- Parameters:
x
- aInteger
object.y
- aInteger
object.- Returns:
- a
RenderableSpot
object.
-
getGUIPoint
getGUIPoint.
-
getOrigin
Point getOrigin()getOrigin.
- Returns:
- a
Point
object.
-
getRenderablePoint
getRenderablePoint.
-
getOriginRelativeTo
getOriginRelativeTo.
- Parameters:
ancestor
- aRCollection
object.- Returns:
- a
Point
object.
-
getOriginRelativeToNoScroll
getOriginRelativeToNoScroll.
- Parameters:
ancestor
- aRCollection
object.- Returns:
- a
Point
object.
-
getOriginRelativeToAbs
getOriginRelativeToAbs.
- Parameters:
ancestor
- aRCollection
object.- Returns:
- a
Point
object.
-
getModelNode
ModelNode getModelNode()getModelNode.
- Specified by:
getModelNode
in interfaceRenderable
- Returns:
- a
ModelNode
object.
-
getOriginalOrCurrentParent
RCollection getOriginalOrCurrentParent()getOriginalOrCurrentParent.
- Returns:
- a
RCollection
object.
-
getOriginalParent
RCollection getOriginalParent()getOriginalParent.
- Returns:
- a
RCollection
object.
-
getParent
RCollection getParent()getParent.
- Returns:
- a
RCollection
object.
-
getOrdinal
int getOrdinal()getOrdinal.
- Returns:
- a
Integer
object.
-
getHeight
int getHeight()getHeight.
- Returns:
- a
Integer
object.
-
getWidth
int getWidth()getWidth.
- Returns:
- a
Integer
object.
-
getVisualHeight
int getVisualHeight()getVisualHeight.
- Returns:
- a
Integer
object.
-
getVisualWidth
int getVisualWidth()getVisualWidth.
- Returns:
- a
Integer
object.
-
getX
int getX()getX.
- Returns:
- a
Integer
object.
-
getY
int getY()getY.
- Returns:
- a
Integer
object.
-
getZIndex
int getZIndex()getZIndex.
- Returns:
- a
Integer
object.
-
isContainedByNode
boolean isContainedByNode()isContainedByNode.
- Returns:
- a boolean.
-
onDoubleClick
onDoubleClick.
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMouseClick
onMouseClick.
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMouseDisarmed
onMouseDisarmed.
- Parameters:
event
- aMouseEvent
object.- Returns:
- a boolean.
-
onMouseMoved
onMouseMoved.
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.triggerEvent
- a boolean.limit
- aModelNode
object.
-
onMousePressed
onMousePressed.
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMouseReleased
onMouseReleased.
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onRightClick
onRightClick.
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMouseScroll
void onMouseScroll() -
paintSelection
boolean paintSelection(Graphics g, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) paintSelection.
- Parameters:
g
- aGraphics
object.inSelection
- a boolean.startPoint
- aRenderableSpot
object.endPoint
- aRenderableSpot
object.- Returns:
- a boolean.
-
extractSelectionText
boolean extractSelectionText(StringBuilder buffer, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) extractSelectionText.
- Parameters:
buffer
- aStringBuilder
object.inSelection
- a boolean.startPoint
- aRenderableSpot
object.endPoint
- aRenderableSpot
object.- Returns:
- a boolean.
-
invalidateLayoutUpTree
void invalidateLayoutUpTree()invalidateLayoutUpTree.
-
onMouseOut
onMouseOut.
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.limit
- aModelNode
object.
-
paintTranslated
paintTranslated.
- Parameters:
g
- aGraphics
object.
-
relayout
void relayout()relayout.
-
repaint
void repaint()repaint.
-
isDelegated
boolean isDelegated()isDelegated.
- Returns:
- a boolean.
-
repaint
void repaint(int x, int y, int width, int height) repaint.
-
setBounds
void setBounds(int x, int y, int with, int height) setBounds.
-
setHeight
void setHeight(int height) setHeight.
- Parameters:
height
- aInteger
object.
-
setOrdinal
void setOrdinal(int ordinal) setOrdinal.
- Parameters:
ordinal
- aInteger
object.
-
setOrigin
void setOrigin(int x, int y) setOrigin.
-
setOriginalParent
setOriginalParent.
- Parameters:
origParent
- aRCollection
object.
-
setParent
setParent.
- Parameters:
parent
- aRCollection
object.
-
setWidth
void setWidth(int width) setWidth.
- Parameters:
width
- aInteger
object.
-
setX
void setX(int x) setX.
- Parameters:
x
- aInteger
object.
-
setY
void setY(int y) setY.
- Parameters:
y
- aInteger
object.
-
setDelegator
setParent.
- Parameters:
pDelegator
- aBoundableRenderable
object.
-
getRectangle
RRectangle getRectangle()
-