Package org.esa.snap.core.datamodel
Class ImageLegend
- java.lang.Object
-
- org.esa.snap.core.datamodel.ImageLegend
-
-
Field Summary
Fields Modifier and Type Field Description static intHORIZONTALstatic intVERTICAL
-
Constructor Summary
Constructors Constructor Description ImageLegend(ImageInfo imageInfo, RasterDataNode raster)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferedImagecreateImage()intgetBackgroundAlpha()ColorgetBackgroundColor()floatgetBackgroundTransparency()FontgetFont()ColorgetForegroundColor()StringgetHeaderText()ImageInfogetImageInfo()intgetOrientation()RasterDataNodegetRaster()booleanisAlphaUsed()booleanisAntialiasing()booleanisBackgroundTransparencyEnabled()booleanisUsingHeader()voidsetAntialiasing(boolean antialiasing)voidsetBackgroundColor(Color backgroundColor)voidsetBackgroundTransparency(float backgroundTransparency)voidsetBackgroundTransparencyEnabled(boolean backgroundTransparencyEnabled)voidsetFont(Font font)voidsetForegroundColor(Color foregroundColor)voidsetHeaderText(String headerText)voidsetOrientation(int orientation)voidsetUsingHeader(boolean usingHeader)
-
-
-
Field Detail
-
HORIZONTAL
public static final int HORIZONTAL
- See Also:
- Constant Field Values
-
VERTICAL
public static final int VERTICAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImageLegend
public ImageLegend(ImageInfo imageInfo, RasterDataNode raster)
-
-
Method Detail
-
getImageInfo
public ImageInfo getImageInfo()
-
getRaster
public RasterDataNode getRaster()
-
isUsingHeader
public boolean isUsingHeader()
-
setUsingHeader
public void setUsingHeader(boolean usingHeader)
-
getHeaderText
public String getHeaderText()
-
setHeaderText
public void setHeaderText(String headerText)
-
getOrientation
public int getOrientation()
-
setOrientation
public void setOrientation(int orientation)
-
getFont
public Font getFont()
-
setFont
public void setFont(Font font)
-
getBackgroundColor
public Color getBackgroundColor()
-
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
-
getForegroundColor
public Color getForegroundColor()
-
setForegroundColor
public void setForegroundColor(Color foregroundColor)
-
isAntialiasing
public boolean isAntialiasing()
-
setAntialiasing
public void setAntialiasing(boolean antialiasing)
-
isBackgroundTransparencyEnabled
public boolean isBackgroundTransparencyEnabled()
-
setBackgroundTransparencyEnabled
public void setBackgroundTransparencyEnabled(boolean backgroundTransparencyEnabled)
-
getBackgroundTransparency
public float getBackgroundTransparency()
-
setBackgroundTransparency
public void setBackgroundTransparency(float backgroundTransparency)
-
isAlphaUsed
public boolean isAlphaUsed()
-
getBackgroundAlpha
public int getBackgroundAlpha()
-
createImage
public BufferedImage createImage()
-
-