- All Known Implementing Classes:
TextImpl
A representation of the model object 'Text'.
Text styling.
The following features are supported:
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Alignment' attribute.getColor()Returns the value of the 'Color' attribute.Returns the value of the 'Transform' attribute.Returns the value of the 'Weight' attribute.booleanisItalic()Returns the value of the 'Italic' attribute.booleanReturns the value of the 'Monospace' attribute.booleanisNowrap()Returns the value of the 'Nowrap' attribute.booleanReturns the value of the 'Truncate' attribute.voidsetAlignment(Text.Alignment value) Sets the value of the 'Alignment' attribute.voidSets the value of the 'Color' attribute.voidsetItalic(boolean value) Sets the value of the 'Italic' attribute.voidsetMonospace(boolean value) Sets the value of the 'Monospace' attribute.voidsetNowrap(boolean value) Sets the value of the 'Nowrap' attribute.voidsetTransform(Text.Transform value) Sets the value of the 'Transform' attribute.voidsetTruncate(boolean value) Sets the value of the 'Truncate' attribute.voidsetWeight(Text.Weight value) Sets the value of the 'Weight' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getAlignment
Returns the value of the 'Alignment' attribute. Text alignment.- Returns:
- the value of the 'Alignment' attribute.
- See Also:
-
setAlignment
Sets the value of the 'Alignment' attribute.- Parameters:
value- the new value of the 'Alignment' attribute.- See Also:
-
getColor
Returns the value of the 'Color' attribute. Text bootstrap color.- Returns:
- the value of the 'Color' attribute.
- See Also:
-
setColor
Sets the value of the 'Color' attribute.- Parameters:
value- the new value of the 'Color' attribute.- See Also:
-
getTransform
Returns the value of the 'Transform' attribute. Text case transformation.- Returns:
- the value of the 'Transform' attribute.
- See Also:
-
setTransform
Sets the value of the 'Transform' attribute.- Parameters:
value- the new value of the 'Transform' attribute.- See Also:
-
getWeight
Returns the value of the 'Weight' attribute. Text weight.- Returns:
- the value of the 'Weight' attribute.
- See Also:
-
setWeight
Sets the value of the 'Weight' attribute.- Parameters:
value- the new value of the 'Weight' attribute.- See Also:
-
isMonospace
boolean isMonospace()Returns the value of the 'Monospace' attribute. Monospace flag.- Returns:
- the value of the 'Monospace' attribute.
- See Also:
-
setMonospace
Sets the value of the 'Monospace' attribute.- Parameters:
value- the new value of the 'Monospace' attribute.- See Also:
-
isItalic
boolean isItalic()Returns the value of the 'Italic' attribute. Italic flag.- Returns:
- the value of the 'Italic' attribute.
- See Also:
-
setItalic
Sets the value of the 'Italic' attribute.- Parameters:
value- the new value of the 'Italic' attribute.- See Also:
-
isNowrap
boolean isNowrap()Returns the value of the 'Nowrap' attribute. Prevents text from wrapping.- Returns:
- the value of the 'Nowrap' attribute.
- See Also:
-
setNowrap
Sets the value of the 'Nowrap' attribute.- Parameters:
value- the new value of the 'Nowrap' attribute.- See Also:
-
isTruncate
boolean isTruncate()Returns the value of the 'Truncate' attribute. Use to truncate the text with an ellipsis.- Returns:
- the value of the 'Truncate' attribute.
- See Also:
-
setTruncate
Sets the value of the 'Truncate' attribute.- Parameters:
value- the new value of the 'Truncate' attribute.- See Also:
-