public class IlvGanttRow extends Object
IlvGanttRow
object is the container for
IlvActivityGraphic
s in an IlvGanttSheet
. Each row in the
IlvGanttSheet
is managed by an IlvGanttRow
object.
IlvGanttRow
is not an IlvGraphic
subclass.Modifier and Type | Method and Description |
---|---|
boolean |
contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Tests if the row contains the given IlvPoint.
|
IlvActivityGraphic |
getActivityGraphic(IlvActivity activity)
Returns the activity graphic representing the given activity.
|
IlvActivityGraphic |
getActivityGraphic(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Gets the activity graphic at the given position.
|
IlvActivityGraphic |
getActivityGraphic(int index)
Returns the activity graphic at the given index.
|
int |
getActivityGraphicCount()
Returns the number of activity graphics contained in this row.
|
int |
getActivityGraphicIndex(IlvActivityGraphic graphic)
Returns the index of the specified activity graphic.
|
IlvActivityGraphic[] |
getActivityGraphics()
Returns an array of the activity graphics in the row.
|
IlvActivityLayout |
getActivityLayout()
Returns the activity layout of the row.
|
double |
getBottom()
Gets the bottom of the row.
|
double |
getHeight()
Returns the height of the row.
|
Object |
getIdentifier()
Returns the row's unique key identifier.
|
IlvReservationGraphic |
getReservationGraphic(IlvReservation reservation)
Returns the reservation graphic representing the given reservation.
|
IlvTimeConverter |
getTimeConverter()
Returns the time converter of the row.
|
double |
getTop()
Gets the top of the row.
|
boolean |
isVisible()
Returns the visibility of the row.
|
void |
setActivityGraphicIndex(IlvActivityGraphic graphic,
int index)
Deprecated.
Beginning with Perforce JViews 8.6 you should control the z-order of activity
graphics by overriding the
IlvActivityLayout.arrange(IlvGanttRow,
IlvActivityGraphic[]) method. Calling setActivityGraphicIndex(IlvActivityGraphic,
int) will give inconsistent results when used in combination with the
z-order algorithms implemented by most of the activity layout
strategies. |
void |
setActivityLayout(IlvActivityLayout activityLayout)
Sets the activity layout of the row.
|
public Object getIdentifier()
public IlvTimeConverter getTimeConverter()
public int getActivityGraphicCount()
public IlvActivityGraphic getActivityGraphic(int index)
index
- The position of the activity graphic.
The first graphic has a zero index.getActivityGraphicIndex(ilog.views.gantt.graphic.IlvActivityGraphic)
public IlvActivityGraphic[] getActivityGraphics()
public IlvActivityGraphic getActivityGraphic(IlvActivity activity)
activity
- The given activitynull
if not found.public IlvActivityGraphic getActivityGraphic(IlvPoint p, IlvPoint tp, IlvTransformer t)
p
- The point from where the search will start.tp
- The transformed p pointt
- The transformer through which the set will be drawn.public IlvReservationGraphic getReservationGraphic(IlvReservation reservation)
reservation
- The reservation providedpublic int getActivityGraphicIndex(IlvActivityGraphic graphic)
graphic
- The specified activity graphic that must be in this row.-1
if the
activity graphic is not in this row.@Deprecated public void setActivityGraphicIndex(IlvActivityGraphic graphic, int index)
IlvActivityLayout.arrange(IlvGanttRow,
IlvActivityGraphic[])
method. Calling setActivityGraphicIndex(IlvActivityGraphic,
int)
will give inconsistent results when used in combination with the
z-order algorithms implemented by most of the activity layout
strategies.graphic
- The specified activity graphic that must be in this row.index
- The new index of the given activity graphic.getActivityGraphicIndex(ilog.views.gantt.graphic.IlvActivityGraphic)
,
IlvGanttSheet.setActivityLayout(ilog.views.gantt.graphic.IlvActivityLayout)
public final IlvActivityLayout getActivityLayout()
public void setActivityLayout(IlvActivityLayout activityLayout)
activityLayout
- The activity layout or null
for the
row to use the activity layout of the Gantt sheet.public double getTop()
public double getBottom()
public double getHeight()
public boolean contains(IlvPoint p, IlvPoint tp, IlvTransformer t)
public boolean isVisible()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.