public class OptionalColorParameter extends OptionalParameter<Color>
Color
OptionalParameter.Deserializer<T>, OptionalParameter.Serializer
Constructor and Description |
---|
OptionalColorParameter()
Creates a new instance
|
OptionalColorParameter(Color color,
boolean enabled) |
OptionalColorParameter(OptionalColorParameter other)
Creates a copy
|
Modifier and Type | Method and Description |
---|---|
Color |
setNewInstance()
Adds a new instance of the content class
Override this method for types that cannot be default-constructed
|
getContent, getContentClass, getContentOrDefault, isEnabled, setContent, setEnabled, toString
public OptionalColorParameter()
public OptionalColorParameter(Color color, boolean enabled)
public OptionalColorParameter(OptionalColorParameter other)
other
- the originalpublic Color setNewInstance()
OptionalParameter
setNewInstance
in class OptionalParameter<Color>
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.