 |
|
ได้แล้วครับขอบคุณครับ
แต่มีปัญหาขึ้นมาอีกข้อ ครับ จะทำลูกศร ชี้ไปที่ activity นี้ต้องทำยังไงครับพอดีเข้าไปอ่านในนี้แล้วผม งง
http://jpgraph.net/download/manuals/chunkhtml/ch16s04.html
To visualize a constrain the method SetConstrain() is called on the first Gantt object that is the first part of the constraint. The signature for this method is
GanttObject::SetConstrain($aRow,$aType,$aColor='black',
$aArrowSize=ARROW_S2, $aArrowType=ARROWT_SOLID)
$aRow, The target row for the constrain
$aType, The type of constraints. Can be one of the following symbolic defines
CONSTRAIN_STARTSTART
CONSTRAIN_STARTEND
CONSTRAIN_ENDSTART
CONSTRAIN_ENDEND
$aColor, The color of the constraint arrow
$aArrowSize, The size of the constraint arrow. Can eb one of the following symbolic defines
ARROW_S1
ARROW_S2
ARROW_S3
ARROW_S4
ARROW_S5
$aArrowType, specifies the visual appearance of the arrow. Can be one of the following symbolic defines
ARROWT_SOLID, Using a solid arrow and arrow head
ARROWT_OPEN, Using an outline arrow and outline arrow head
If we assume that the gantt chart have two activity bars (Gantt bars) defined as
1
2
$activity1 = new GanttBar(0,'First activity','2001-01-01','2001-03-01');
$activity2 = new GanttBar(1,'Second activity','2001-02-01','2001-04-15');
and that we need to visualize a end-to-start constraint from $activity1 to $activity2 we must add the following statement
1
$activity1->SetConstrain(1,CONSTRAIN_ENDSTART);
Note
ผมไม่เก่งภาษาเท่าไรนะครับ
|
 |
 |
 |
 |
Date :
2014-08-03 11:41:33 |
By :
gunarm |
|
 |
 |
 |
 |
|
|
 |