public abstract class IlvRelativeConstraint extends IlvHierarchicalConstraint
IlvRelativeConstraint
is the base class of
IlvRelativeLevelConstraint
and
IlvRelativePositionConstraint
.
Both classes have common internal functionality.
Constructor and Description |
---|
IlvRelativeConstraint(IlvInputStream stream)
Creates a new
IlvRelativeConstraint from an
IlvInputStream . |
IlvRelativeConstraint(IlvRelativeConstraint source)
Creates a new
IlvRelativeConstraint by copying an
existing one. |
IlvRelativeConstraint(Object lowerNodeOrGroup,
Object higherNodeOrGroup,
float priority)
Creates a new
IlvRelativeConstraint . |
Modifier and Type | Method and Description |
---|---|
void |
write(IlvOutputStream stream)
Writes the constraint to the output stream.
|
copy, getPriority, setPriority
public IlvRelativeConstraint(Object lowerNodeOrGroup, Object higherNodeOrGroup, float priority)
IlvRelativeConstraint
. See IlvRelativeLevelConstraint
and IlvRelativePositionConstraint
for a detailed description of its purpose.lowerNodeOrGroup
- A node, or a group of IlvNodeGroup
objects placed in a lower position than the second node or group.higherNodeOrGroup
- A node, or a group of IlvNodeGroup
objects placed in a higher position than the first node or group.priority
- The priority of the constraint.IlvHierarchicalLayout.addConstraint(IlvHierarchicalConstraint)
public IlvRelativeConstraint(IlvRelativeConstraint source)
IlvRelativeConstraint
by copying an
existing one.source
- The original object to be copied.public IlvRelativeConstraint(IlvInputStream stream) throws IOException, IlvReadFileException
IlvRelativeConstraint
from an
IlvInputStream
.stream
- The input stream from which the property must be read.IlvReadFileException
- if an error occurs while reading.IOException
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
write
in class IlvHierarchicalConstraint
stream
- The output stream.IOException
- the standard IO error.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.