IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.notation
Interface FontStyle

All Superinterfaces:
EObject, Notifier, Style
All Known Subinterfaces:
ShapeStyle, UMLClassifierStyle, UMLComponentStyle, UMLConnectorStyle, UMLFrameStyle, UMLShapeStyle

public interface FontStyle
extends Style

A representation of the model object 'Font Style'.

The font style is a style to be installed on views with text

The following features are supported:

See Also:
NotationPackage.getFontStyle()

Method Summary
 int getFontColor()
          Returns the value of the 'Font Color' attribute.
 int getFontHeight()
          Returns the value of the 'Font Height' attribute.
 String getFontName()
          Returns the value of the 'Font Name' attribute.
 boolean isBold()
          Returns the value of the 'Bold' attribute.
 boolean isItalic()
          Returns the value of the 'Italic' attribute.
 boolean isStrikeThrough()
          Returns the value of the 'Strike Through' attribute.
 boolean isUnderline()
          Returns the value of the 'Underline' attribute.
 void setBold(boolean value)
          Sets the value of the 'Bold' attribute
 void setFontColor(int value)
          Sets the value of the 'Font Color' attribute
 void setFontHeight(int value)
          Sets the value of the 'Font Height' attribute
 void setFontName(String value)
          Sets the value of the 'Font Name' attribute
 void setItalic(boolean value)
          Sets the value of the 'Italic' attribute
 void setStrikeThrough(boolean value)
          Sets the value of the 'Strike Through' attribute
 void setUnderline(boolean value)
          Sets the value of the 'Underline' attribute
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getFontName

public String getFontName()
Returns the value of the 'Font Name' attribute. The default value is "Tahoma".

The fontName property specified the font typeface name

Returns:
the value of the 'Font Name' attribute.
See Also:
setFontName(String), NotationPackage.getFontStyle_FontName()

setFontName

public void setFontName(String value)
Sets the value of the 'Font Name' attribute.

The fontName property specifies the font typeface name

Parameters:
value - the new value of the 'Font Name' attribute.
See Also:
getFontName()

getFontHeight

public int getFontHeight()
Returns the value of the 'Font Height' attribute. The default value is "9".

The fontHeight property specifies the font size

Returns:
the value of the 'Font Height' attribute.
See Also:
setFontHeight(int), NotationPackage.getFontStyle_FontHeight()

setFontHeight

public void setFontHeight(int value)
Sets the value of the 'Font Height' attribute. The fontHeight property specifies the font size

Parameters:
value - the new value of the 'Font Height' attribute.
See Also:
getFontHeight()

isBold

public boolean isBold()
Returns the value of the 'Bold' attribute. The default value is "false".

Returns:
the value of the 'Bold' attribute.
See Also:
setBold(boolean), NotationPackage.getFontStyle_Bold()

setBold

public void setBold(boolean value)
Sets the value of the 'Bold' attribute.

Parameters:
value - the new value of the 'Bold' attribute.
See Also:
isBold()

isItalic

public boolean isItalic()
Returns the value of the 'Italic' attribute. The default value is "false".

Returns:
the value of the 'Italic' attribute.
See Also:
setItalic(boolean), NotationPackage.getFontStyle_Italic()

setItalic

public void setItalic(boolean value)
Sets the value of the 'Italic' attribute.

Parameters:
value - the new value of the 'Italic' attribute.
See Also:
isItalic()

isUnderline

public boolean isUnderline()
Returns the value of the 'Underline' attribute. The default value is "false".

Returns:
the value of the 'Underline' attribute.
See Also:
setUnderline(boolean), NotationPackage.getFontStyle_Underline()

setUnderline

public void setUnderline(boolean value)
Sets the value of the 'Underline' attribute.

Parameters:
value - the new value of the 'Underline' attribute.
See Also:
isUnderline()

isStrikeThrough

public boolean isStrikeThrough()
Returns the value of the 'Strike Through' attribute. The default value is "false".

Returns:
the value of the 'Strike Through' attribute.
See Also:
setStrikeThrough(boolean), NotationPackage.getFontStyle_StrikeThrough()

setStrikeThrough

public void setStrikeThrough(boolean value)
Sets the value of the 'Strike Through' attribute.

Parameters:
value - the new value of the 'Strike Through' attribute.
See Also:
isStrikeThrough()

getFontColor

public int getFontColor()
Returns the value of the 'Font Color' attribute. The default value is "0".

The font color is the color used in painting the texts inside node visuals

Returns:
the value of the 'Font Color' attribute.
See Also:
setFontColor(int), NotationPackage.getFontStyle_FontColor()

setFontColor

public void setFontColor(int value)
Sets the value of the 'Font Color' attribute.

The font color is the color used in painting the texts inside node visuals

Parameters:
value - the new value of the 'Font Color' attribute.
See Also:
getFontColor()

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.