public class IlvGanttTimeScaleVisibilityPolicy extends IlvBasicTimeScaleVisibilityPolicy
IlvGanttTimeScale.
This policy enforces two of the predefined rows to be visible at a time,
depending on the zoom level of the time scale.
This policy defines 16 visibility conditions depending upon the zoom level that are processed in the following order:
MINUTE_VISIBILITY condition, when the zoom level enables
to display at the minute level.FIVE_MINUTE_VISIBILITY condition, when the zoom level
enables to display every five minutes.FIFTEEN_MINUTE_VISIBILITY condition, when the zoom level
enables to display every fifteen minutes.HOUR_VISIBILITY condition, when the zoom level enables to
display every hour.FOUR_HOUR_VISIBILITY condition, when the zoom level
enables to display every four hours.DAY_VISIBILITY condition, when the zoom level
enables to display every day using a medium format.SHORT_DAY_VISIBILITY condition, when the zoom level
enables to display every day using a short format.WEEK_VISIBILITY condition, when the zoom level enables to
display every week.MONTH_VISIBILITY condition, when the zoom level enables to
display every month.MEDIUM_MONTH_VISIBILITY condition, when the zoom level
enables to display every month using a medium format.SHORT_MONTH_VISIBILITY condition, when the zoom level
enables to display every month using a short format.QUARTER_VISIBILITY condition, when the zoom level enables
to display every quarter.YEAR_VISIBILITY condition, when the zoom level enables to
display every year.FIVE_YEAR_VISIBILITY condition, when the zoom level
enables to display every five years.TEN_YEAR_VISIBILITY condition, when the zoom level enables
to display every ten years.FIFTY_YEAR_VISIBILITY condition, when the zoom level
enables to display every fifty years.HUNDRED_YEAR_VISIBILITY condition, when the zoom level
enables to display every hundred years.IlvTimeScale.setVisibilityPolicy(ilog.views.gantt.scale.IlvTimeScaleVisibilityPolicy)| Modifier and Type | Field and Description |
|---|---|
static int |
DAY_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every day using a medium format.
|
static int |
FIFTEEN_MINUTE_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every fifteen minutes.
|
static int |
FIFTY_YEAR_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every fifty years.
|
static int |
FIVE_MINUTE_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every five minutes.
|
static int |
FIVE_YEAR_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every five years.
|
static int |
FOUR_HOUR_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every four hours.
|
static int |
HOUR_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display at the hour level.
|
static int |
HUNDRED_YEAR_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every hundred years.
|
static int |
MEDIUM_MONTH_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every month using a medium format.
|
static int |
MINUTE_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display at the minute level.
|
static int |
MONTH_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display at the month level.
|
static int |
QUARTER_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display at the quarter level.
|
static int |
SHORT_DAY_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every day using a short format.
|
static int |
SHORT_MONTH_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every month using a short format.
|
static int |
TEN_YEAR_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display every ten years.
|
static int |
WEEK_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display at the week level.
|
static int |
YEAR_VISIBILITY
The index representing the visibility condition for displaying when the
zoom level enables to display at the year level.
|
| Constructor and Description |
|---|
IlvGanttTimeScaleVisibilityPolicy()
Initializes a new
IlvGanttTimeScaleVisibilityPolicy. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initPredicates()
Initializes the different visibility predicates.
|
void |
rowsChanged(IlvTimeScale timeScale)
This method is called when some rows of the time scale have changed.
|
protected void |
updateRows(IlvTimeScale timeScale,
int index)
Updates the rows in the time scale.
|
protected void |
updateRowsFormat(IlvTimeScaleRow[] rows,
int visibilityIndex)
Updates the rows before displaying them.
|
addVisibleTimeScaleRows, adjustRows, getVisibleTimeScaleRows, getVisibleTimeScaleRowsSize, insertVisibleTimeScaleRowsAt, setVisibleTimeScaleRowspublic static final int MINUTE_VISIBILITY
public static final int FIVE_MINUTE_VISIBILITY
public static final int FIFTEEN_MINUTE_VISIBILITY
public static final int HOUR_VISIBILITY
public static final int FOUR_HOUR_VISIBILITY
public static final int DAY_VISIBILITY
public static final int SHORT_DAY_VISIBILITY
public static final int WEEK_VISIBILITY
public static final int MONTH_VISIBILITY
public static final int MEDIUM_MONTH_VISIBILITY
public static final int SHORT_MONTH_VISIBILITY
public static final int QUARTER_VISIBILITY
public static final int YEAR_VISIBILITY
public static final int FIVE_YEAR_VISIBILITY
public static final int TEN_YEAR_VISIBILITY
public static final int FIFTY_YEAR_VISIBILITY
public static final int HUNDRED_YEAR_VISIBILITY
public IlvGanttTimeScaleVisibilityPolicy()
IlvGanttTimeScaleVisibilityPolicy.protected void initPredicates()
protected void updateRows(IlvTimeScale timeScale, int index)
updateRows in class IlvBasicTimeScaleVisibilityPolicytimeScale - The time scale.index - The index in the visible time scale rows where to get the
visible rows from.protected void updateRowsFormat(IlvTimeScaleRow[] rows, int visibilityIndex)
rows - The array of rows to update.visibilityIndex - The visibility index these rows are assigned to.public void rowsChanged(IlvTimeScale timeScale)
rowsChanged in class IlvBasicTimeScaleVisibilityPolicy© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.