JIDE 3.5.15

com.jidesoft.gantt
Class DefaultGanttEntryRelation<S extends GanttEntry<?>>

java.lang.Object
  extended by com.jidesoft.gantt.DefaultGanttEntryRelation<S>
Type Parameters:
S - The type of the GanttEntry in the model.
All Implemented Interfaces:
GanttEntryRelation<S>

public class DefaultGanttEntryRelation<S extends GanttEntry<?>>
extends Object
implements GanttEntryRelation<S>

DefaultGanttEntryRelation is the default implementation of GanttEntryRelation.


Field Summary
 
Fields inherited from interface com.jidesoft.gantt.GanttEntryRelation
ENTRY_RELATION_FINISH_TO_FINISH, ENTRY_RELATION_FINISH_TO_START, ENTRY_RELATION_START_TO_FINISH, ENTRY_RELATION_START_TO_START
 
Constructor Summary
DefaultGanttEntryRelation(S predecessorEntry, S successorEntry, int type)
           
 
Method Summary
 S getPredecessorEntry()
          Gets the predecessor entry of the relation.
 int getRelationType()
          Gets the relation type between the predecessor and successor entries.
 S getSuccessorEntry()
          Gets the successor entry of the relation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultGanttEntryRelation

public DefaultGanttEntryRelation(S predecessorEntry,
                                 S successorEntry,
                                 int type)
Method Detail

getSuccessorEntry

public S getSuccessorEntry()
Description copied from interface: GanttEntryRelation
Gets the successor entry of the relation.

Specified by:
getSuccessorEntry in interface GanttEntryRelation<S extends GanttEntry<?>>
Returns:
the successor entry.

getRelationType

public int getRelationType()
Description copied from interface: GanttEntryRelation
Gets the relation type between the predecessor and successor entries.

Specified by:
getRelationType in interface GanttEntryRelation<S extends GanttEntry<?>>
Returns:
the relation type.

getPredecessorEntry

public S getPredecessorEntry()
Description copied from interface: GanttEntryRelation
Gets the predecessor entry of the relation.

Specified by:
getPredecessorEntry in interface GanttEntryRelation<S extends GanttEntry<?>>
Returns:
the predecessor entry.

toString

public String toString()
Overrides:
toString in class Object

JIDE 3.5.15