|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sos.reports.DefaultTheme
An implementation of Theme
that delegates to an underlying instance of
javax.swing.text.StyleContext
.
Constructor Summary | |
DefaultTheme()
Creates a DefaultTheme with a default name and an empty style context. |
|
DefaultTheme(java.lang.String name)
Creates a DefaultTheme with the specified name and an empty style context. |
|
DefaultTheme(java.lang.String name,
javax.swing.text.StyleContext styleContext)
Creates a DefaultTheme with the specified name and style context. |
|
DefaultTheme(javax.swing.text.StyleContext styleContext)
Creates a DefaultTheme with a default name and the specified style context. |
Method Summary | |
java.lang.String |
getName()
Returns the localized name of this theme. |
javax.swing.text.Style |
getStyle(java.lang.String name)
Returns the style (or null , if none) associated with
the specified name. |
javax.swing.text.StyleContext |
getStyleContext()
Returns the style context to which this theme delegates. |
java.util.Set |
getStyleNames()
Returns the names of all of the styles in this theme. |
java.lang.String |
toString()
Returns a string representation of this theme. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultTheme()
DefaultTheme
with a default name and an empty style context.
DefaultTheme(String,StyleContext)
public DefaultTheme(java.lang.String name)
DefaultTheme
with the specified name and an empty style context.
name
- localized name of this themeDefaultTheme(String,StyleContext)
public DefaultTheme(javax.swing.text.StyleContext styleContext)
styleContext
- style context that holds this theme's stylesDefaultTheme(String,StyleContext)
public DefaultTheme(java.lang.String name, javax.swing.text.StyleContext styleContext)
DefaultTheme
with the specified name and style context.
name
- localized name of this themestyleContext
- style context that holds this theme's styles
java.lang.NullPointerException
- if styleContext
is null
Method Detail |
public java.lang.String getName()
Theme
getName
in interface Theme
public javax.swing.text.Style getStyle(java.lang.String name)
Theme
null
, if none) associated with
the specified name.
getStyle
in interface Theme
name
- name of the style for which to fetch
name
, or null
if
no such style exists in this themepublic javax.swing.text.StyleContext getStyleContext()
public java.util.Set getStyleNames()
Theme
getStyleNames
in interface Theme
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |