public class IltShortLinkLayoutGrapherProperty extends IlvGraphLayoutGrapherProperty
IltShortLinkLayoutGrapherProperty
allows you to store the global settings of an instance
of IltShortLinkLayout
as a named property in the grapher. This is used by
IlvGrapherAdapter.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.
IlvGrapherAdapter.saveParametersToNamedProperties(IlvGraphLayout, boolean)
,
IlvGrapherAdapter.loadParametersFromNamedProperties(IlvGraphLayout)
,
IlvGrapherAdapter.removeParametersFromNamedProperties()
,
IlvGraphLayout.createLayoutGrapherProperty(String, boolean)
,
Serialized FormConstructor and Description |
---|
IltShortLinkLayoutGrapherProperty(IltShortLinkLayoutGrapherProperty source)
Creates a new
IltShortLinkLayoutGrapherProperty by copying an
existing one. |
IltShortLinkLayoutGrapherProperty(IlvInputStream stream)
Creates a new
IltShortLinkLayoutGrapherProperty from
an IlvInputStream . |
IltShortLinkLayoutGrapherProperty(String name,
IltShortLinkLayout layout,
boolean withDefaults)
Creates a new
IltShortLinkLayoutGrapherProperty that stores
layout parameter settings of the layout . |
Modifier and Type | Method and Description |
---|---|
IlvNamedProperty |
copy()
Copies the named property.
|
void |
dispose(IlvGrapherAdapter adapter)
Disposes of the property and releases any resources that it is using.
|
boolean |
isPersistent()
Return
true if the property must be saved to an .ivl file. |
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, omitDefaults, readProperties
getName
public IltShortLinkLayoutGrapherProperty(String name, IltShortLinkLayout layout, boolean withDefaults)
IltShortLinkLayoutGrapherProperty
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 IltShortLinkLayoutGrapherProperty(IltShortLinkLayoutGrapherProperty source)
IltShortLinkLayoutGrapherProperty
by copying an
existing one.source
- The origin of the copy.public IltShortLinkLayoutGrapherProperty(IlvInputStream stream) throws IOException, IlvReadFileException
IltShortLinkLayoutGrapherProperty
from
an IlvInputStream
.stream
- The input stream from which the property must be read.IlvReadFileException
- if an error occurs while reading.IOException
public IlvNamedProperty copy()
copy
in class IlvGraphLayoutGrapherProperty
public boolean isPersistent()
true
if the property must be saved to an .ivl
file.isPersistent
in class IlvGraphLayoutGrapherProperty
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
write
in class IlvGraphLayoutGrapherProperty
stream
- The output stream.IOException
- standard IO error.public void transfer(IlvGraphLayout graphLayout)
transfer
in class IlvGraphLayoutGrapherProperty
graphLayout
- The layout instance whose parameters are to be
recovered from this instance.public void dispose(IlvGrapherAdapter adapter)
dispose
in class IlvGraphLayoutGrapherProperty
adapter
- The grapher adapter.IlvGrapherAdapter.loadParametersFromNamedProperties(IlvGraphLayout)
,
IlvGrapherAdapter.removeParametersFromNamedProperties()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.