Package uk.ac.starlink.topcat.plot2
Class SpecialDefault<T>
java.lang.Object
uk.ac.starlink.topcat.plot2.SpecialDefault<T>
Represents a configuration default that is sensitive to the
table whose data it is plotting.
- Since:
- 29 May 2020
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpecialDefault<Integer>
Defaults marker size depending on table row count. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SpecialDefault
(uk.ac.starlink.ttools.plot2.config.ConfigKey<T> key) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract T
getDefaultValue
(TopcatModel tcModel) Returns the default value to apply to this object's config item.uk.ac.starlink.ttools.plot2.config.ConfigKey<T>
getKey()
Returns the config item for which this object operates.
-
Field Details
-
SIZE
Defaults marker size depending on table row count.
-
-
Constructor Details
-
SpecialDefault
Constructor.- Parameters:
key
- config item for which this object operates
-
-
Method Details
-
getKey
Returns the config item for which this object operates.- Returns:
- config key
-
getDefaultValue
Returns the default value to apply to this object's config item.- Parameters:
tcModel
- table- Returns:
- default value appropriate for the supplied table, or null if the normal default is appropriate
-