|
||||||||||
| 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 also hold UI information about the way connectors should be drawn between tabs.
| Constructor Summary | |
|---|---|
ModelContentMergeTabItem(org.eclipse.swt.widgets.Item actual,
org.eclipse.swt.widgets.Item visible,
java.lang.String drawingColor)
Constructs a wrapper around the given item. |
|
ModelContentMergeTabItem(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(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. |
int |
getHeaderHeight()
Returns the height of the item's control header. |
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 |
setHeaderHeight(int newHeaderHeight)
Returns the value of the item's control header height. |
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(org.eclipse.swt.widgets.Item actual,
org.eclipse.swt.widgets.Item visible,
java.lang.String drawingColor)
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(org.eclipse.swt.widgets.Item actual,
org.eclipse.swt.widgets.Item visible,
java.lang.String drawingColor,
int curveExpectedY,
int curveExpectedSize)
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(org.eclipse.swt.widgets.Item actual,
java.lang.String drawingColor)
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, 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 int getHeaderHeight()
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 setHeaderHeight(int newHeaderHeight)
newHeaderHeight - The value of the item's control header height.public java.lang.String toString()
toString in class java.lang.ObjectObject.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 | |||||||||