public class GFMultilineText
extends org.eclipse.draw2d.Figure
Constructor and Description |
---|
GFMultilineText(IPictogramElementDelegate pictogramElementDelegate,
MultiText multiText) |
Modifier and Type | Method and Description |
---|---|
int |
getHorizontalAligment() |
java.lang.String |
getText()
Returns the text inside the TextFlow.
|
int |
getVerticalAligment() |
void |
setHorizontalAligment(int value)
Sets the horitontal aligment of the block.
|
void |
setSuppressText(boolean suppressText) |
void |
setText(java.lang.String newText)
Sets the text of the TextFlow to the given value.
|
void |
setVerticalAligment(int value)
Sets the vertical aligment of the block.
|
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, 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, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setClippingStrategy, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
public GFMultilineText(IPictogramElementDelegate pictogramElementDelegate, MultiText multiText)
public java.lang.String getText()
public void setText(java.lang.String newText)
newText
- the new text value.public void setHorizontalAligment(int value)
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.CENTER
PositionConstants.ALWAYS_LEFT
- Left, irrespective of
orientationPositionConstants.ALWAYS_RIGHT
- Right, irrespective of
orientationvalue
- the aligmentgetHorizontalAligment()
public int getHorizontalAligment()
public void setVerticalAligment(int value)
NONE
- (default) Alignment is
inherited from parent. If a parent is not found then TOP is used.PositionConstants.TOP
PositionConstants.BOTTOM
PositionConstants.MIDDLE
value
- the aligmentgetVerticalAligment()
public int getVerticalAligment()
public void setSuppressText(boolean suppressText)