|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com.tensegrity.gui.swt.repository.AbstractSwtRepositoryItem
com.tensegrity.gui.swt.repository.VisualGraphObjectSwtRepositoryItem
The VisualGraphObjectSwtRepositoryItem is used to display a
VisualGraphObject in an SWT context.
Additionally to display the VisualGraphObject this VisualGraphObjectSwtRepositoryItem
enables the drag and drop mechanism such that the VisualGraphObject
can be dragged out of the repository item and dropped onto any appropriate
control.
| Field Summary |
| Fields inherited from class com.tensegrity.gui.swt.repository.AbstractSwtRepositoryItem |
DEFAULT_WIDTH_AND_HEIGHT, mouseIn, mousePressed |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
VisualGraphObjectSwtRepositoryItem(org.eclipse.swt.widgets.Composite arg0,
DragContext vgoDragSource,
VisualGraphObject vgo,
java.lang.String tooltip,
int iconWidth,
int iconHeight)
Initializes a repository item with a 1.0 scale factor and no special drag representation but one of vgo.
|
|
VisualGraphObjectSwtRepositoryItem(org.eclipse.swt.widgets.Composite arg0,
DragContext vgoDragSource,
VisualGraphObject vgo,
java.lang.String tooltip,
java.lang.String iconpath,
java.lang.Class resourceclass,
int iconWidth,
int iconHeight)
Initializes a repository item with a 1.0 scale factor and no special drag representation but one of vgo.
|
|
VisualGraphObjectSwtRepositoryItem(org.eclipse.swt.widgets.Composite arg0,
int arg1,
DragContext vgoDragSource,
VisualGraphObject vgo,
VisualGraphObject dragRepresentation,
double scaleFactor,
java.lang.String tooltip,
int iconWidth,
int iconHeight)
Initializes a repository item with a scaleFactor scale
factor and a special drag representation (dragRepresentation).
|
|
| Method Summary | |
void |
dispose()
|
VisualGraphObject[] |
getAdditionalVGOS()
|
java.util.List |
getComposites()
Returns all basecomposites that are referenced by the repository item - The drag representation (which was given as constructor argument) - The base composite used to render the icon - Additional objects that have been added to this item |
protected AbstractSwtDragSourceListener |
getDragListener()
Returns the AbstractSwtDragSourceListener associated to
this repository item.
|
protected java.lang.Object |
getTooltip()
Returns the tooltip for this repository item. |
VisualGraphObject |
getVisualGraphObject()
Returns the associated with this
repository item.
|
void |
revalidateIcon()
Revalidates the icon representation for this repository item after changes to the visual graph object. |
void |
setAdditionalVGOS(VisualGraphObject[] additional_vgos)
|
void |
setIcon(VisualGraphObjectSwtIcon icon)
|
| Methods inherited from class com.tensegrity.gui.swt.repository.AbstractSwtRepositoryItem |
getIconHeight, getIconlabel, getIconWidth, initToolTipGenerator, installDragging, mouseDoubleClick, mouseDown, mouseEnter, mouseExit, mouseHover, mouseUp, setImage, setText |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
checkSubclass, computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public VisualGraphObjectSwtRepositoryItem(org.eclipse.swt.widgets.Composite arg0,
DragContext vgoDragSource,
VisualGraphObject vgo,
java.lang.String tooltip,
int iconWidth,
int iconHeight)
Initializes a repository item with a 1.0 scale factor and no special drag
representation but one of vgo.
arg0 - The parent of this swt CompositevgoDragSource - The DragContext associated with this repository itemvgo - The VisualGraphObject associated with this repository itemtooltip - The tooltip used for this repository itemiconWidth - the icon widthiconHeight - the icon height
public VisualGraphObjectSwtRepositoryItem(org.eclipse.swt.widgets.Composite arg0,
DragContext vgoDragSource,
VisualGraphObject vgo,
java.lang.String tooltip,
java.lang.String iconpath,
java.lang.Class resourceclass,
int iconWidth,
int iconHeight)
Initializes a repository item with a 1.0 scale factor and no special drag
representation but one of vgo.
arg0 - The parent of this swt CompositevgoDragSource - The DragContext associated with this repository itemvgo - The VisualGraphObject associated with this repository itemtooltip - The tooltip used for this repository itemiconpath - the path for the icon (from the location of resourceclass)resourceclass - The resource class for the iconiconWidth - the icon widthiconHeight - the icon height
public VisualGraphObjectSwtRepositoryItem(org.eclipse.swt.widgets.Composite arg0,
int arg1,
DragContext vgoDragSource,
VisualGraphObject vgo,
VisualGraphObject dragRepresentation,
double scaleFactor,
java.lang.String tooltip,
int iconWidth,
int iconHeight)
Initializes a repository item with a scaleFactor scale
factor and a special drag representation (dragRepresentation).
arg0 - The parent of this swt Compositearg1 - the style of this swt Composite
to constructvgoDragSource - The DragContext associated with this repository itemvgo - The VisualGraphObject associated with this repository itemdragRepresentation - The VisualGraphObject representing vgo during
the dragscaleFactor - The scale factor for the dragged objecttooltip - The tooltip used for this repository itemiconWidth - the icon widthiconHeight - the icon height| Method Detail |
public final VisualGraphObject getVisualGraphObject()
Returns the associated with this
repository item.
VisualGraphObject
VisualGraphObject associated with this
repository item.public java.util.List getComposites()
public void setAdditionalVGOS(VisualGraphObject[] additional_vgos)
public VisualGraphObject[] getAdditionalVGOS()
protected AbstractSwtDragSourceListener getDragListener()
AbstractSwtRepositoryItem
Returns the AbstractSwtDragSourceListener associated to
this repository item.
getDragListener in class AbstractSwtRepositoryItemAbstractSwtDragSourceListener associated to
this repository item.protected java.lang.Object getTooltip()
AbstractSwtRepositoryItemReturns the tooltip for this repository item.
getTooltip in class AbstractSwtRepositoryItempublic void dispose()
dispose in class AbstractSwtRepositoryItempublic void revalidateIcon()
public void setIcon(VisualGraphObjectSwtIcon icon)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||