|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.PlotCommit
public class PlotCommit
| Constructor Summary | |
|---|---|
PlotCommit(HistoryInfo historyInfo)
A PlotCommit object holds graphical information for a certain history object which is used for drawing in the HistoryBrowserView, or rather the SWTPlotRenderer used by this view. |
|
PlotCommit(int dummyId,
String branch)
Creates a hollow dummy commit with the given id and branch name. |
|
| Method Summary | |
|---|---|
void |
addChild(IPlotCommit child)
Adds a child to this commit. |
void |
addPassingLane(PlotLane c)
Adds a passing lane to this commit. |
void |
dispose()
Disposes this commit and all aquired resources. |
String |
getBranch()
|
IPlotCommit |
getChild(int child)
|
int |
getChildCount()
|
org.eclipse.swt.graphics.Color |
getColor()
|
int |
getId()
|
PlotLane |
getLane()
|
org.eclipse.swt.graphics.Color |
getLightColor()
|
IPlotCommit |
getParent(int i)
|
int |
getParentCount()
|
PlotLane[] |
getPassingLanes()
|
boolean |
isChild(IPlotCommit commit)
Tests whether a given commit is child of this commit. |
boolean |
isLocalHistoryOnly()
Checks whether this commit is a real (i.e. |
boolean |
isRealCommit()
|
void |
setColor(org.eclipse.swt.graphics.Color color)
Sets the color of this commit. |
void |
setIsRealCommit(boolean isReal)
Sets the 'real' status of this commit. |
void |
setLane(PlotLane lane)
Sets the lane of the commit. |
void |
setLightColor(org.eclipse.swt.graphics.Color color)
Sets the light color of this commit. |
void |
setParents(List<IPlotCommit> parents)
Sets the parent's of this commit. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlotCommit(HistoryInfo historyInfo)
historyInfo - The historyInfo that is represented by this PlotCommit
public PlotCommit(int dummyId,
String branch)
dummyId - The id of the dummy.branch - The branch name of the dummy.| Method Detail |
|---|
public void setLane(PlotLane lane)
setLane in interface IPlotCommitlane - The lane to set as lane for this commit.IPlotCommit.setLane(org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.PlotLane)public PlotLane getLane()
getLane in interface IPlotCommitIPlotCommit.getLane()public void addPassingLane(PlotLane c)
addPassingLane in interface IPlotCommitc - The lane to add.IPlotCommit.addPassingLane(org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.PlotLane)public PlotLane[] getPassingLanes()
getPassingLanes in interface IPlotCommitIPlotCommit.getPassingLanes()public void setParents(List<IPlotCommit> parents)
setParents in interface IPlotCommitparents - A list of this commit's parents.IPlotCommit.setParents(java.util.List)public int getParentCount()
getParentCount in interface IPlotCommitIPlotCommit.getParentCount()public IPlotCommit getParent(int i)
getParent in interface IPlotCommiti - The index of the parent to retrieve.
IPlotCommit.getParent(int)public void addChild(IPlotCommit child)
IPlotCommit.setParents(List)
addChild in interface IPlotCommitchild - The child to add.IPlotCommit.addChild(org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.IPlotCommit)public IPlotCommit getChild(int child)
getChild in interface IPlotCommitchild - The index of the child to retrieve.
IPlotCommit.getChild(int)public int getChildCount()
getChildCount in interface IPlotCommitIPlotCommit.getChildCount()public boolean isChild(IPlotCommit commit)
isChild in interface IPlotCommitcommit - The potential child commit.
IPlotCommit.isChild(org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.IPlotCommit)public void setIsRealCommit(boolean isReal)
setIsRealCommit in interface IPlotCommitisReal - The new status.IPlotCommit.setIsRealCommit(boolean)public boolean isRealCommit()
isRealCommit in interface IPlotCommitIPlotCommit.setIsRealCommit(boolean).IPlotCommit.isRealCommit()public String getBranch()
getBranch in interface IPlotCommitIPlotCommit.getBranch()public int getId()
getId in interface IPlotCommitIPlotCommit.getId()public void dispose()
dispose in interface IPlotCommitIPlotCommit.dispose()public boolean isLocalHistoryOnly()
isLocalHistoryOnly in interface IPlotCommitIPlotCommit.isLocalHistoryOnly()public void setColor(org.eclipse.swt.graphics.Color color)
setColor in interface IPlotCommitcolor - The new color.IPlotCommit.setColor(org.eclipse.swt.graphics.Color)public org.eclipse.swt.graphics.Color getColor()
getColor in interface IPlotCommitIPlotCommit.setColor(Color).IPlotCommit.getColor()public void setLightColor(org.eclipse.swt.graphics.Color color)
IPlotCommit.setColor(Color)). The light color is used whenever a more faded color representation for this commit is
needed (e.g. label backgrounds, lane colors for expanded commit nodes).
setLightColor in interface IPlotCommitcolor - The new light color of this commit.IPlotCommit.setLightColor(org.eclipse.swt.graphics.Color)public org.eclipse.swt.graphics.Color getLightColor()
getLightColor in interface IPlotCommitIPlotCommit.setLightColor(Color).IPlotCommit.getLightColor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||