com.jidesoft.gantt
Class DefaultGanttEntryRelation<S extends GanttEntry<?>>
java.lang.Object
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
.
DefaultGanttEntryRelation
public DefaultGanttEntryRelation(S predecessorEntry,
S successorEntry,
int type)
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