Class TileRable8Bit

    • Constructor Detail

      • TileRable8Bit

        public TileRable8Bit​(Filter source,
                             java.awt.geom.Rectangle2D tiledRegion,
                             java.awt.geom.Rectangle2D tileRegion,
                             boolean overflow)
        Default constructor
    • Method Detail

      • getTileRegion

        public java.awt.geom.Rectangle2D getTileRegion()
        Returns the tile region
        Specified by:
        getTileRegion in interface TileRable
      • setTileRegion

        public void setTileRegion​(java.awt.geom.Rectangle2D tileRegion)
        Sets the tile region
        Specified by:
        setTileRegion in interface TileRable
      • getTiledRegion

        public java.awt.geom.Rectangle2D getTiledRegion()
        Returns the tiled region
        Specified by:
        getTiledRegion in interface TileRable
      • setTiledRegion

        public void setTiledRegion​(java.awt.geom.Rectangle2D tiledRegion)
        Sets the tiled region
        Specified by:
        setTiledRegion in interface TileRable
      • isOverflow

        public boolean isOverflow()
        Returns the overflow strategy
        Specified by:
        isOverflow in interface TileRable
      • setOverflow

        public void setOverflow​(boolean overflow)
        Sets the overflow strategy
        Specified by:
        setOverflow in interface TileRable
      • setSource

        public void setSource​(Filter src)
        Sets the filter source
        Specified by:
        setSource in interface TileRable
      • createRendering

        public java.awt.image.RenderedImage createRendering​(java.awt.image.renderable.RenderContext rc)
        Specified by:
        createRendering in interface java.awt.image.renderable.RenderableImage
      • getActualTileBounds

        public java.awt.geom.Rectangle2D getActualTileBounds​(java.awt.geom.Rectangle2D tiledRect)
      • createTile

        public java.awt.image.RenderedImage createTile​(java.awt.image.renderable.RenderContext rc)
        Computes the tile to use for the tiling operation. The tile has its origin in the upper left corner of the tiled region. That tile is separated into 4 areas: top-left, top-right, bottom-left and bottom-right. Each of these areas is mapped to some input area from the source. If the source is smaller than the tiled area, then a single rendering is requested from the source. If the source's width or height is bigger than that of the tiled area, then separate renderings are requested from the source.