public class ContentsCreatorColorSettings extends Object implements ContentsCreatorSettings
Constructor and Description |
---|
ContentsCreatorColorSettings() |
Modifier and Type | Method and Description |
---|---|
SerializableProcessingSettings |
createSnapshot()
Create a snapshot copy of this instance.
|
boolean |
equals(Object o) |
Color |
getNonStrokingColor()
Returns the value of nonStrokingColor.
|
Color |
getStrokingColor()
Returns the value of strokingColor.
|
int |
hashCode() |
void |
setColors(Color strokingColor,
Color nonStrokingColor)
Convenience method wrapping
setStrokingColor(Color) and
setNonStrokingColor(Color) . |
void |
setNonStrokingColor(Color nonStrokingColor)
Sets the value of the non stroking color for this
ContentsCreatorColorSettings object. |
void |
setStrokingColor(Color strokingColor)
Sets the value of the stroking color for this
ContentsCreatorColorSettings object. |
ContentsCreatorColorSettings |
withColors(Color strokingColor,
Color nonStrokingColor)
Convenience method wrapping
setStrokingColor(Color) and
setNonStrokingColor(Color) . |
ContentsCreatorColorSettings |
withNonStrokingColor(Color nonStrokingColor)
Sets the value of the non stroking color for this
ContentsCreatorColorSettings object. |
ContentsCreatorColorSettings |
withStrokingColor(Color strokingColor)
Sets the value of the stroking color for this
ContentsCreatorColorSettings object. |
public void setColors(Color strokingColor, Color nonStrokingColor)
setStrokingColor(Color)
and
setNonStrokingColor(Color)
. If a value given is null
the respective part of
the element these ContentsCreatorColorSettings
pertain to will not be painted. For
information on strokingColors and nonStrokingColors see setStrokingColor
resp. setNonStrokingColor
strokingColor
- the strokingColor to be set. This value may be null
.nonStrokingColor
- the nonStrokingColor to be set. This value may be null
.public ContentsCreatorColorSettings withColors(Color strokingColor, Color nonStrokingColor)
setStrokingColor(Color)
and
setNonStrokingColor(Color)
. If a value given is null
the respective part of
the element these ContentsCreatorColorSettings
pertain to will not be painted. For
information on strokingColors and nonStrokingColors see setStrokingColor
resp. setNonStrokingColor
. This method
implements a builder-pattern and returns the object it has been called on.strokingColor
- the strokingColor to be set. This value may be null
.nonStrokingColor
- the nonStrokingColor to be set. This value may be null
.ContentsCreatorColorSettings
object to allow a builder pattern.public Color getStrokingColor()
setStrokingColor
.public void setStrokingColor(Color strokingColor)
ContentsCreatorColorSettings
object. The
stroking color is the color in which the path describing an element (e.g. the border of a
rectangle) will be painted. If the strokingColor is set to null
the path of the
affected element will not be painted. The inner surface of the element may still be painted if
the nonStrokingColor is not null
.strokingColor
- the Color
to be used as stroking color. This value may be
null
.public ContentsCreatorColorSettings withStrokingColor(Color strokingColor)
ContentsCreatorColorSettings
object. The
stroking color is the color in which the path describing an element (e.g. the border of a
rectangle) will be painted. If the strokingColor is set to null
the path of the
affected element will not be painted. The inner surface of the element may still be painted if
the nonStrokingColor is not null
. This method implements a builder-pattern and
returns the object it has been called on.strokingColor
- the Color
to be used as stroking color. This value may be
null
.ContentsCreatorColorSettings
object to allow a builder pattern.public Color getNonStrokingColor()
setNonStrokingColor
.public void setNonStrokingColor(Color nonStrokingColor)
ContentsCreatorColorSettings
object.
The nonStroking color is the color in which those parts of an element will be painted which are
not the path describing the element(e.g. the inner surface of a rectangle) . If the
nonStrokingColor is set to null
the nonStroking part of the affected element will
not be painted. The path of the element might still be painted if the strokingColor is not set to
null
.nonStrokingColor
- the Color
to be used as nonStroking color. This value may be
null
.public ContentsCreatorColorSettings withNonStrokingColor(Color nonStrokingColor)
ContentsCreatorColorSettings
object.
The nonStroking color is the color in which those parts of an element will be painted which are
not the path describing the element(e.g. the inner surface of a rectangle) . If the
nonStrokingColor is set to null
the nonStroking part of the affected element will
not be painted. The path of the element might still be painted if the strokingColor is not set to
null
. This method implements a builder-pattern and returns the object it has been
called on.nonStrokingColor
- the Color
to be used as nonStroking color. This value may be
null
.ContentsCreatorColorSettings
object to allow a builder pattern.public SerializableProcessingSettings createSnapshot()
SerializableProcessingSettings
createSnapshot
in interface ProcessingSettings
createSnapshot
in interface SerializableProcessingSettings
Copyright © 2024 levigo holding gmbh. All rights reserved.