类 ImageLayer

  • 所有已实现的接口:
    java.lang.Cloneable
    直接已知子类:
    RasterLayer

    public class ImageLayer
    extends MapLayer
    作者:
    Yaqiang Wang
    • 字段详细资料

      • interp

        protected java.lang.Object interp
    • 构造器详细资料

      • ImageLayer

        public ImageLayer()
        Constructor
    • 方法详细资料

      • getImage

        public java.awt.image.BufferedImage getImage()
        Get image
        返回:
        The image
      • setImage

        public void setImage​(java.awt.image.BufferedImage image)
        Set image
        参数:
        image - The image
      • getWorldFileName

        public java.lang.String getWorldFileName()
        Get world file name of the layer
        返回:
        World file name
      • setWorldFileName

        public void setWorldFileName​(java.lang.String name)
        Set world file name
        参数:
        name - World file name
      • getWorldFilePara

        public WorldFilePara getWorldFilePara()
        Get world file parameters
        返回:
        World file parameters
      • setWorldFilePara

        public void setWorldFilePara​(WorldFilePara value)
        Set world file parameters
        参数:
        value - World file parameters
      • isUseTransColor

        public boolean isUseTransColor()
        Get if set transparency color
        返回:
        Boolean
      • setUseTransColor

        public void setUseTransColor​(boolean istrue)
        Set if using transparency color
        参数:
        istrue - Boolean
      • getTransparencyColor

        public java.awt.Color getTransparencyColor()
        Get transparency color
        返回:
        Transparency color
      • setTransparencyColor

        public void setTransparencyColor​(java.awt.Color color)
        Set transparency color
        参数:
        color - The color
      • getXUL

        public double getXUL()
        Get X upper-left
        返回:
        Upper-left x value
      • setXUL

        public void setXUL​(double value)
                    throws java.io.IOException
        Set upper-left x
        参数:
        value - The value
        抛出:
        java.io.IOException
      • getYUL

        public double getYUL()
        Get y upper-left
        返回:
        Upper-left y
      • setYUL

        public void setYUL​(double value)
                    throws java.io.IOException
        Set upper-left y
        参数:
        value - The value
        抛出:
        java.io.IOException
      • getXScale

        public double getXScale()
        Get x scale
        返回:
        The x scale
      • setXScale

        public void setXScale​(double value)
                       throws java.io.IOException
        Set x scale
        参数:
        value - The value
        抛出:
        java.io.IOException
      • getYScale

        public double getYScale()
        Get y scale
        返回:
        The y scale
      • setYScale

        public void setYScale​(double value)
                       throws java.io.IOException
        Set y scale
        参数:
        value - The y scale value
        抛出:
        java.io.IOException
      • getXRotate

        public double getXRotate()
        Get x rotate(shear)
        返回:
        X rotate
      • setXRotate

        public void setXRotate​(double value)
                        throws java.io.IOException
        Set x rotate(shear)
        参数:
        value - Value
        抛出:
        java.io.IOException
      • getYRotate

        public double getYRotate()
        Get y rotate(shear)
        返回:
        X rotate
      • setYRotate

        public void setYRotate​(double value)
                        throws java.io.IOException
        Set y rotate(shear)
        参数:
        value - Value
        抛出:
        java.io.IOException
      • getInterpolation

        public java.lang.Object getInterpolation()
        Get interpolation
        返回:
        Interpolation
      • getInterpolationStr

        public java.lang.String getInterpolationStr()
        Get interpolation string
        返回:
        Interpolation string
      • setInterpolation

        public void setInterpolation​(java.lang.Object value)
        Set interpolation object
        参数:
        value - Interpolation object
      • setInterpolation

        public void setInterpolation​(java.lang.String value)
        Set interpolation string
        参数:
        value - Interpolation string
      • readImageWorldFile

        public void readImageWorldFile​(java.lang.String aIFile)
                                throws java.io.FileNotFoundException,
                                       java.io.IOException
        Read image world file
        参数:
        aIFile - Image world file path
        抛出:
        java.io.FileNotFoundException
        java.io.IOException
      • writeImageWorldFile

        public void writeImageWorldFile​(java.lang.String aFile,
                                        WorldFilePara aWFP)
                                 throws java.io.IOException
        Write image world file
        参数:
        aFile - File path
        aWFP - WorldFilePara
        抛出:
        java.io.IOException
      • getColorsFromPaletteFile

        public java.util.List<java.awt.Color> getColorsFromPaletteFile​(java.lang.String pFile)
        Get colors from palette file
        参数:
        pFile - Palette file path
        返回:
        Colors
      • setPalette

        public void setPalette​(java.util.List<java.awt.Color> colors)
        Set palette
        参数:
        colors - Colors
      • setPalette

        public void setPalette​(java.lang.String aFile)
        Set color palette to a image from a palette file
        参数:
        aFile - File path