|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.graphic.style.IlvMapStyle
ilog.views.maps.raster.datasource.IlvRasterStyle
public class IlvRasterStyle
IlvRasterStyle represents a map style for raster data.
| Field Summary | |
|---|---|
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. |
| Fields inherited from class ilog.views.maps.graphic.style.IlvMapStyle |
|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BRIGHTNESS
public static final String COLORMODEL
public static final String CONTRAST
public static final String SATURATION
protected IlvRasterAbstractReader reader
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public IlvMapStyle copy()
copy in class IlvMapStyleIlvRasterStyle instance.
public void write(IlvOutputStream stream)
throws IOException
IlvMapStyle on a IlvOutputStream
write 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)
IlvMapStyle
styleChanged 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||