|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.theme.IlvMapDynamicStyle
public class IlvMapDynamicStyle
A dynamic style is a record containing an IlvMapStyle
and a scale. This class is to be used with a IlvMapStyleController
that manages the selection of styles at the given scale.
| Constructor Summary | |
|---|---|
IlvMapDynamicStyle(double scale,
IlvMapStyle style,
String name)
Creates a new IlvMapStyleAtScale instance for a given scale. |
|
IlvMapDynamicStyle(IlvInputStream stream)
Reads this dynamic style from an IlvInputStream. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares the order of this object with the specified object. |
String |
getName()
Returns the name of the style. |
double |
getScale()
Returns the scale at which the theme will be applied. |
IlvMapStyle |
getStyle()
Returns the style for this theme. |
void |
setName(String name)
Sets the name of the style. |
void |
setScale(double scale)
Sets the scale at which the theme will be applied. |
void |
setStyle(IlvMapStyle style)
Sets the style for this theme. |
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMapDynamicStyle(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
stream - The stream to read from.
IlvReadFileException - if there is a problem reading from
stream.
public IlvMapDynamicStyle(double scale,
IlvMapStyle style,
String name)
IlvMapStyleAtScale instance for a given scale.
scale - The scale activating the style.style - The style to be set when the scale is reached.name - The name of the object.| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
write in interface IlvPersistentObjectstream - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.IlvPersistentObject.write(ilog.views.io.IlvOutputStream)public void setStyle(IlvMapStyle style)
style - The style for this theme.public IlvMapStyle getStyle()
public String getName()
public void setName(String name)
name - The name of the style.public double getScale()
public void setScale(double scale)
scale - The scale at which the theme will be applied.public int compareTo(Object o)
compareTo in interface Comparableo - The object to compare with this IlvMapDynamicStyle
instance.
0 is returned.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||