Class FeatureTileGraphics


  • public class FeatureTileGraphics
    extends Object
    Feature Tile Graphics for creating layered tiles to draw ordered features. Draw Order: polygons, lines, points, icons
    Since:
    3.2.0
    Author:
    osbornb
    • Constructor Detail

      • FeatureTileGraphics

        public FeatureTileGraphics​(int tileWidth,
                                   int tileHeight)
        Constructor
        Parameters:
        tileWidth - tile width
        tileHeight - tile height
    • Method Detail

      • getPolygonImage

        public BufferedImage getPolygonImage()
        Get the polygon image
        Returns:
        polygon image
      • getPolygonGraphics

        public Graphics2D getPolygonGraphics()
        Get the polygon graphics
        Returns:
        polygon graphics
      • getLineImage

        public BufferedImage getLineImage()
        Get the line image
        Returns:
        line image
      • getLineGraphics

        public Graphics2D getLineGraphics()
        Get the line graphics
        Returns:
        line graphics
      • getPointImage

        public BufferedImage getPointImage()
        Get the point image
        Returns:
        point image
      • getPointGraphics

        public Graphics2D getPointGraphics()
        Get the point graphics
        Returns:
        point graphics
      • getIconImage

        public BufferedImage getIconImage()
        Get the icon image
        Returns:
        icon image
      • getIconGraphics

        public Graphics2D getIconGraphics()
        Get the icon canvas
        Returns:
        icon canvas
      • createImage

        public BufferedImage createImage()
        Create the final image from the layers, resets the layers
        Returns:
        image
      • dispose

        public void dispose()
        Dispose of the layered graphics and images