public class IlvGraphLayoutParameters extends Object
Constructor and Description |
---|
IlvGraphLayoutParameters()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
afterLayout(IlvGraphLayout layout)
Postprocesses the layout.
|
void |
beforeLayout(IlvGraphLayout layout)
Preprocesses the layout.
|
void |
cleanup(IlvGraphLayout layout)
Cleans up the layout.
|
void |
evaluateConstraints(IlvSDMEngine engine,
Vector<? extends ilog.views.sdm.renderer.graphlayout.IlvHierarchicalLayoutParameters.ConstraintHolder> constraints)
Evaluate the constraint information that was read from a reader.
|
void |
prepare(IlvGraphLayout layout)
Prepares the layout.
|
Vector<? extends ilog.views.sdm.renderer.graphlayout.IlvHierarchicalLayoutParameters.ConstraintHolder> |
readConstraints(Reader reader)
Reads the constraints from a reader.
|
void |
writeConstraints(IlvSDMEngine engine,
PrintWriter stream)
Writes the constraints to a writer.
|
public void prepare(IlvGraphLayout layout)
IlvGraphLayoutRenderer.prepareRendering(ilog.views.sdm.IlvSDMEngine)
, that is, before the
SDM engine renders a new data model and creates new node and link
graphics.public void beforeLayout(IlvGraphLayout layout)
IlvGraphLayoutRenderer.renderingDone(ilog.views.sdm.IlvSDMEngine)
, just before
layout is actually performed.public void afterLayout(IlvGraphLayout layout)
IlvGraphLayoutRenderer.renderingDone(ilog.views.sdm.IlvSDMEngine)
, just after
layout was actually performed.public void cleanup(IlvGraphLayout layout)
IlvGraphLayoutRenderer.removeAll(ilog.views.sdm.IlvSDMEngine)
, that is,
before a data model is loaded (and before the SDM engine clears the
grapher's contents), and when the graph layout renderer is detached
from the SDM engine.public void writeConstraints(IlvSDMEngine engine, PrintWriter stream)
engine
- The SDM enginestream
- The output streampublic Vector<? extends ilog.views.sdm.renderer.graphlayout.IlvHierarchicalLayoutParameters.ConstraintHolder> readConstraints(Reader reader) throws IOException
reader
- The input readerevaluateConstraints(ilog.views.sdm.IlvSDMEngine, java.util.Vector<? extends ilog.views.sdm.renderer.graphlayout.IlvHierarchicalLayoutParameters.ConstraintHolder>)
.
Returns null
when there are no constraints.IOException
public void evaluateConstraints(IlvSDMEngine engine, Vector<? extends ilog.views.sdm.renderer.graphlayout.IlvHierarchicalLayoutParameters.ConstraintHolder> constraints) throws IOException
engine
- The SDM engine.constraints
- A vector containing the constraint information.
This is the vector retrieved by readConstraints(java.io.Reader)
.IOException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.