Class TranslatedRenderable
- All Implemented Interfaces:
BoundableRenderable
,RCollection
,Renderable
TranslatedRenderable class.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final RenderableContainer
protected boolean
protected final ModelNode
protected RCollection
protected RCollection
protected static final Color
Constant SELECTION_COLORprotected static final Color
Constant SELECTION_XORFields inherited from interface org.loboevolution.html.renderer.Renderable
EMPTY_ARRAY
-
Constructor Summary
ConstructorDescriptionTranslatedRenderable
(BoundableRenderable translatedChild) Constructor for TranslatedRenderable. -
Method Summary
Modifier and TypeMethodDescriptionvoid
blur()
blur.boolean
contains
(int x, int y) contains.boolean
extractSelectionText
(StringBuilder buffer, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) extractSelectionText.void
focus()
focus.getBlockBackgroundColor.getBounds.getChild()
getChild.getClipBounds.getClipBoundsWithoutInsets.getGUIPoint
(int clientX, int clientY) getGUIPoint.int
getHeight.getLowestRenderableSpot
(int x, int y) getLowestRenderableSpot.getModelNode.getOrigin.getOriginalOrCurrentParent.getOriginalParent.getOriginRelativeTo
(RCollection ancestor) getOriginRelativeTo.getOriginRelativeToAbs
(RCollection ancestor) getOriginRelativeToAbs.getOriginRelativeToNoScroll
(RCollection ancestor) getOriginRelativeToNoScroll.getParent.getRenderable
(int x, int y) getRenderable.getRenderablePoint
(int guiX, int guiY) getRenderablePoint.getRenderables.getSize()
getSize.getVisualBounds.int
getVisualHeight.int
getVisualWidth.int
getWidth()
getWidth.int
getX()
getX.int
getY()
getY.int
getZIndex.void
invalidateLayoutDeep.protected void
invalidateLayoutLocal.final void
invalidateLayoutUpTree.boolean
isContainedByNode.boolean
isDelegated.boolean
isFixed()
isFixed.boolean
isValid()
isValid.void
markLayoutValid.boolean
onDoubleClick
(MouseEvent event, int x, int y) onDoubleClick.boolean
onMiddleClick
(MouseEvent event, int x, int y) onMiddleClick.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.void
paint.boolean
paintSelection
(Graphics g, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) paintSelection.final void
paintTranslated.void
relayout()
relayout.void
relayoutIfValid.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
setHeight
(int height) setHeight.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.void
updateWidgetBounds
(int guiX, int guiY) updateWidgetBounds.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
getGUIPoint, getOrdinal, getParent, getRectangle, getRenderablePoint, invalidateLayoutUpTree, isDelegated, onMouseScroll, paintTranslated, setDelegator, setOrdinal, setParent
Methods inherited from interface org.loboevolution.html.renderer.Renderable
findHtmlRenderable
-
Field Details
-
SELECTION_COLOR
Constant SELECTION_COLOR -
SELECTION_XOR
Constant SELECTION_XOR -
container
-
layoutUpTreeCanBeInvalidated
protected boolean layoutUpTreeCanBeInvalidated -
modelNode
-
originalParent
-
parent
-
-
Constructor Details
-
TranslatedRenderable
Constructor for TranslatedRenderable.
- Parameters:
translatedChild
- aBoundableRenderable
object.
-
-
Method Details
-
paint
paint.
- Specified by:
paint
in interfaceRenderable
- Parameters:
g
- aGraphics
object.
-
isFixed
public boolean isFixed()isFixed.
- Specified by:
isFixed
in interfaceRenderable
- Returns:
- a boolean.
-
getModelNode
getModelNode.
- Specified by:
getModelNode
in interfaceBoundableRenderable
- Specified by:
getModelNode
in interfaceRenderable
- Returns:
- a
ModelNode
object.
-
getBounds
getBounds.
- Specified by:
getBounds
in interfaceBoundableRenderable
- Returns:
- a
Rectangle
object.
-
getVisualBounds
getVisualBounds.
- Specified by:
getVisualBounds
in interfaceBoundableRenderable
- Returns:
- a
Rectangle
object.
-
contains
public boolean contains(int x, int y) contains.
- Specified by:
contains
in interfaceBoundableRenderable
- Parameters:
x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
getSize
getSize.
- Specified by:
getSize
in interfaceBoundableRenderable
- Returns:
- a
Dimension
object.
-
getOrigin
getOrigin.
- Specified by:
getOrigin
in interfaceBoundableRenderable
- Returns:
- a
Point
object.
-
getOriginRelativeTo
getOriginRelativeTo.
- Specified by:
getOriginRelativeTo
in interfaceBoundableRenderable
- Parameters:
ancestor
- aRCollection
object.- Returns:
- a
Point
object.
-
getOriginRelativeToNoScroll
getOriginRelativeToNoScroll.
- Specified by:
getOriginRelativeToNoScroll
in interfaceBoundableRenderable
- Parameters:
ancestor
- aRCollection
object.- Returns:
- a
Point
object.
-
setOriginalParent
setOriginalParent.
- Specified by:
setOriginalParent
in interfaceBoundableRenderable
- Parameters:
origParent
- aRCollection
object.
-
getOriginalParent
getOriginalParent.
- Specified by:
getOriginalParent
in interfaceBoundableRenderable
- Returns:
- a
RCollection
object.
-
getOriginalOrCurrentParent
getOriginalOrCurrentParent.
- Specified by:
getOriginalOrCurrentParent
in interfaceBoundableRenderable
- Returns:
- a
RCollection
object.
-
setBounds
public void setBounds(int x, int y, int with, int height) setBounds.
- Specified by:
setBounds
in interfaceBoundableRenderable
- Overrides:
setBounds
in classRRectangle
- Parameters:
x
- aInteger
object.y
- aInteger
object.with
- aInteger
object.height
- aInteger
object.
-
setOrigin
public void setOrigin(int x, int y) setOrigin.
- Specified by:
setOrigin
in interfaceBoundableRenderable
- Overrides:
setOrigin
in classRRectangle
- Parameters:
x
- aInteger
object.y
- aInteger
object.
-
setX
public void setX(int x) setX.
- Specified by:
setX
in interfaceBoundableRenderable
- Parameters:
x
- aInteger
object.
-
setY
public void setY(int y) setY.
- Specified by:
setY
in interfaceBoundableRenderable
- Parameters:
y
- aInteger
object.
-
getX
public int getX()getX.
- Specified by:
getX
in interfaceBoundableRenderable
- Returns:
- a
Integer
object.
-
getY
public int getY()getY.
- Specified by:
getY
in interfaceBoundableRenderable
- Returns:
- a
Integer
object.
-
getHeight
public int getHeight()getHeight.
- Specified by:
getHeight
in interfaceBoundableRenderable
- Returns:
- a
Integer
object.
-
getWidth
public int getWidth()getWidth.
- Specified by:
getWidth
in interfaceBoundableRenderable
- Returns:
- a
Integer
object.
-
getVisualHeight
public int getVisualHeight()getVisualHeight.
- Specified by:
getVisualHeight
in interfaceBoundableRenderable
- Returns:
- a
Integer
object.
-
getVisualWidth
public int getVisualWidth()getVisualWidth.
- Specified by:
getVisualWidth
in interfaceBoundableRenderable
- Returns:
- a
Integer
object.
-
setHeight
public void setHeight(int height) setHeight.
- Specified by:
setHeight
in interfaceBoundableRenderable
- Parameters:
height
- aInteger
object.
-
setWidth
public void setWidth(int width) setWidth.
- Specified by:
setWidth
in interfaceBoundableRenderable
- Parameters:
width
- aInteger
object.
-
getLowestRenderableSpot
getLowestRenderableSpot.
- Specified by:
getLowestRenderableSpot
in interfaceBoundableRenderable
- Parameters:
x
- aInteger
object.y
- aInteger
object.- Returns:
- a
RenderableSpot
object.
-
repaint
public void repaint()repaint.
- Specified by:
repaint
in interfaceBoundableRenderable
-
onMousePressed
onMousePressed.
- Specified by:
onMousePressed
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMouseReleased
onMouseReleased.
- Specified by:
onMouseReleased
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMouseDisarmed
onMouseDisarmed.
- Specified by:
onMouseDisarmed
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.- Returns:
- a boolean.
-
onMouseClick
onMouseClick.
- Specified by:
onMouseClick
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMiddleClick
onMiddleClick.
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onDoubleClick
onDoubleClick.
- Specified by:
onDoubleClick
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onRightClick
onRightClick.
- Specified by:
onRightClick
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.- Returns:
- a boolean.
-
onMouseMoved
onMouseMoved.
- Specified by:
onMouseMoved
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.triggerEvent
- a boolean.limit
- aModelNode
object.
-
onMouseOut
onMouseOut.
- Specified by:
onMouseOut
in interfaceBoundableRenderable
- Parameters:
event
- aMouseEvent
object.x
- aInteger
object.y
- aInteger
object.limit
- aModelNode
object.
-
isContainedByNode
public boolean isContainedByNode()isContainedByNode.
- Specified by:
isContainedByNode
in interfaceBoundableRenderable
- Returns:
- a boolean.
-
paintSelection
public boolean paintSelection(Graphics g, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) paintSelection.
- Specified by:
paintSelection
in interfaceBoundableRenderable
- Parameters:
g
- aGraphics
object.inSelection
- a boolean.startPoint
- aRenderableSpot
object.endPoint
- aRenderableSpot
object.- Returns:
- a boolean.
-
extractSelectionText
public boolean extractSelectionText(StringBuilder buffer, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint) extractSelectionText.
- Specified by:
extractSelectionText
in interfaceBoundableRenderable
- Parameters:
buffer
- aStringBuilder
object.inSelection
- a boolean.startPoint
- aRenderableSpot
object.endPoint
- aRenderableSpot
object.- Returns:
- a boolean.
-
repaint
public void repaint(int x, int y, int width, int height) repaint.
-
relayout
public void relayout()relayout.
- Specified by:
relayout
in interfaceBoundableRenderable
-
getZIndex
public int getZIndex()getZIndex.
- Specified by:
getZIndex
in interfaceBoundableRenderable
- Returns:
- a
Integer
object.
-
invalidateLayoutLocal
protected void invalidateLayoutLocal()invalidateLayoutLocal.
-
getChild
getChild.
- Returns:
- a
Renderable
object.
-
updateWidgetBounds
public void updateWidgetBounds(int guiX, int guiY) updateWidgetBounds.
- Specified by:
updateWidgetBounds
in interfaceRCollection
- Parameters:
guiX
- aInteger
object.guiY
- aInteger
object.
-
getRenderables
getRenderables.
- Specified by:
getRenderables
in interfaceRCollection
- Returns:
- a
List
object.
-
invalidateLayoutDeep
public void invalidateLayoutDeep()invalidateLayoutDeep.
- Specified by:
invalidateLayoutDeep
in interfaceRCollection
-
focus
public void focus()focus.
- Specified by:
focus
in interfaceRCollection
-
blur
public void blur()blur.
- Specified by:
blur
in interfaceRCollection
-
getRenderable
getRenderable.
- Specified by:
getRenderable
in interfaceRCollection
- Parameters:
x
- aInteger
object.y
- aInteger
object.- Returns:
- a
BoundableRenderable
object.
-
getClipBounds
getClipBounds.
- Specified by:
getClipBounds
in interfaceRCollection
- Returns:
- a
Rectangle
object.
-
getClipBoundsWithoutInsets
getClipBoundsWithoutInsets.
- Specified by:
getClipBoundsWithoutInsets
in interfaceRCollection
- Returns:
- a
Rectangle
object.
-
getOriginRelativeToAbs
getOriginRelativeToAbs.
- Specified by:
getOriginRelativeToAbs
in interfaceBoundableRenderable
- Parameters:
ancestor
- aRCollection
object.- Returns:
- a
Point
object.
-
getBlockBackgroundColor
getBlockBackgroundColor.
- Returns:
- a
Color
object.
-
getGUIPoint
getGUIPoint.
- Specified by:
getGUIPoint
in interfaceBoundableRenderable
- Parameters:
clientX
- aInteger
object.clientY
- aInteger
object.- Returns:
- a
Point
object.
-
getParent
getParent.
- Specified by:
getParent
in interfaceBoundableRenderable
- Returns:
- a
RCollection
object.
-
getRenderablePoint
getRenderablePoint.
- Specified by:
getRenderablePoint
in interfaceBoundableRenderable
- Parameters:
guiX
- aInteger
object.guiY
- aInteger
object.- Returns:
- a
Point
object.
-
invalidateLayoutUpTree
public final void invalidateLayoutUpTree()invalidateLayoutUpTree.
Invalidates this Renderable and its parent (i.e. all ancestors).- Specified by:
invalidateLayoutUpTree
in interfaceBoundableRenderable
-
isValid
public boolean isValid()isValid.
- Returns:
- a boolean.
-
markLayoutValid
public void markLayoutValid()markLayoutValid.
-
onMouseScroll
public void onMouseScroll()- Specified by:
onMouseScroll
in interfaceBoundableRenderable
-
paintTranslated
paintTranslated.
- Specified by:
paintTranslated
in interfaceBoundableRenderable
- Parameters:
g
- aGraphics
object.
-
relayoutIfValid
public void relayoutIfValid()relayoutIfValid.
-
setParent
setParent.
- Specified by:
setParent
in interfaceBoundableRenderable
- Parameters:
parent
- aRCollection
object.
-
isDelegated
public boolean isDelegated()Description copied from interface:BoundableRenderable
isDelegated.
- Specified by:
isDelegated
in interfaceBoundableRenderable
- Returns:
- a boolean.
-
getRectangle
- Specified by:
getRectangle
in interfaceBoundableRenderable
-