Class SyntaxColoringLabel
- java.lang.Object
-
- org.eclipse.draw2d.Figure
-
- org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel
-
- org.yakindu.base.xtext.utils.gmf.figures.SyntaxColoringLabel
-
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure
,org.eclipse.draw2d.MouseMotionListener
,org.eclipse.draw2d.PositionConstants
public class SyntaxColoringLabel extends org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel implements org.eclipse.draw2d.MouseMotionListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SyntaxColoringLabel.StyledTextFlow
-
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure
org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch
-
-
Field Summary
-
Fields inherited from class org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel
MAX_FLAG, preferredTextSize
-
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, border, bounds, fgColor, flags, font, maxSize, minSize, NO_MANAGER, prefSize, toolTip
-
Fields inherited from interface org.eclipse.draw2d.PositionConstants
ALWAYS_LEFT, ALWAYS_RIGHT, BOTTOM, CENTER, EAST, EAST_WEST, HORIZONTAL, LEFT, LEFT_CENTER_RIGHT, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_SOUTH, NORTH_WEST, NSEW, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TOP_MIDDLE_BOTTOM, VERTICAL, WEST
-
-
Constructor Summary
Constructors Constructor Description SyntaxColoringLabel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isHighlight()
void
mouseDragged(org.eclipse.draw2d.MouseEvent me)
void
mouseEntered(org.eclipse.draw2d.MouseEvent me)
void
mouseExited(org.eclipse.draw2d.MouseEvent me)
void
mouseHover(org.eclipse.draw2d.MouseEvent me)
void
mouseMoved(org.eclipse.draw2d.MouseEvent me)
void
setHighlight(boolean highlight)
void
setRanges(StyleRange[] ranges)
protected void
setTextFlow()
void
setZoom(double zoom)
-
Methods inherited from class org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel
calculateLabelSize, getAlignment, getIcon, getIcon, getIconAlignment, getIconLocation, getIconSize, getIconTextGap, getMinimumSize, getNumberofIcons, getPreferredSize, getText, getTextAlignment, getTextBounds, getTextFigure, getTextJustification, getTextPlacement, getTotalIconSize, getTruncationString, hasFocus, hasIcons, invalidate, isSelected, isTextStrikedThrough, isTextTruncated, isTextUnderlined, isTextWrapOn, layout, paintClientArea, paintFigure, setAlignment, setFocus, setFont, setIcon, setIcon, setIconAlignment, setIconLocation, setLayoutManager, setSelected, setText, setTextAlignment, setTextJustification, setTextPlacement, setTextStrikeThrough, setTextUnderline, setTextWrap, toString
-
Methods inherited from class org.eclipse.draw2d.Figure
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, getMaximumSize, getMinimumSize, getParent, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, internalGetEventDispatcher, intersects, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, paint, paintBorder, paintChildren, 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
-
-
-
-
Method Detail
-
setTextFlow
protected void setTextFlow()
-
setZoom
public void setZoom(double zoom)
-
setHighlight
public void setHighlight(boolean highlight)
-
isHighlight
public boolean isHighlight()
-
setRanges
public void setRanges(StyleRange[] ranges)
-
mouseEntered
public void mouseEntered(org.eclipse.draw2d.MouseEvent me)
- Specified by:
mouseEntered
in interfaceorg.eclipse.draw2d.MouseMotionListener
-
mouseExited
public void mouseExited(org.eclipse.draw2d.MouseEvent me)
- Specified by:
mouseExited
in interfaceorg.eclipse.draw2d.MouseMotionListener
-
mouseDragged
public void mouseDragged(org.eclipse.draw2d.MouseEvent me)
- Specified by:
mouseDragged
in interfaceorg.eclipse.draw2d.MouseMotionListener
-
mouseHover
public void mouseHover(org.eclipse.draw2d.MouseEvent me)
- Specified by:
mouseHover
in interfaceorg.eclipse.draw2d.MouseMotionListener
-
mouseMoved
public void mouseMoved(org.eclipse.draw2d.MouseEvent me)
- Specified by:
mouseMoved
in interfaceorg.eclipse.draw2d.MouseMotionListener
-
-