Package org.primefaces.model.charts
Class ChartFont
java.lang.Object
org.primefaces.model.charts.ChartFont
- All Implemented Interfaces:
Serializable
Chart Font representation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()
Write the options of fontgetSize()
getStyle()
void
void
setLineHeight
(Object lineHeight) void
void
void
boolean
Detect if any 1 field is set we should render.void
write
(FastStringWriter writer) Write this font out to the writer.void
write
(FastStringWriter writer, String name, boolean hasComma) Write this font out to the writer.
-
Constructor Details
-
ChartFont
public ChartFont()
-
-
Method Details
-
getFamily
-
setFamily
-
getSize
-
setSize
-
getStyle
-
setStyle
-
getWeight
-
setWeight
-
getLineHeight
-
setLineHeight
-
shouldRender
public boolean shouldRender()Detect if any 1 field is set we should render.- Returns:
- true if should be rendered
-
write
Write this font out to the writer.- Parameters:
writer
- the writer to print to.- Throws:
IOException
- If an I/O error occurs
-
write
Write this font out to the writer.- Parameters:
writer
- the writer to print to.- Throws:
IOException
- If an I/O error occurs
-
encode
Write the options of font- Returns:
- options as JSON object
- Throws:
IOException
- If an I/O error occurs
-