Package tech.tablesaw.plotly.components
Enum Axis.ScaleAnchor
- All Implemented Interfaces:
Serializable,Comparable<Axis.ScaleAnchor>,java.lang.constant.Constable
- Enclosing class:
- Axis
If set to another axis id (e.g. `x2`, `y`), the range of this axis changes together with the
range of the corresponding axis such that the scale of pixels per unit is in a constant ratio.
Both axes are still zoomable, but when you zoom one, the other will zoom the same amount,
keeping a fixed midpoint. `constrain` and `constraintoward` determine how we enforce the
constraint. You can chain these, ie `yaxis: {scaleanchor: "x"}, xaxis2: {scaleanchor: "y"}` but
you can only link axes of the same `type`. The linked axis can have the opposite letter (to
constrain the aspect ratio) or the same letter (to match scales across subplots). Loops
(`yaxis: {scaleanchor: "x"}, xaxis: {scaleanchor: "y"}` or longer) are redundant and the last
constraint encountered will be ignored to avoid possible inconsistent constraints via
`scaleratio`.
TODO: Just make this a string?
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiontoString()static Axis.ScaleAnchorReturns the enum constant of this type with the specified name.static Axis.ScaleAnchor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
X
-
Y
-
-
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
-
toString
- Overrides:
toStringin classEnum<Axis.ScaleAnchor>
-