Class DefaultStyleBuilder
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.layout.richtext.html.DefaultStyleBuilder
-
- All Implemented Interfaces:
StyleBuilder
public final class DefaultStyleBuilder extends Object implements StyleBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.pentaho.reporting.engine.classic.core.layout.richtext.html.StyleBuilder
StyleBuilder.CSSKeys, StyleBuilder.StyleCarrier
-
-
Constructor Summary
Constructors Constructor Description DefaultStyleBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(StyleBuilder.CSSKeys key, String value)
void
append(StyleBuilder.CSSKeys key, String value, boolean replace)
Appends the style to the list.void
append(StyleBuilder.CSSKeys key, String value, String unit)
void
append(StyleBuilder.CSSKeys key, String value, String unit, boolean replace)
Appends the style to the list.void
appendRaw(StyleBuilder.CSSKeys key, String value)
void
clear()
NumberFormat
getPointConverter()
boolean
isEmpty()
void
print(Writer writer, boolean compact)
String
printCornerAsCSS(BorderCorner edge)
String
printEdgeAsCSS(BorderEdge edge)
StyleBuilder.StyleCarrier[]
toArray()
String
toString()
String
toString(boolean compact)
-
-
-
Field Detail
-
INDENT
public static final String INDENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceStyleBuilder
-
append
public void append(StyleBuilder.CSSKeys key, String value)
- Specified by:
append
in interfaceStyleBuilder
-
appendRaw
public void appendRaw(StyleBuilder.CSSKeys key, String value)
- Specified by:
appendRaw
in interfaceStyleBuilder
-
append
public void append(StyleBuilder.CSSKeys key, String value, String unit)
- Specified by:
append
in interfaceStyleBuilder
-
append
public void append(StyleBuilder.CSSKeys key, String value, boolean replace)
Appends the style to the list. If the replace value isfalse
and the list already contains the key, it will not be replaced.- Specified by:
append
in interfaceStyleBuilder
-
append
public void append(StyleBuilder.CSSKeys key, String value, String unit, boolean replace)
Appends the style to the list. If the replace value iffalse
and the list already contains the key, it will not be replaced.- Specified by:
append
in interfaceStyleBuilder
-
toString
public String toString()
- Specified by:
toString
in interfaceStyleBuilder
- Overrides:
toString
in classObject
-
print
public void print(Writer writer, boolean compact) throws IOException
- Specified by:
print
in interfaceStyleBuilder
- Throws:
IOException
-
toString
public String toString(boolean compact)
- Specified by:
toString
in interfaceStyleBuilder
-
printEdgeAsCSS
public String printEdgeAsCSS(BorderEdge edge)
- Specified by:
printEdgeAsCSS
in interfaceStyleBuilder
-
printCornerAsCSS
public String printCornerAsCSS(BorderCorner edge)
- Specified by:
printCornerAsCSS
in interfaceStyleBuilder
-
getPointConverter
public NumberFormat getPointConverter()
- Specified by:
getPointConverter
in interfaceStyleBuilder
-
toArray
public StyleBuilder.StyleCarrier[] toArray()
- Specified by:
toArray
in interfaceStyleBuilder
- Returns:
- the style carriers as array.
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceStyleBuilder
-
-