public class IlvDefaultConstraintGraphicFactory extends Object implements IlvConstraintGraphicFactory
IlvDefaultConstraintGraphicFactory
is the default constraint
graphic factory that is initially set in an IlvGanttSheet
. You can
change the factory by calling the setConstraintGraphicFactory
method of the
hierarchy chart
or the Gantt sheet
.Constructor and Description |
---|
IlvDefaultConstraintGraphicFactory()
Creates a new
IlvDefaultConstraintGraphicFactory . |
Modifier and Type | Method and Description |
---|---|
IlvConstraintGraphic |
createConstraintGraphic(IlvActivityGraphic from,
IlvActivityGraphic to,
IlvConstraint constraint)
Creates a graphic for the specified constraint that connects the
from activity graphic to the to activity graphic.
|
Color |
getConstraintColor()
Returns the color that is applied to any newly created constraint graphics.
|
void |
setConstraintColor(Color color)
Sets the color that is applied to any newly created constraint graphics.
|
public IlvDefaultConstraintGraphicFactory()
IlvDefaultConstraintGraphicFactory
.public IlvConstraintGraphic createConstraintGraphic(IlvActivityGraphic from, IlvActivityGraphic to, IlvConstraint constraint)
createConstraintGraphic
in interface IlvConstraintGraphicFactory
from
- The activity graphic
from which the
link starts.to
- The activity graphic
to which the link
points.constraint
- Defines the type of the link.public Color getConstraintColor()
setConstraintColor(java.awt.Color)
public void setConstraintColor(Color color)
color
- The color.getConstraintColor()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.