org.eclipse.jgit.revplot.PlotCommit subclasses.
Commits are allocated into lanes as they enter the list, based upon their connections between descendant (child) commits and ancestor (parent) commits.
The source of the list must be a org.
and fillTo(int) must be used to populate the list.
| Modifier and Type | Field and Description |
|---|---|
| private final HashSet | |
| private final TreeSet | |
| private final HashMap | laneLength
number of (child) commits on a lane |
| pack-priv static final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public void | clear()
Overrides org. Implements java. Removes all of the elements from this list (optional operation). |
| private void | |
| private void | |
| protected L | |
| private void | drawLaneToChild(final int
commit index commitIndex, PlotCommit<L extends PlotLane> child to connect child, PlotLane lane to continue laneToContinue)Connects the commit at commitIndex to the child, using the given lane. |
| protected void | enter(int
the list position this object will appear at. index, PlotCommit<L> the object being added (or set) into the list. currCommit)Overrides org. Optional callback invoked when commits enter the list by fillTo. |
| public void | findPassingThrough(final PlotCommit<L>
the commit the caller needs to get the lanes from. currCommit, final Collection<L> collection to add the passing lanes into. result)Find the set of lanes passing through a commit's row. |
| private int | |
| private void | handleBlockedLanes(final int
the index of index, final PlotCommit<L extends PlotLane> currCommit in the listthe current commit currCommit, final PlotCommit<L extends PlotLane> the direct child on the same lane as childOnLane)currCommit,
may be null if currCommit is the first commit on
the laneSets up fork and merge information in the involved PlotCommits. |
| private PlotLane | handleMerge(final int index, final PlotCommit<L extends PlotLane> currCommit, final PlotCommit<L extends PlotLane> childOnLane, PlotCommit<L extends PlotLane> child, PlotLane laneToUse)
|
| private PlotLane | |
| private PlotLane | |
| protected void | recycleLane(L
a lane lane)Return colors and other reusable information to the plotter when a lane is no longer needed. |
| private void | |
| public void | source(RevWalk
the walker to populate from. w)Overrides org. Set the revision walker this list populates itself from. |
| activeLanes | back to summary |
|---|---|
| private final HashSet<PlotLane> activeLanes | |
| freePositions | back to summary |
|---|---|
| private final TreeSet<Integer> freePositions | |
| laneLength | back to summary |
|---|---|
| private final HashMap<PlotLane, Integer> laneLength number of (child) commits on a lane | |
| MAX_LENGTH | back to summary |
|---|---|
| pack-priv static final int MAX_LENGTH | |
| positionsAllocated | back to summary |
|---|---|
| private int positionsAllocated | |
| PlotCommitList | back to summary |
|---|---|
| public PlotCommitList() | |
| addBlockedPosition | back to summary |
|---|---|
| private static void addBlockedPosition(BitSet blockedPositions, final PlotCommit<L extends PlotLane> rObj) | |
| clear | back to summary |
|---|---|
| public void clear() Overrides org. Implements java. Doc from java. Removes all of the elements from this list (optional operation). The list will be empty after this call returns.
| |
| closeLane | back to summary |
|---|---|
private void closeLane(PlotLane lane)
| |
| continueActiveLanes | back to summary |
|---|---|
| private void continueActiveLanes(PlotCommit<L extends PlotLane> currCommit) | |
| createLane | back to summary |
|---|---|
| protected L createLane() Create a new
| |
| drawLaneToChild | back to summary |
|---|---|
| private void drawLaneToChild(final int commitIndex, PlotCommit<L extends PlotLane> child, PlotLane laneToContinue) Connects the commit at commitIndex to the child, using the given lane. All blockades on the lane must be resolved before calling this method.
| |
| enter | back to summary |
|---|---|
| protected void enter(int index, PlotCommit<L> currCommit) Overrides org. Doc from org. Optional callback invoked when commits enter the list by fillTo.
This method is only called during
| |
| findPassingThrough | back to summary |
|---|---|
| public void findPassingThrough(final PlotCommit<L> currCommit, final Collection<L> result) Find the set of lanes passing through a commit's row. Lanes passing through a commit are lanes that the commit is not directly on, but that need to travel through this commit to connect a descendant (child) commit to an ancestor (parent) commit. Typically these lanes will be drawn as lines in the passed commit's box, and the passed commit won't appear to be connected to those lines. This method modifies the passed collection by adding the lanes in any order.
| |
| getFreePosition | back to summary |
|---|---|
private int getFreePosition(BitSet blockedPositions)
| |
| handleBlockedLanes | back to summary |
|---|---|
| private void handleBlockedLanes(final int index, final PlotCommit<L extends PlotLane> currCommit, final PlotCommit<L extends PlotLane> childOnLane) Sets up fork and merge information in the involved PlotCommits. Recognizes and handles blockades that involve forking or merging arcs.
| |
| handleMerge | back to summary |
|---|---|
private PlotLane handleMerge(final int index, final PlotCommit<L extends PlotLane> currCommit, final PlotCommit<L extends PlotLane> childOnLane, PlotCommit<L extends PlotLane> child, PlotLane laneToUse)
| |
| nextFreeLane | back to summary |
|---|---|
| private PlotLane nextFreeLane() | |
| nextFreeLane | back to summary |
|---|---|
| private PlotLane nextFreeLane(BitSet blockedPositions) | |
| recycleLane | back to summary |
|---|---|
| protected void recycleLane(L lane) Return colors and other reusable information to the plotter when a lane is no longer needed.
| |
| setupChildren | back to summary |
|---|---|
| private void setupChildren(PlotCommit<L> currCommit) | |
| source | back to summary |
|---|---|
| public void source(RevWalk w) Overrides org. Doc from org. Set the revision walker this list populates itself from. | |