public abstract class AbstractNode extends CrossPoint implements IEObjectReferer, ISelectable
Modifier and Type | Field and Description |
---|---|
static int |
PADDING |
Modifier | Constructor and Description |
---|---|
protected |
AbstractNode(org.eclipse.emf.ecore.EObject eObject,
java.lang.String text,
org.eclipse.swt.graphics.Font font,
org.eclipse.jface.text.Region textRegion) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.eclipse.draw2d.Border |
createBorder() |
org.eclipse.emf.common.util.URI |
getEObjectURI() |
org.eclipse.draw2d.geometry.Dimension |
getMaximumSize() |
protected org.eclipse.swt.graphics.Color |
getSelectedBackgroundColor() |
org.eclipse.jface.text.Region |
getTextRegion() |
protected org.eclipse.swt.graphics.Color |
getUnselectedBackgroundColor() |
boolean |
isSelectable() |
void |
setFont(org.eclipse.swt.graphics.Font f) |
void |
setSelected(boolean isSelected) |
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, paintClientArea, paintFigure, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setClippingStrategy, setConstraint, setCursor, setEnabled, setFocusTraversable, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
public static final int PADDING
protected AbstractNode(org.eclipse.emf.ecore.EObject eObject, java.lang.String text, org.eclipse.swt.graphics.Font font, org.eclipse.jface.text.Region textRegion)
protected abstract org.eclipse.draw2d.Border createBorder()
public void setFont(org.eclipse.swt.graphics.Font f)
setFont
in interface org.eclipse.draw2d.IFigure
setFont
in class org.eclipse.draw2d.Figure
public void setSelected(boolean isSelected)
setSelected
in interface ISelectable
protected org.eclipse.swt.graphics.Color getSelectedBackgroundColor()
protected org.eclipse.swt.graphics.Color getUnselectedBackgroundColor()
public org.eclipse.emf.common.util.URI getEObjectURI()
getEObjectURI
in interface IEObjectReferer
public org.eclipse.jface.text.Region getTextRegion()
getTextRegion
in interface ISelectable
public org.eclipse.draw2d.geometry.Dimension getMaximumSize()
getMaximumSize
in interface org.eclipse.draw2d.IFigure
getMaximumSize
in class org.eclipse.draw2d.Figure
public boolean isSelectable()