Class IStyledString.Style.StyleBuilder
java.lang.Object
org.eclipse.emf.compare.provider.utils.IStyledString.Style.StyleBuilder
- Enclosing class:
IStyledString.Style
A
IStyledString.Style builder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a new Style instance regarding the values that have been given beforehands.setBackgroundColor(URI pBackgroundColor) Set the background color.setBorderColor(URI pBorderColor) Set the border color.setBorderStyle(IStyledString.Style.BorderStyle pBorderStyle) Set the border color.Set the font.setForegroundColor(URI pForegroundColor) Set the foreground color.setStrikedout(boolean pIsStrikedout) Set the strikedout.setStrikeoutColor(URI pStrikeoutColor) Set the strikeout color.setUnderlineColor(URI pUnderlineColor) Set the underline color.setUnderlineStyle(IStyledString.Style.UnderLineStyle pUnderlineStyle) Set the underline style.
-
Constructor Details
-
StyleBuilder
public StyleBuilder()
-
-
Method Details
-
setFont
Set the font.- Parameters:
pFont- the font to set.- Returns:
- this.
-
setBackgroundColor
Set the background color.- Parameters:
pBackgroundColor- the backgroundColor to set- Returns:
- this.
-
setForegroundColor
Set the foreground color.- Parameters:
pForegroundColor- the forregroundColor to set- Returns:
- this
-
setStrikedout
Set the strikedout.- Parameters:
pIsStrikedout- the isStrikedout to set- Returns:
- this.
-
setStrikeoutColor
Set the strikeout color.- Parameters:
pStrikeoutColor- the strikeoutColor to set- Returns:
- this.
-
setBorderColor
Set the border color.- Parameters:
pBorderColor- the borderColor to set- Returns:
- this.
-
setBorderStyle
public IStyledString.Style.StyleBuilder setBorderStyle(IStyledString.Style.BorderStyle pBorderStyle) Set the border color.- Parameters:
pBorderStyle- the borderStyle to set- Returns:
- this.
-
setUnderlineColor
Set the underline color.- Parameters:
pUnderlineColor- the underlineColor to set- Returns:
- this.
-
setUnderlineStyle
public IStyledString.Style.StyleBuilder setUnderlineStyle(IStyledString.Style.UnderLineStyle pUnderlineStyle) Set the underline style.- Parameters:
pUnderlineStyle- the underlineStyle to set- Returns:
- this.
-
build
Builds and returns a new Style instance regarding the values that have been given beforehands.- Returns:
- a new Style instance regarding the values that have been given beforehands.
-