Interface BoundableRenderable

All Superinterfaces:
Renderable
All Known Subinterfaces:
RCollection, RElement
All Known Implementing Classes:
BaseElementRenderable, RBlock, RBlockViewport, RImgControl, RInlineBlock, RTable, RTableCell, RUIControl, TranslatedRenderable

public interface BoundableRenderable extends Renderable
A renderer node with well-defined bounds. Most renderer nodes implement this interface.
  • 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.

      Parameters:
      x - a Integer object.
      y - a Integer object.
      Returns:
      a boolean.
    • getLowestRenderableSpot

      RenderableSpot getLowestRenderableSpot(int x, int y)

      getLowestRenderableSpot.

      Parameters:
      x - a Integer object.
      y - a Integer object.
      Returns:
      a RenderableSpot object.
    • getGUIPoint

      Point getGUIPoint(int clientX, int clientY)

      getGUIPoint.

      Parameters:
      clientX - a Integer object.
      clientY - a Integer object.
      Returns:
      a Point object.
    • getOrigin

      Point getOrigin()

      getOrigin.

      Returns:
      a Point object.
    • getRenderablePoint

      Point getRenderablePoint(int guiX, int guiY)

      getRenderablePoint.

      Parameters:
      guiX - a Integer object.
      guiY - a Integer object.
      Returns:
      a Point object.
    • getOriginRelativeTo

      Point getOriginRelativeTo(RCollection ancestor)

      getOriginRelativeTo.

      Parameters:
      ancestor - a RCollection object.
      Returns:
      a Point object.
    • getOriginRelativeToNoScroll

      Point getOriginRelativeToNoScroll(RCollection ancestor)

      getOriginRelativeToNoScroll.

      Parameters:
      ancestor - a RCollection object.
      Returns:
      a Point object.
    • getOriginRelativeToAbs

      Point getOriginRelativeToAbs(RCollection ancestor)

      getOriginRelativeToAbs.

      Parameters:
      ancestor - a RCollection object.
      Returns:
      a Point object.
    • getModelNode

      ModelNode getModelNode()

      getModelNode.

      Specified by:
      getModelNode in interface Renderable
      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

      boolean onDoubleClick(MouseEvent event, int x, int y)

      onDoubleClick.

      Parameters:
      event - a MouseEvent object.
      x - a Integer object.
      y - a Integer object.
      Returns:
      a boolean.
    • onMouseClick

      boolean onMouseClick(MouseEvent event, int x, int y)

      onMouseClick.

      Parameters:
      event - a MouseEvent object.
      x - a Integer object.
      y - a Integer object.
      Returns:
      a boolean.
    • onMouseDisarmed

      boolean onMouseDisarmed(MouseEvent event)

      onMouseDisarmed.

      Parameters:
      event - a MouseEvent object.
      Returns:
      a boolean.
    • onMouseMoved

      void onMouseMoved(MouseEvent event, int x, int y, boolean triggerEvent, ModelNode limit)

      onMouseMoved.

      Parameters:
      event - a MouseEvent object.
      x - a Integer object.
      y - a Integer object.
      triggerEvent - a boolean.
      limit - a ModelNode object.
    • onMousePressed

      boolean onMousePressed(MouseEvent event, int x, int y)

      onMousePressed.

      Parameters:
      event - a MouseEvent object.
      x - a Integer object.
      y - a Integer object.
      Returns:
      a boolean.
    • onMouseReleased

      boolean onMouseReleased(MouseEvent event, int x, int y)

      onMouseReleased.

      Parameters:
      event - a MouseEvent object.
      x - a Integer object.
      y - a Integer object.
      Returns:
      a boolean.
    • onRightClick

      boolean onRightClick(MouseEvent event, int x, int y)

      onRightClick.

      Parameters:
      event - a MouseEvent object.
      x - a Integer object.
      y - a Integer object.
      Returns:
      a boolean.
    • onMouseScroll

      void onMouseScroll()
    • paintSelection

      boolean paintSelection(Graphics g, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint)

      paintSelection.

      Parameters:
      g - a Graphics object.
      inSelection - a boolean.
      startPoint - a RenderableSpot object.
      endPoint - a RenderableSpot object.
      Returns:
      a boolean.
    • extractSelectionText

      boolean extractSelectionText(StringBuilder buffer, boolean inSelection, RenderableSpot startPoint, RenderableSpot endPoint)

      extractSelectionText.

      Parameters:
      buffer - a StringBuilder object.
      inSelection - a boolean.
      startPoint - a RenderableSpot object.
      endPoint - a RenderableSpot object.
      Returns:
      a boolean.
    • invalidateLayoutUpTree

      void invalidateLayoutUpTree()

      invalidateLayoutUpTree.

    • onMouseOut

      void onMouseOut(MouseEvent event, int x, int y, ModelNode limit)

      onMouseOut.

      Parameters:
      event - a MouseEvent object.
      x - a Integer object.
      y - a Integer object.
      limit - a ModelNode object.
    • paintTranslated

      void paintTranslated(Graphics g)

      paintTranslated.

      Parameters:
      g - a Graphics 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.

      Parameters:
      x - a Integer object.
      y - a Integer object.
      width - a Integer object.
      height - a Integer object.
    • setBounds

      void setBounds(int x, int y, int with, int height)

      setBounds.

      Parameters:
      x - a Integer object.
      y - a Integer object.
      with - a Integer object.
      height - a Integer object.
    • setHeight

      void setHeight(int height)

      setHeight.

      Parameters:
      height - a Integer object.
    • setOrdinal

      void setOrdinal(int ordinal)

      setOrdinal.

      Parameters:
      ordinal - a Integer object.
    • setOrigin

      void setOrigin(int x, int y)

      setOrigin.

      Parameters:
      x - a Integer object.
      y - a Integer object.
    • setOriginalParent

      void setOriginalParent(RCollection origParent)

      setOriginalParent.

      Parameters:
      origParent - a RCollection object.
    • setParent

      void setParent(RCollection parent)

      setParent.

      Parameters:
      parent - a RCollection object.
    • setWidth

      void setWidth(int width)

      setWidth.

      Parameters:
      width - a Integer object.
    • setX

      void setX(int x)

      setX.

      Parameters:
      x - a Integer object.
    • setY

      void setY(int y)

      setY.

      Parameters:
      y - a Integer object.
    • setDelegator

      void setDelegator(BoundableRenderable pDelegator)

      setParent.

      Parameters:
      pDelegator - a BoundableRenderable object.
    • getRectangle

      RRectangle getRectangle()