public abstract class IlvHierarchicalConstraint extends Object implements IlvPersistentObject
IlvHierarchicalConstraint is the base
class for constraints of the Hierarchical Layout. Constraints can be
used to influence the way the layout algorithms partition the nodes
into levels and order the nodes within the levels.
IlvHierarchicalLayout.addConstraint(IlvHierarchicalConstraint),
Serialized Form| Constructor and Description |
|---|
IlvHierarchicalConstraint(float priority)
Creates a new
IlvHierarchicalConstraint. |
IlvHierarchicalConstraint(IlvHierarchicalConstraint source)
Creates a new
IlvHierarchicalConstraint by copying an
existing one. |
IlvHierarchicalConstraint(IlvInputStream stream)
Creates a new
IlvHierarchicalConstraint from an
IlvInputStream. |
| Modifier and Type | Method and Description |
|---|---|
abstract IlvHierarchicalConstraint |
copy()
Copies the constraint.
|
float |
getPriority()
Returns the priority of the constraint.
|
void |
setPriority(float priority)
Sets the priority of the constraint.
|
void |
write(IlvOutputStream stream)
Writes the constraint to the output stream.
|
public IlvHierarchicalConstraint(float priority)
IlvHierarchicalConstraint.priority - The priority of the constraint. If there are conflicts
between constraints, the constraint with the highest priority wins.public IlvHierarchicalConstraint(IlvHierarchicalConstraint source)
IlvHierarchicalConstraint by copying an
existing one.
source - The origin of the copy.public IlvHierarchicalConstraint(IlvInputStream stream) throws IOException, IlvReadFileException
IlvHierarchicalConstraint from an
IlvInputStream.
stream - The input stream from which the property must be read.IlvReadFileException - if an error occurs while reading.IOExceptionpublic abstract IlvHierarchicalConstraint copy()
public void write(IlvOutputStream stream) throws IOException
write in interface IlvPersistentObjectstream - The output stream.IOException - standard IO error.public final float getPriority()
If there are conflicts between constraints, the constraint with the highest priority wins.
setPriority(float)public final void setPriority(float priority)
getPriority()© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.