public class IlvActivityLogisticLayout extends IlvActivitySimpleLayout
IlvActivityLogisticLayout is designed to arrange concurrent
activities in a Gantt row. It tries to find the best layout for all
activities in a Gantt row so that none of them are hidden.| Modifier and Type | Field and Description |
|---|---|
static int |
CASCADE
The activity graphics are arranged in cascade.
|
static int |
PRETTY
The activity graphics are firstly sorted by the start time of their
associated activity and then arranged in cascade.
|
static int |
TILE
Deprecated.
Beginning with Rogue Wave JViews 6.5, use an instance of
IlvActivityTileLayout instead. |
DEFAULT_VERTICAL_MARGIN| Constructor and Description |
|---|
IlvActivityLogisticLayout(int layoutMode)
Creates a new
IlvActivityLogisticLayout. |
IlvActivityLogisticLayout(int layoutMode,
double topMargin,
double bottomMargin)
Creates a new
IlvActivityLogisticLayout. |
| Modifier and Type | Method and Description |
|---|---|
void |
arrange(IlvGanttRow row,
IlvActivityGraphic graphic)
This method is called to layout the position of a single activity graphic
within a row.
|
void |
arrange(IlvGanttRow row,
IlvActivityGraphic[] graphics)
This method is called to layout the position of all the activity graphics
within a row.
|
int |
getArrangeMode()
Returns the arrange mode.
|
double |
getCascadeOffset()
|
void |
setArrangeMode(int layoutMode)
Sets the arrange mode.
|
void |
setCascadeOffset(double offset)
|
getBottomMargin, getChannelVerticalBounds, getTopMargin, setBottomMargin, setTopMarginpublic static final int CASCADE
getArrangeMode(),
Constant Field Valuespublic static final int PRETTY
getArrangeMode(),
Constant Field Values@Deprecated public static final int TILE
IlvActivityTileLayout instead.getArrangeMode(),
Constant Field Valuespublic IlvActivityLogisticLayout(int layoutMode,
double topMargin,
double bottomMargin)
IlvActivityLogisticLayout.public int getArrangeMode()
setArrangeMode(int)public void setArrangeMode(int layoutMode)
layoutMode - The layout mode that must be one of CASCADE,
PRETTY, or TILE.getArrangeMode()public double getCascadeOffset()
CASCADE and
PRETTY layout modes. The default value is 5.0.setCascadeOffset(double)public void setCascadeOffset(double offset)
getCascadeOffset()public void arrange(IlvGanttRow row, IlvActivityGraphic[] graphics)
arrange in interface IlvActivityLayoutarrange in class IlvActivitySimpleLayoutrow - The Gantt row that contains the graphics.graphics - The array of activity graphics in the row. The ordering of the
graphics in the array indicates the z-order in which the activity
graphics draw. Graphics at a higher index in the array are drawn
after graphics at a lower index. This method can rearrange the
graphics within the array to change their drawing order.public void arrange(IlvGanttRow row, IlvActivityGraphic graphic)
arrange in interface IlvActivityLayoutarrange in class IlvActivitySimpleLayoutrow - The Gantt row that contains the graphic.graphic - The activity graphic to be arranged.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.