facets.core.app
Class HtmlContent.HtmlSelected

java.lang.Object
  extended by facets.core.app.HtmlContent.HtmlSelected
All Implemented Interfaces:
Fonted, Shaded
Enclosing class:
HtmlContent

public static class HtmlContent.HtmlSelected
extends java.lang.Object
implements Fonted

Defines start and end of text selection in rendering and source.


Field Summary
 int codeStart
           
 int codeStop
           
 int renderStart
           
 int renderStop
           
 
Constructor Summary
HtmlContent.HtmlSelected(int renderStart, int renderStop, int codeStart, int codeStop)
           
 
Method Summary
 java.lang.String fontFace()
           
 boolean fontIsBold()
           
 boolean fontIsItalic()
           
 int fontSize()
           
 void setFontBold(boolean bold)
           
 void setFontFace(java.lang.String fontFace)
           
 void setFontItalic(boolean italic)
           
 void setFontSize(int fontSize)
           
 void setShade(Shade shade)
          Set the current colour of the object as a Shade.
 Shade shade()
          The current colour of the object as a Shade.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

renderStart

public final int renderStart

renderStop

public final int renderStop

codeStart

public final int codeStart

codeStop

public final int codeStop
Constructor Detail

HtmlContent.HtmlSelected

public HtmlContent.HtmlSelected(int renderStart,
                                int renderStop,
                                int codeStart,
                                int codeStop)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

shade

public Shade shade()
Description copied from interface: Shaded
The current colour of the object as a Shade.

Specified by:
shade in interface Shaded

setShade

public void setShade(Shade shade)
Description copied from interface: Shaded
Set the current colour of the object as a Shade.

Specified by:
setShade in interface Shaded
Parameters:
shade - must be non-null (to preserve contract semantics)

fontFace

public java.lang.String fontFace()
Specified by:
fontFace in interface Fonted

fontSize

public int fontSize()
Specified by:
fontSize in interface Fonted

fontIsBold

public boolean fontIsBold()
Specified by:
fontIsBold in interface Fonted

fontIsItalic

public boolean fontIsItalic()
Specified by:
fontIsItalic in interface Fonted

setFontFace

public void setFontFace(java.lang.String fontFace)
Specified by:
setFontFace in interface Fonted

setFontSize

public void setFontSize(int fontSize)
Specified by:
setFontSize in interface Fonted

setFontBold

public void setFontBold(boolean bold)
Specified by:
setFontBold in interface Fonted

setFontItalic

public void setFontItalic(boolean italic)
Specified by:
setFontItalic in interface Fonted