|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.compare.ui.viewer.content.part.ModelContentMergeTabItem
public final class ModelContentMergeTabItem
This class will be used to wrap Item
subclasses such as TreeItem
and TableItem
to allow us to call methods such as getBounds
without explicitely casting each time we do so.
This wrapper will allow us to maintain a logical structure of the tree : which TreeItem corresponds to which difference or visible parent ...
Constructor Summary | |
---|---|
ModelContentMergeTabItem(DiffElement diff,
org.eclipse.swt.widgets.Item actual,
org.eclipse.swt.widgets.Item visible,
java.lang.String drawingColor)
Constructs a wrapper around the given item. |
|
ModelContentMergeTabItem(DiffElement diff,
org.eclipse.swt.widgets.Item actual,
org.eclipse.swt.widgets.Item visible,
java.lang.String drawingColor,
int curveExpectedY,
int curveExpectedSize)
Constructs a wrapper around the given item. |
|
ModelContentMergeTabItem(DiffElement diff,
org.eclipse.swt.widgets.Item actual,
java.lang.String drawingColor)
Constructs a wrapper around the given item. |
Method Summary | |
---|---|
org.eclipse.swt.widgets.Item |
getActualItem()
Returns the actual item this instance has been created for. |
java.lang.String |
getCurveColor()
Returns the color which should be used when drawing the center curve and other UI colored components using this item. |
int |
getCurveSize()
Returns the size of the center connecting curve. |
int |
getCurveY()
Returns the Y coordinate at which the center connecting curve should be drawn on this item. |
DiffElement |
getDiff()
Returns the represented difference. |
int |
getVerticalOffset()
Returns the offset needed to compensate scroll effects and table headers when painting curve. |
org.eclipse.swt.widgets.Item |
getVisibleItem()
Returns the visible item on which UI marquees should be drawn. |
void |
setCurveSize(int newCurveSize)
Sets a new value for this item's center curve size. |
void |
setCurveY(int newCurveY)
Sets a new value for this item's center curve Y ccordinate. |
void |
setVerticalOffset(int offset)
Specifies offset to compensate scroll effects or table headers when painting curve. |
void |
setVisibleItem(org.eclipse.swt.widgets.Item newVisibleItem)
Sets the visible item for this instance. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModelContentMergeTabItem(DiffElement diff, org.eclipse.swt.widgets.Item actual, org.eclipse.swt.widgets.Item visible, java.lang.String drawingColor)
diff
- Difference represented by this item.actual
- The effective item this instance describes.visible
- The visible item this instance holds UI information for. Defaults as actual if
null
.drawingColor
- Key of the color to use when drawing UI components for this item.public ModelContentMergeTabItem(DiffElement diff, org.eclipse.swt.widgets.Item actual, org.eclipse.swt.widgets.Item visible, java.lang.String drawingColor, int curveExpectedY, int curveExpectedSize)
diff
- Difference represented by this item.actual
- The effective item this instance describes.visible
- The visible item this instance holds UI information for. Defaults as actual if
null
.drawingColor
- Key of the color to use when drawing UI components for this item.curveExpectedY
- Y coordinate of the center curve for this item.curveExpectedSize
- Size of the center curve for this item.public ModelContentMergeTabItem(DiffElement diff, org.eclipse.swt.widgets.Item actual, java.lang.String drawingColor)
diff
- Difference represented by this item.actual
- The effective item this instance describes.drawingColor
- Key of the color to use when drawing UI components for this item.Method Detail |
---|
public org.eclipse.swt.widgets.Item getActualItem()
public java.lang.String getCurveColor()
If no colors are specified for this item,
org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeViewer#getChangedColor()
will be
used as default.
public int getCurveSize()
If it is not specified or is negative, no curve will be drawn.
public int getCurveY()
If it is not specified or is negative, no curve will be drawn.
public DiffElement getDiff()
public int getVerticalOffset()
public org.eclipse.swt.widgets.Item getVisibleItem()
public void setCurveSize(int newCurveSize)
newCurveSize
- New size to affect to the curve.public void setCurveY(int newCurveY)
newCurveY
- New Y coordinate of the center curve for this point.public void setVerticalOffset(int offset)
offset
- the vertical offsetpublic void setVisibleItem(org.eclipse.swt.widgets.Item newVisibleItem)
newVisibleItem
- New value of the visible Item reference.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |