Class GFMultilineText
java.lang.Object
org.eclipse.draw2d.Figure
org.eclipse.graphiti.ui.internal.figures.GFMultilineText
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure
public class GFMultilineText
extends org.eclipse.draw2d.Figure
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure
org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch, org.eclipse.draw2d.Figure.ReverseFigureChildrenIteratorNested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
org.eclipse.draw2d.IFigure.NoInsets -
Field Summary
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTipFields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS -
Constructor Summary
ConstructorsConstructorDescriptionGFMultilineText(IPictogramElementDelegate pictogramElementDelegate, MultiText multiText) -
Method Summary
Modifier and TypeMethodDescriptionintgetText()Returns the text inside the TextFlow.intvoidsetHorizontalAligment(int value) Sets the horitontal aligment of the block.voidsetSuppressText(boolean suppressText) voidSets the text of the TextFlow to the given value.voidsetVerticalAligment(int value) Sets the vertical aligment of the block.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, getChildrenRevIterable, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getListenersIterable, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, 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, optimizeClip, 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, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
Constructor Details
-
GFMultilineText
-
-
Method Details
-
getText
Returns the text inside the TextFlow.- Returns:
- the text flow inside the text.
-
setText
Sets the text of the TextFlow to the given value.- Parameters:
newText- the new text value.
-
setHorizontalAligment
public void setHorizontalAligment(int value) Sets the horitontal aligment of the block. Valid values are:NONE- (default) Alignment is inherited from parent. If a parent is not found then LEFT is used.PositionConstants.LEFT- Alignment is with leading edgePositionConstants.RIGHT- Alignment is with trailing edgePositionConstants.CENTERPositionConstants.ALWAYS_LEFT- Left, irrespective of orientationPositionConstants.ALWAYS_RIGHT- Right, irrespective of orientation
- Parameters:
value- the aligment- See Also:
-
getHorizontalAligment
public int getHorizontalAligment() -
setVerticalAligment
public void setVerticalAligment(int value) Sets the vertical aligment of the block. Valid values are:NONE- (default) Alignment is inherited from parent. If a parent is not found then TOP is used.PositionConstants.TOPPositionConstants.BOTTOMPositionConstants.MIDDLE
- Parameters:
value- the aligment- See Also:
-
getVerticalAligment
public int getVerticalAligment() -
setSuppressText
public void setSuppressText(boolean suppressText)
-