|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 PlotCommitpublic 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 IPlotCommit
lane
- 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 IPlotCommit
IPlotCommit.getLane()
public void addPassingLane(PlotLane c)
addPassingLane
in interface IPlotCommit
c
- The lane to add.IPlotCommit.addPassingLane(org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.PlotLane)
public PlotLane[] getPassingLanes()
getPassingLanes
in interface IPlotCommit
IPlotCommit.getPassingLanes()
public void setParents(List<IPlotCommit> parents)
setParents
in interface IPlotCommit
parents
- A list of this commit's parents.IPlotCommit.setParents(java.util.List)
public int getParentCount()
getParentCount
in interface IPlotCommit
IPlotCommit.getParentCount()
public IPlotCommit getParent(int i)
getParent
in interface IPlotCommit
i
- The index of the parent to retrieve.
IPlotCommit.getParent(int)
public void addChild(IPlotCommit child)
IPlotCommit.setParents(List)
addChild
in interface IPlotCommit
child
- 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 IPlotCommit
child
- The index of the child to retrieve.
IPlotCommit.getChild(int)
public int getChildCount()
getChildCount
in interface IPlotCommit
IPlotCommit.getChildCount()
public boolean isChild(IPlotCommit commit)
isChild
in interface IPlotCommit
commit
- 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 IPlotCommit
isReal
- The new status.IPlotCommit.setIsRealCommit(boolean)
public boolean isRealCommit()
isRealCommit
in interface IPlotCommit
IPlotCommit.setIsRealCommit(boolean)
.IPlotCommit.isRealCommit()
public String getBranch()
getBranch
in interface IPlotCommit
IPlotCommit.getBranch()
public int getId()
getId
in interface IPlotCommit
IPlotCommit.getId()
public void dispose()
dispose
in interface IPlotCommit
IPlotCommit.dispose()
public boolean isLocalHistoryOnly()
isLocalHistoryOnly
in interface IPlotCommit
IPlotCommit.isLocalHistoryOnly()
public void setColor(org.eclipse.swt.graphics.Color color)
setColor
in interface IPlotCommit
color
- The new color.IPlotCommit.setColor(org.eclipse.swt.graphics.Color)
public org.eclipse.swt.graphics.Color getColor()
getColor
in interface IPlotCommit
IPlotCommit.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 IPlotCommit
color
- The new light color of this commit.IPlotCommit.setLightColor(org.eclipse.swt.graphics.Color)
public org.eclipse.swt.graphics.Color getLightColor()
getLightColor
in interface IPlotCommit
IPlotCommit.setLightColor(Color)
.IPlotCommit.getLightColor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |