java.lang.Object
org.bzdev.graphs.Graph.FontParms
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Graph
Class specifying a graph's font parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
double
getAngle()
Get the font angleGet the font vertical alignment.getColor()
Get the font color.getFont()
Get the font.Get the font justification.void
set
(Graph.FontParms parms) Set the parameters to those provided by another instance.void
setAngle
(double angle) Set the font angle.void
setBaseline
(Graph.BLineP blp) Set the font vertical alignment.void
Set the color of a font.void
Set the font.void
Set the font justification.
-
Constructor Details
-
FontParms
public FontParms()Constructor.
-
-
Method Details
-
set
Set the parameters to those provided by another instance.- Parameters:
parms
- a FontParams instance whose parameters should be copied
-
setFont
Set the font.- Parameters:
f
- the font to use
-
getFont
Get the font.- Returns:
- the font
-
setColor
Set the color of a font.- Parameters:
c
- the color; null if the default color should be used
-
getColor
Get the font color.- Returns:
- the font color
-
setJustification
Set the font justification.- Parameters:
j
- the font justification
-
getJustification
Get the font justification.- Returns:
- the justification
-
setBaseline
Set the font vertical alignment.- Parameters:
blp
- the vertical alignment
-
getBaseline
Get the font vertical alignment.- Returns:
- the alignment
-
setAngle
public void setAngle(double angle) Set the font angle. The font angle is measured counterclockwise.- Parameters:
angle
- the angle in degrees
-
getAngle
public double getAngle()Get the font angle- Returns:
- the angle in degrees
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-