@JsonData public class DefaultSetting extends java.lang.Object implements Settings
DiffGroup.GroupType
and Settings.EXPORT
are enabled Setting for
Settings.OPTION
are disabled Differencemarker color (Settings.METAOPTION
) are blue AddAndRemoved
Elements are red Modified content are orange Modified styles are red Meta Data changed are light blueSettings.EXPORT, Settings.FILTER, Settings.METAOPTION, Settings.OPTION
IMAGE_SCALE_FACTOR, MAX_ERRORS_PER_FILE
Constructor and Description |
---|
DefaultSetting()
The Defaultsetting with the default values
|
Modifier and Type | Method and Description |
---|---|
Settings |
copy()
Create a copy of the current setting
|
java.util.List<ObjectSetting<?>> |
getAllObjectSettingNames()
Returns all registered additional settings.
|
java.awt.Color |
getColor(com.inet.pdfc.config.ColorSetting colorSetting)
Get the color for a setting
|
java.awt.Color |
getMarkerColor(DiffGroup.GroupType content)
Returns the color of the marker for a difference group of the given type
|
java.awt.Color |
getOutlineColor(DiffGroup.GroupType content)
Returns the color to mark the difference elements inside a difference group of the given type
|
java.lang.Object |
getSetting(java.lang.String setting)
Return the value for this setting
|
boolean |
isEnabled(VisibilitySetting content)
Get the visibility for this setting
|
void |
setColor(java.awt.Color color,
com.inet.pdfc.config.ColorSetting setting)
Set the color for this setting.
|
void |
setEnabled(boolean isVisible,
VisibilitySetting... visibles)
Set the visibility for this setting
|
void |
setMarkerColor(java.awt.Color color,
DiffGroup.GroupType content)
Set the color for the marker.
|
void |
setSetting(java.lang.Object value,
java.lang.String setting)
Set the specific setting with the value
|
public DefaultSetting()
public java.util.List<ObjectSetting<?>> getAllObjectSettingNames()
VisibilitySetting.name()
to the Settings.getSetting(String)
method.getAllObjectSettingNames
in interface Settings
null
public void setMarkerColor(@Nonnull java.awt.Color color, @Nonnull DiffGroup.GroupType content)
ColorProvider.getMarkerColor(DiffGroup.GroupType)
.
(For visible set the alpha to 0)setMarkerColor
in interface Settings
color
- the marker colorcontent
- the group type tp set the marker color forpublic void setColor(java.awt.Color color, @Nonnull com.inet.pdfc.config.ColorSetting setting)
DiffGroup.GroupType
, it overrides the default provided by ColorProvider.getOutlineColor(DiffGroup.GroupType)
).DiffGroup.GroupType
s should be semi-transparent.setColor
in interface Settings
color
- the color to be used to the markupsetting
- the setting key. e.G. a DiffGroup.GroupType
or the Settings.METAOPTION.ALLOUTLINEMARKER
DiffGroup.GroupType
,
Settings.METAOPTION
public void setEnabled(boolean isVisible, @Nonnull VisibilitySetting... visibles)
setEnabled
in interface Settings
isVisible
- true for visible otherwise falsevisibles
- the visibility setting key(s) to update the vsibility forSettings.EXPORT
,
Settings.METAOPTION
,
Settings.OPTION
,
Settings.FILTER
,
DiffGroup.GroupType
public boolean isEnabled(VisibilitySetting content)
isEnabled
in interface Settings
content
- the setting key to get the visibility fortrue
for visible hence false
Settings.EXPORT
,
Settings.METAOPTION
,
Settings.OPTION
,
Settings.FILTER
,
DiffGroup.GroupType
@Nonnull public java.awt.Color getMarkerColor(@Nonnull DiffGroup.GroupType content)
getMarkerColor
in interface ColorProvider
content
- the type of the difference grouppublic java.awt.Color getColor(@Nonnull com.inet.pdfc.config.ColorSetting colorSetting)
@Nullable public java.lang.Object getSetting(java.lang.String setting)
getSetting
in interface Settings
setting
- the setting namepublic void setSetting(@Nullable java.lang.Object value, java.lang.String setting)
setSetting
in interface Settings
value
- value for the setting or null for remove the settingsetting
- the setting name, usually VisibilitySetting.name()
@Nonnull public Settings copy()
@Nonnull public java.awt.Color getOutlineColor(DiffGroup.GroupType content)
getOutlineColor
in interface ColorProvider
content
- the type of the difference groupCopyright © 2010-2022 by i-net software GmbH