Interface RenderingBo

    • Method Detail

      • setEngineData

        void setEngineData​(EngineData engineData)
      • setColor

        RenderingBo setColor​(RgbaColor color)
        Sets a color you want to use for rendering. It depends on the rendering bo how this information is treated.
      • getX

        int getX()
      • getY

        int getY()
      • getLocalX

        int getLocalX()
      • getLocalY

        int getLocalY()
      • setLayer

        RenderingBo setLayer​(RenderingBoLayer layer)
        Sets the layer to render this bo on. Business objects are rendered layered on top of each other in the natural order of RenderingBoLayer enum fields. Objects on the same layer are rendered in the order of being added to List renderingBo.
      • withPositionAbsoluteAnchorTopLeft

        RenderingBo withPositionAbsoluteAnchorTopLeft​(int x,
                                                      int y)
        Positions this bo with an absolute position on the viewport. x0 y0 coordinates are at the top left. Call RendererControl#getEffectiveViewportDimension to get the absolute dimension of the viewport.
      • withPositionAbsoluteAnchorTopLeft

        RenderingBo withPositionAbsoluteAnchorTopLeft​(HasPosition2 position)
        Positions this bo with an absolute position on the viewport. x0 y0 coordinates are at the top left. Call RendererControl#getEffectiveViewportDimension to get the absolute dimension of the viewport.
      • withPositionAbsoluteAnchorTopRight

        RenderingBo withPositionAbsoluteAnchorTopRight​(int x,
                                                       int y)
        Positions this bo with an absolute position on the viewport. x0 y0 coordinates are at the top right. Call RendererControl#getEffectiveViewportDimension to get the absolute dimension of the viewport.
      • withPositionAbsoluteAnchorTopRight

        RenderingBo withPositionAbsoluteAnchorTopRight​(HasPosition2 position)
        Positions this bo with an absolute position on the viewport. x0 y0 coordinates are at the top right. Call RendererControl#getEffectiveViewportDimension to get the absolute dimension of the viewport.
      • withPositionAbsoluteAnchorBottomLeft

        RenderingBo withPositionAbsoluteAnchorBottomLeft​(int x,
                                                         int y)
        Positions this bo with an absolute position on the viewport. x0 y0 coordinates are at the bottom left. Call RendererControl#getEffectiveViewportDimension to get the absolute dimension of the viewport.
      • withPositionAbsoluteAnchorBottomLeft

        RenderingBo withPositionAbsoluteAnchorBottomLeft​(HasPosition2 position)
        Positions this bo with an absolute position on the viewport. x0 y0 coordinates are at the bottom left. Call RendererControl#getEffectiveViewportDimension to get the absolute dimension of the viewport.
      • withPositionAbsoluteAnchorBottomRight

        RenderingBo withPositionAbsoluteAnchorBottomRight​(int x,
                                                          int y)
        Positions this bo with an absolute position on the viewport. x0 y0 coordinates are at the bottom right. Call RendererControl#getEffectiveViewportDimension to get the absolute dimension of the viewport.
      • withPositionAbsoluteAnchorBottomRight

        RenderingBo withPositionAbsoluteAnchorBottomRight​(HasPosition2 position)
        Positions this bo with an absolute position on the viewport. x0 y0 coordinates are at the bottom right. Call RendererControl#getEffectiveViewportDimension to get the absolute dimension of the viewport.
      • withPositionPercentual

        RenderingBo withPositionPercentual​(double x,
                                           double y)
        Positions this bo with a percentual position on the viewport.
        Parameters:
        x - Range 0.0 (left) to 1.0 (right)
        y - Range 0.0 (top) to 1.0 (bottom)
      • withPositionIncrementalAbsolute

        RenderingBo withPositionIncrementalAbsolute​(int x,
                                                    int y)
        Positions this bo with an incremental position relative to the position the bo is already at. Call RendererControl#getEffectiveViewportDimension to get the absolute dimension of the viewport.
      • withPositionIncrementalAbsolute

        RenderingBo withPositionIncrementalAbsolute​(HasPosition2 position)
        Positions this bo with an incremental position relative to the position the bo is already at. Call RendererControl#getEffectiveViewportDimension to get the absolute dimension of the viewport.
      • withPositionIncrementalPercentual

        RenderingBo withPositionIncrementalPercentual​(double x,
                                                      double y)
        Positions this bo with a percenutal position relative to the position the bo is already at.
      • withPositionRelative

        RenderingBo withPositionRelative​(int x,
                                         int y)
        Positions this bo relative to it's parent. This can be for example the game world for positioning tiles or a composite entity. Unit is usually not pixels but the position in the tile raster.
      • withPositionRelative

        RenderingBo withPositionRelative​(HasPosition2 position)
        Positions this bo relative to it's parent. This can be for example game world for positioning tiles or a composite entity. Unit is usually not pixels but the position in the tile raster.