|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
org.eclipse.graphiti.mm.algorithms.styles.impl.TextStyleImpl
public class TextStyleImpl
An implementation of the model object 'Text Style'.
The following features are implemented:
Field Summary | |
---|---|
protected Color |
background
The cached value of the ' Background ' reference. |
protected Font |
font
The cached value of the ' Font ' reference. |
protected Color |
foreground
The cached value of the ' Foreground ' reference. |
protected boolean |
strikeout
The cached value of the ' Strikeout ' attribute. |
protected static boolean |
STRIKEOUT_EDEFAULT
The default value of the ' Strikeout ' attribute. |
protected Color |
strikeoutColor
The cached value of the ' Strikeout Color ' reference. |
protected boolean |
underline
The cached value of the ' Underline ' attribute. |
protected static boolean |
UNDERLINE_EDEFAULT
The default value of the ' Underline ' attribute. |
protected static UnderlineStyle |
UNDERLINE_STYLE_EDEFAULT
The default value of the ' Underline Style ' attribute. |
protected Color |
underlineColor
The cached value of the ' Underline Color ' reference. |
protected UnderlineStyle |
underlineStyle
The cached value of the ' Underline Style ' attribute. |
Constructor Summary | |
---|---|
protected |
TextStyleImpl()
|
Method Summary | |
---|---|
Color |
basicGetBackground()
|
Font |
basicGetFont()
|
Color |
basicGetForeground()
|
Color |
basicGetStrikeoutColor()
|
Color |
basicGetUnderlineColor()
|
Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
Color |
getBackground()
|
Font |
getFont()
|
Color |
getForeground()
|
Color |
getStrikeoutColor()
|
Color |
getUnderlineColor()
|
UnderlineStyle |
getUnderlineStyle()
|
boolean |
isStrikeout()
|
boolean |
isUnderline()
|
void |
setBackground(Color newBackground)
|
void |
setFont(Font newFont)
|
void |
setForeground(Color newForeground)
|
void |
setStrikeout(boolean newStrikeout)
|
void |
setStrikeoutColor(Color newStrikeoutColor)
|
void |
setUnderline(boolean newUnderline)
|
void |
setUnderlineColor(Color newUnderlineColor)
|
void |
setUnderlineStyle(UnderlineStyle newUnderlineStyle)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final boolean UNDERLINE_EDEFAULT
Underline
' attribute.
isUnderline()
,
Constant Field Valuesprotected boolean underline
Underline
' attribute.
isUnderline()
protected static final UnderlineStyle UNDERLINE_STYLE_EDEFAULT
Underline Style
' attribute.
getUnderlineStyle()
protected UnderlineStyle underlineStyle
Underline Style
' attribute.
getUnderlineStyle()
protected static final boolean STRIKEOUT_EDEFAULT
Strikeout
' attribute.
isStrikeout()
,
Constant Field Valuesprotected boolean strikeout
Strikeout
' attribute.
isStrikeout()
protected Font font
Font
' reference.
getFont()
protected Color foreground
Foreground
' reference.
getForeground()
protected Color background
Background
' reference.
getBackground()
protected Color underlineColor
Underline Color
' reference.
getUnderlineColor()
protected Color strikeoutColor
Strikeout Color
' reference.
getStrikeoutColor()
Constructor Detail |
---|
protected TextStyleImpl()
Method Detail |
---|
protected EClass eStaticClass()
public boolean isUnderline()
isUnderline
in interface TextStyle
TextStyle.setUnderline(boolean)
,
StylesPackage.getTextStyle_Underline()
public void setUnderline(boolean newUnderline)
setUnderline
in interface TextStyle
newUnderline
- the new value of the 'Underline' attribute.TextStyle.isUnderline()
public UnderlineStyle getUnderlineStyle()
getUnderlineStyle
in interface TextStyle
UnderlineStyle
,
TextStyle.setUnderlineStyle(UnderlineStyle)
,
StylesPackage.getTextStyle_UnderlineStyle()
public void setUnderlineStyle(UnderlineStyle newUnderlineStyle)
setUnderlineStyle
in interface TextStyle
newUnderlineStyle
- the new value of the 'Underline Style' attribute.UnderlineStyle
,
TextStyle.getUnderlineStyle()
public boolean isStrikeout()
isStrikeout
in interface TextStyle
TextStyle.setStrikeout(boolean)
,
StylesPackage.getTextStyle_Strikeout()
public void setStrikeout(boolean newStrikeout)
setStrikeout
in interface TextStyle
newStrikeout
- the new value of the 'Strikeout' attribute.TextStyle.isStrikeout()
public Font getFont()
getFont
in interface TextStyle
TextStyle.setFont(Font)
,
StylesPackage.getTextStyle_Font()
public Font basicGetFont()
public void setFont(Font newFont)
setFont
in interface TextStyle
newFont
- the new value of the 'Font' reference.TextStyle.getFont()
public Color getForeground()
getForeground
in interface TextStyle
TextStyle.setForeground(Color)
,
StylesPackage.getTextStyle_Foreground()
public Color basicGetForeground()
public void setForeground(Color newForeground)
setForeground
in interface TextStyle
newForeground
- the new value of the 'Foreground' reference.TextStyle.getForeground()
public Color getBackground()
getBackground
in interface TextStyle
TextStyle.setBackground(Color)
,
StylesPackage.getTextStyle_Background()
public Color basicGetBackground()
public void setBackground(Color newBackground)
setBackground
in interface TextStyle
newBackground
- the new value of the 'Background' reference.TextStyle.getBackground()
public Color getUnderlineColor()
getUnderlineColor
in interface TextStyle
TextStyle.setUnderlineColor(Color)
,
StylesPackage.getTextStyle_UnderlineColor()
public Color basicGetUnderlineColor()
public void setUnderlineColor(Color newUnderlineColor)
setUnderlineColor
in interface TextStyle
newUnderlineColor
- the new value of the 'Underline Color' reference.TextStyle.getUnderlineColor()
public Color getStrikeoutColor()
getStrikeoutColor
in interface TextStyle
TextStyle.setStrikeoutColor(Color)
,
StylesPackage.getTextStyle_StrikeoutColor()
public Color basicGetStrikeoutColor()
public void setStrikeoutColor(Color newStrikeoutColor)
setStrikeoutColor
in interface TextStyle
newStrikeoutColor
- the new value of the 'Strikeout Color' reference.TextStyle.getStrikeoutColor()
public Object eGet(int featureID, boolean resolve, boolean coreType)
public void eSet(int featureID, Object newValue)
public void eUnset(int featureID)
public boolean eIsSet(int featureID)
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |