public class IlvTreeLayoutGrapherProperty extends IlvGraphLayoutGrapherProperty
IlvTreeLayoutGrapherProperty allows you to store
the global settings of an instance of IlvTreeLayout as a
named property in the grapher. This is used by IlvGrapherPropertyAdapter.saveParametersToNamedProperties(IlvGraphLayout,
boolean) which is an auxiliary to be used before IlvGrapher.write(IlvOutputStream) if you want to store layout
parameter settings in .ivl files.
IlvGrapherPropertyAdapter.saveParametersToNamedProperties(IlvGraphLayout, boolean),
IlvGrapherPropertyAdapter.loadParametersFromNamedProperties(IlvGraphLayout),
IlvGrapherPropertyAdapter.removeParametersFromNamedProperties(),
IlvGraphLayout.createLayoutGrapherProperty(String, boolean),
Serialized Form| Modifier | Constructor and Description |
|---|---|
|
IlvTreeLayoutGrapherProperty(IlvInputStream stream)
Creates a new
IlvTreeLayoutGrapherProperty from an
IlvInputStream. |
protected |
IlvTreeLayoutGrapherProperty(IlvInputStream stream,
boolean fromSubclass)
Creates a new
IlvTreeLayoutGrapherProperty from an
IlvInputStream. |
|
IlvTreeLayoutGrapherProperty(IlvTreeLayoutGrapherProperty source)
Creates a new
IlvTreeLayoutGrapherProperty by copying an
existing one. |
|
IlvTreeLayoutGrapherProperty(String name,
IlvTreeLayout layout,
boolean withDefaults)
Creates a new
IlvTreeLayoutGrapherProperty that stores
layout parameter settings of the layout. |
| Modifier and Type | Method and Description |
|---|---|
IlvNamedProperty |
copy()
Copies the named property.
|
void |
dispose(IlvGrapherPropertyAdapter adapter)
Disposes of the property and releases any resources that it is using.
|
boolean |
isPersistent()
Returns
true if the property must be saved to an
.ivl file. |
protected boolean |
readProperties(IlvInputStream stream)
Reads the properties from an
IlvInputStream. |
void |
transfer(IlvGraphLayout graphLayout)
Transfers the layout parameter settings stored in this named property
back to the input layout.
|
void |
write(IlvOutputStream stream)
Writes the property to the output stream.
|
dispose, getLayout, omitDefaultsgetNamepublic IlvTreeLayoutGrapherProperty(String name, IlvTreeLayout layout, boolean withDefaults)
IlvTreeLayoutGrapherProperty that stores
layout parameter settings of the layout.name - The name of the property.layout - The layout instance to be stored.withDefaults - If true, the layout property is always
persistent. If false, it is persistent only if
nondefault parameter settings exist (that is, if the the property
is saved to an .ivl file, the default parameter
settings are not saved).public IlvTreeLayoutGrapherProperty(IlvTreeLayoutGrapherProperty source)
IlvTreeLayoutGrapherProperty by copying an
existing one.source - The origin of the copy.public IlvTreeLayoutGrapherProperty(IlvInputStream stream) throws IOException, IlvReadFileException
IlvTreeLayoutGrapherProperty from an
IlvInputStream.stream - The input stream from which the property must be read.IlvReadFileException - if an error occurs while reading.IOExceptionprotected IlvTreeLayoutGrapherProperty(IlvInputStream stream, boolean fromSubclass) throws IOException, IlvReadFileException
IlvTreeLayoutGrapherProperty from an
IlvInputStream. This method is for internal purpose.stream - The input stream from which the property must be read.fromSubclass - Whether this constructor is called from a subclass.IlvReadFileException - if an error occurs while reading.IOExceptionprotected boolean readProperties(IlvInputStream stream) throws IOException, IlvReadFileException
IlvInputStream. This method
is for internal purpose.readProperties in class IlvGraphLayoutGrapherPropertystream - The input stream from which the property must be read.IlvReadFileException - if an error occurs while reading.IOExceptionpublic IlvNamedProperty copy()
copy in class IlvGraphLayoutGrapherPropertypublic boolean isPersistent()
true if the property must be saved to an
.ivl file.isPersistent in class IlvGraphLayoutGrapherPropertypublic void write(IlvOutputStream stream) throws IOException
write in interface IlvPersistentObjectwrite in class IlvGraphLayoutGrapherPropertystream - The output stream.IOException - standard IO error.public void transfer(IlvGraphLayout graphLayout)
transfer in class IlvGraphLayoutGrapherPropertygraphLayout - The layout instance whose parameters are to be
recovered from this instance.public void dispose(IlvGrapherPropertyAdapter adapter)
dispose in class IlvGraphLayoutGrapherPropertyadapter - The grapher property adapter.IlvGrapherPropertyAdapter.loadParametersFromNamedProperties(IlvGraphLayout),
IlvGrapherPropertyAdapter.removeParametersFromNamedProperties()© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.