public class ContentsCreatorTextSettings extends Object implements ContentsCreatorSettings
ContentsCreatorControls
object. This class uses a builder-pattern for the setters to
simplify the use of the setters.Constructor and Description |
---|
ContentsCreatorTextSettings()
Creates a new
ContentsCreatorTextSettings . |
Modifier and Type | Method and Description |
---|---|
SerializableProcessingSettings |
createSnapshot()
Returns a deep snapshot of this settings object.
|
boolean |
equals(Object o) |
Font |
getFont()
Get the
Font defined in this settings object |
double |
getFontSizeInPoint()
Returns the font size with which the text controlled by these settings is displayed.
|
int |
hashCode() |
void |
setFont(Font font)
Set the
Font to be used for the text to be displayed using these settings. |
void |
setFontSizeInPoint(double fontSizeInPoint)
Set the font size in DTP-(PostScript-)point (1/72 inch) to be used to display the text controlled
by this settings object.
|
ContentsCreatorTextSettings |
withFont(Font font)
Set the
Font to be used for the text to be displayed using these settings. |
ContentsCreatorTextSettings |
withFontSizeInPoint(double fontSizeInPoint)
Set the font size in DTP-(PostScript-)point (1/72 inch) to be used to display the text controlled
by this settings object.
|
public ContentsCreatorTextSettings()
ContentsCreatorTextSettings
.public Font getFont()
Font
defined in this settings objectFont
defined in this settings objectpublic void setFont(Font font)
Font
to be used for the text to be displayed using these settings.font
- the FontSource
to be used.IllegalArgumentException
- if the given font is null
public ContentsCreatorTextSettings withFont(Font font)
Font
to be used for the text to be displayed using these settings. This method
implements a builder-pattern and returns the object it has been called on.font
- the FontSource
to be used.ContentsCreatorTextSettings
object to allow a builder pattern.IllegalArgumentException
- if the given font is null
public double getFontSizeInPoint()
public void setFontSizeInPoint(double fontSizeInPoint)
AffineTransform
fontSizeInPoint
- the font size in DTP-(PostScript-)point to be usedIllegalArgumentException
- if the given fontSize is <= 0public ContentsCreatorTextSettings withFontSizeInPoint(double fontSizeInPoint)
AffineTransform
. This method implements a builder-pattern and returns the
object it has been called on.fontSizeInPoint
- the font size in DTP-(PostScript-)point to be usedContentsCreatorTextSettings
object to allow a builder pattern.IllegalArgumentException
- if the given fontSize is <=0public SerializableProcessingSettings createSnapshot()
createSnapshot
in interface ProcessingSettings
createSnapshot
in interface SerializableProcessingSettings
Copyright © 2024 levigo holding gmbh. All rights reserved.