Record Class PlotTable.Selection
java.lang.Object
java.lang.Record
com.eco.bio7.spatial.PlotTable.Selection
- Enclosing class:
PlotTable
public static record PlotTable.Selection(PlotTable table, String[] roles, int[] columns, PlotTable.Options options)
extends Record
The selected columns of the roles of a plot.
-
Constructor Summary
ConstructorsConstructorDescriptionSelection(PlotTable table, String[] roles, int[] columns, PlotTable.Options options) Creates an instance of aSelectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionApplies the settings of the dialog to a plot: the title, the axis titles, the logarithmic axes and the export action (the color map see colorMap).int[]colorMap()The color map of the dialog (e.g., PlotLegend.VIRIDIS).int[]columns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanhas(int role) True if a column is selected for the role (an optional role can be empty).final inthashCode()Returns a hash code value for this object.name(int role) The name of the column of the role (e.g., for the title of an axis).double[]numbers(int role) The numbers of the column of the role.options()Returns the value of theoptionsrecord component.String[]roles()Returns the value of therolesrecord component.table()Returns the value of thetablerecord component.String[]texts(int role) The texts of the column of the role.title()The title of the dialog (lines separated with \n).final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Selection
Creates an instance of aSelectionrecord class.- Parameters:
table- the value for thetablerecord componentroles- the value for therolesrecord componentcolumns- the value for thecolumnsrecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
apply
-
colorMap
public int[] colorMap()The color map of the dialog (e.g., PlotLegend.VIRIDIS). -
title
The title of the dialog (lines separated with \n). -
has
public boolean has(int role) True if a column is selected for the role (an optional role can be empty). -
numbers
public double[] numbers(int role) The numbers of the column of the role. -
texts
The texts of the column of the role. -
name
The name of the column of the role (e.g., for the title of an axis). -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-
columns
public int[] columns()Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-