Documentation of 'org.jhotdraw.samples.pert.figures.TaskFigure' Java class
TaskFigure
org.jhotdraw.samples.pert.figures

Class TaskFigure

    • Constructor Detail

      • TaskFigure

        public TaskFigure()
        Creates a new instance.
    • Method Detail

      • createHandles

        public java.util.Collection<Handle> createHandles(int detailLevel)
        Description copied from class: GraphicalCompositeFigure
        Return default handles from the presentation figure.
        Specified by:
        createHandles in interface Figure
        Overrides:
        createHandles in class GraphicalCompositeFigure
        Parameters:
        detailLevel - The detail level of the handles. Usually this is 0 for bounding box handles and 1 for point handles. The value -1 is used by the SelectAreaTracker and the HandleTracker to highlight figures, over which the mouse pointer is hovering.
        Returns:
        a Collection of handles
        See Also:
        Handle
      • setName

        public void setName(java.lang.String newValue)
      • getName

        public java.lang.String getName()
      • setDuration

        public void setDuration(int newValue)
      • getDuration

        public int getDuration()
      • updateStartTime

        public void updateStartTime()
      • getStartTime

        public int getStartTime()
      • clone

        public TaskFigure clone()
        Description copied from interface: Figure
        Returns a clone of the figure, with clones of all aggregated figures, such as children and decorators. The cloned figure does not clone the list of FigureListeners from its original.
        Specified by:
        clone in interface Figure
        Overrides:
        clone in class GraphicalCompositeFigure
      • getLayer

        public int getLayer()
        Description copied from class: AbstractFigure
        AbstractFigure always returns 0. Override this method if your figure needs to be on a different layer.
        Specified by:
        getLayer in interface Figure
        Overrides:
        getLayer in class AbstractFigure
      • getSuccessors

        public java.util.List<TaskFigure> getSuccessors()
        Returns dependent PertTasks which are directly connected via a PertDependency to this TaskFigure.
      • getPredecessors

        public java.util.List<TaskFigure> getPredecessors()
        Returns predecessor PertTasks which are directly connected via a PertDependency to this TaskFigure.
      • isDependentOf

        public boolean isDependentOf(TaskFigure t)
        Returns true, if the current task is a direct or indirect dependent of the specified task. If the dependency is cyclic, then this method returns true if this is passed as a parameter and for every other task in the cycle.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.