public class ContentsCreatorDrawModeSettings extends Object implements ContentsCreatorSettings
ContentsCreatorControls
object. This class uses a builder-pattern for the setters to
simplify the use of the setters.Modifier and Type | Class and Description |
---|---|
static class |
ContentsCreatorDrawModeSettings.DrawMode |
Constructor and Description |
---|
ContentsCreatorDrawModeSettings() |
Modifier and Type | Method and Description |
---|---|
SerializableProcessingSettings |
createSnapshot()
Create a snapshot copy of this instance.
|
boolean |
equals(Object o) |
ContentsCreatorDrawModeSettings.DrawMode |
getDrawMode()
Returns the drawMode currently set.
|
Stroke |
getStroke()
Returns the value of the stroke set in this
ContentsCreatorDrawModeSettings instance. |
int |
hashCode() |
void |
setDrawMode(ContentsCreatorDrawModeSettings.DrawMode drawMode)
Sets the mode in which an element might be drawn to one of the following values.
|
void |
setStroke(Stroke stroke)
Sets the
Stroke with which an Element shall be drawn. |
ContentsCreatorDrawModeSettings |
withDrawMode(ContentsCreatorDrawModeSettings.DrawMode drawMode)
Sets the mode in which an element might be drawn to one of the following values.
|
ContentsCreatorDrawModeSettings |
withStroke(Stroke stroke)
Sets the
Stroke with which an Element shall be drawn. |
public ContentsCreatorDrawModeSettings.DrawMode getDrawMode()
public void setDrawMode(ContentsCreatorDrawModeSettings.DrawMode drawMode)
drawMode
- the ContentsCreatorDrawModeSettings.DrawMode
to use. This parameter must not be null.public ContentsCreatorDrawModeSettings withDrawMode(ContentsCreatorDrawModeSettings.DrawMode drawMode)
drawMode
- the ContentsCreatorDrawModeSettings.DrawMode
to use. This parameter must not be null.ContentsCreatorDrawModeSettings
object to allow a builder pattern.public Stroke getStroke()
ContentsCreatorDrawModeSettings
instance. If
the stroke has not been set explicitly the stroke is null
.public void setStroke(Stroke stroke)
Stroke
with which an Element shall be drawn. For more information on Strokes in
the java.awt-context see Stroke
.stroke
- The stroke to be used to draw an element which is to be drawn using this
ContentsCreatorDrawModeSettings
instance. This value can be set to
null
.public ContentsCreatorDrawModeSettings withStroke(Stroke stroke)
Stroke
with which an Element shall be drawn. For more information on Strokes in
the java.awt-context see Stroke
. This method implements a builder-pattern and returns the
object it has been called on.stroke
- The stroke to be used to draw an element which is to be drawn using this
ContentsCreatorDrawModeSettings
instance. This value can be set to
null
.ContentsCreatorDrawModeSettings
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.