Package com.smartgwt.client.types
Enum LabelCollapseMode
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<LabelCollapseMode>
,Constable
Strategy to apply when there is too little room for labels to be shown for all data points with comfortable padding
(
FacetChart.minLabelGap
).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionShow all labels regardless, even though they will overlapPick round numbers in the range and show labels for just those numbers.Pick periodic values from the dataset and show labels for those.Show significant time values such as the first day of the month or week. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static LabelCollapseMode
Returns the enum constant of this type with the specified name.static LabelCollapseMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Show all labels regardless, even though they will overlapIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "none". -
TIME
Show significant time values such as the first day of the month or week. Data values in Records must be true Date objects, not Strings.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "time". -
NUMERIC
Pick round numbers in the range and show labels for just those numbers. Best for continuous datasets that are not time-basedIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "numeric". -
SAMPLE
Pick periodic values from the dataset and show labels for those. Best when the there are no particular points that would clearly be the best to labelIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "sample".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-