|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvNamedProperty
ilog.views.maps.label.IlvMapLabelerProperty
public class IlvMapLabelerProperty
IlvMapLabelerProperty represents a named property that holds
a IlvMapLabeler.
The following code example shows how a labeler can be retrieved from a manager:
IlvManager manager = ...;
IlvMapLabeler model =
IlvMapLabelerProperty.GetMapLabeler(manager);
Note: if no labeler has been attached previous to the
GetMapLabeler method being called, a new instance is created
and attached.
| Field Summary | |
|---|---|
static String |
NAME
The name of the property. |
| Constructor Summary | |
|---|---|
IlvMapLabelerProperty(IlvInputStream stream)
Reads an IlvMapLabelerProperty from an
IlvInputStream. |
|
IlvMapLabelerProperty(IlvMapLabeler labeler)
Creates an IlvMapLabelerProperty instance from an
IlvMapLabeler object. |
|
IlvMapLabelerProperty(IlvMapLabelerProperty source)
Creates an IlvMapLabelerProperty instance by copying
an existing one. |
|
| Method Summary | |
|---|---|
IlvNamedProperty |
copy()
Returns a copy of this IlvMapLabelerProperty instance. |
IlvMapLabeler |
getMapLabeler()
Retrieves the value of this property. |
static IlvMapLabeler |
GetMapLabeler(IlvManager manager)
Retrieves the value of the IlvMapLayerTreeProperty attached
to an IlvManager instance. |
boolean |
isPersistent()
Tests if the property may be saved to an IVL file. |
void |
write(IlvOutputStream stream)
Writes this IlvMapLabelerProperty instance to an output
stream. |
| Methods inherited from class ilog.views.IlvNamedProperty |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
| Constructor Detail |
|---|
public IlvMapLabelerProperty(IlvMapLabeler labeler)
IlvMapLabelerProperty instance from an
IlvMapLabeler object.
labeler - The value of this property.public IlvMapLabelerProperty(IlvMapLabelerProperty source)
IlvMapLabelerProperty instance by copying
an existing one.
source - The property to copy.
public IlvMapLabelerProperty(IlvInputStream stream)
throws IlvReadFileException
IlvMapLabelerProperty from an
IlvInputStream.
stream - The stream to read from.
IlvReadFileException - if there is a problem reading
stream.| Method Detail |
|---|
public IlvNamedProperty copy()
IlvMapLabelerProperty instance.
copy in class IlvNamedPropertyIlvMapLabelerProperty instance.IlvNamedProperty.copy()
public void write(IlvOutputStream stream)
throws IOException
IlvMapLabelerProperty instance to an output
stream.
write in interface IlvPersistentObjectwrite in class IlvNamedPropertystream - The stream to write to.
IOException - if there is a problem writing to stream.IlvNamedProperty.write(ilog.views.io.IlvOutputStream)public IlvMapLabeler getMapLabeler()
IlvMapLabeler value of this property.public boolean isPersistent()
isPersistent in class IlvNamedPropertytrue, the property is saved.IlvNamedProperty.isPersistent()public static IlvMapLabeler GetMapLabeler(IlvManager manager)
IlvMapLayerTreeProperty attached
to an IlvManager instance.
manager - The IlvManager to retrieve the property from.
IlvMapLayerTreeModel. If no labeler has
been attached, a new IlvMapDefaultLabeler instance is created
and attached to manager.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||