public class IlvRasterStyle extends IlvMapStyle implements StyleListener
IlvRasterStyle represents a map style for raster data.| Modifier and Type | Field and Description |
|---|---|
static String |
BRIGHTNESS
The Brightness attribute name.
|
static String |
COLORMODEL
The ColorModel attribute name.
|
static String |
CONTRAST
The Contrast attribute name.
|
protected IlvRasterAbstractReader |
reader
A reader that is able to recreate the images.
|
static String |
SATURATION
The Saturation attribute name.
|
ALPHA, ALWAYS_ON_TOP, ATTRIBUTE_INFO, CATEGORY, LABEL_ATTRIBUTE, LEGEND_GROUP, PARENT, THIN_CLIENT_BACKGROUND, VISIBLE_IN_3DVIEW, VISIBLE_IN_OVERVIEW, VISIBLE_IN_TREE, VISIBLE_IN_VIEW| Constructor and Description |
|---|
IlvRasterStyle()
The default constructor.
|
IlvRasterStyle(IlvInputStream stream)
Constructs a style from saved data.
|
IlvRasterStyle(IlvRasterAbstractReader reader)
Constructs a style for the specified reader.
|
IlvRasterStyle(IlvRasterStyle source)
The copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IlvMapStyle |
copy()
Returns a copy of this style.
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
Double |
getBrightness()
Returns the brightness to apply to the original images.
|
ColorModel |
getColorModel()
Returns the color model used by the images.
|
Double |
getContrast()
Returns the contrast to apply to the original images.
|
Double |
getSaturation()
Returns the saturation to apply to the original images.
|
int |
hashCode() |
void |
setBrightness(Double v)
Changes the color brightness.
|
void |
setColorModel(ColorModel v)
Changes the color model to use.
|
void |
setContrast(Double v)
Changes the color contrast.
|
void |
setSaturation(Double v)
Changes the color saturation.
|
void |
styleChanged(StyleEvent event)
Invoked when a change has occurred in the
IlvMapStyle |
void |
updateReader(IlvRasterProperties props)
Updates the color model to reflect the brightness, saturation and contrast
of the style.
|
void |
write(IlvOutputStream stream)
Write a
IlvMapStyle on a IlvOutputStream |
addAttributeListener, addChild, addStyleListener, addWeakStyleListener, getAlpha, getAttribute, getAttribute, getAttributeFilter, getAttributeInfo, getAttributeListeners, getCategory, getChildren, getDefaultValues, getGraphic, getLabelAttribute, getLegendGroup, getListeners, getParent, getStyleListeners, isAlwaysOnTop, isInherited, isThinClientBackground, isVisibleIn3DView, isVisibleInOverview, isVisibleInTree, isVisibleInView, objectEquals, removeAttributeListener, removeChild, removeStyleListener, setAlpha, setAlwaysOnTop, setAttribute, setAttributeFilter, setAttributeInfo, setCategory, setGraphic, setInherited, setLabelAttribute, setLegendGroup, setParent, setThinClientBackground, setVisibleIn3DView, setVisibleInOverview, setVisibleInTree, setVisibleInViewpublic static final String BRIGHTNESS
public static final String COLORMODEL
public static final String CONTRAST
public static final String SATURATION
protected IlvRasterAbstractReader reader
public IlvRasterStyle()
public IlvRasterStyle(IlvRasterStyle source)
source - The source style to copy.public IlvRasterStyle(IlvInputStream stream) throws IlvReadFileException
stream - The stream to read from.IlvReadFileException - if there is a problem reading from style.public IlvRasterStyle(IlvRasterAbstractReader reader)
reader - An image reader.public IlvMapStyle copy()
copy in class IlvMapStyleIlvRasterStyle instance.public void write(IlvOutputStream stream) throws IOException
IlvMapStyle on a IlvOutputStreamwrite in interface IlvPersistentObjectwrite in class IlvMapStylestream - The stream to write to.IOException - thrown when an exception occurs during
the write operation for this object.IlvMapStyle.write(ilog.views.io.IlvOutputStream)public int hashCode()
hashCode in class IlvMapStylepublic boolean equals(Object o)
equals in class IlvMapStyleIlvMapStyle.equals(java.lang.Object)public Double getBrightness()
public ColorModel getColorModel()
public Double getContrast()
public Double getSaturation()
public void setBrightness(Double v)
v - The brightness to apply to the original images. This value must be
in a range between 0 and 2.public void setContrast(Double v)
v - The contrast to apply to the original images. This value must be
in a range between 0 and 2.public void setColorModel(ColorModel v)
v - The new color model.public void setSaturation(Double v)
v - The saturation to apply to the original images. This value must be
in a range between 0 and 2.public void styleChanged(StyleEvent event)
IlvMapStylestyleChanged in interface StyleListenerevent - The event containing informations about the style change.StyleListener.styleChanged(ilog.views.maps.graphic.style.StyleEvent)public void updateReader(IlvRasterProperties props)
IlvRasterIcon when it needs to update the
image it contains.props - The raster properties used.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.