public class CustomOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CustomOptions.DataItem
Enumerator to differentiate the different types of events/sample statistics to represent.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.awt.Color> |
defaultColors |
private java.util.ArrayList<java.lang.String> |
defaultGroup0Items |
private java.util.ArrayList<java.lang.String> |
defaultGroup1Items |
private java.util.ArrayList<java.lang.String> |
defaultGroup2Items |
private java.util.ArrayList<java.lang.String> |
defaultGroup3Items |
private java.util.ArrayList<java.lang.String> |
defaultGroup4Items |
private java.util.ArrayList<java.lang.String> |
defaultGroup5Items |
private java.util.ArrayList<java.lang.String> |
defaultGroup6Items |
private java.util.List<java.lang.String> |
defaultNames |
private static org.slf4j.Logger |
log |
Constructor and Description |
---|
CustomOptions()
Constructor for custom options.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<CustomOptions.DataItem> |
getDataItems(int n)
Gets the items contained at the specified location.
|
java.awt.Color |
getGroupColor(int n)
Gets the color of the group with the specified index.
|
java.lang.String |
getGroupName(int n)
Gets the name of the specified index.
|
void |
setDefaultOptions()
Reset options to default values
|
void |
setGroupColor(int n,
java.awt.Color color)
Sets the color of the group with the specified index.
|
void |
setGroupDataItems(int n,
java.lang.Object[] items)
Sets the group at n so it contains the specified objects.
|
void |
setGroupName(int n,
java.lang.String name)
Sets the name for the group with the specified index.
|
private static final org.slf4j.Logger log
private java.util.ArrayList<java.lang.String> defaultGroup0Items
private java.util.ArrayList<java.lang.String> defaultGroup1Items
private java.util.ArrayList<java.lang.String> defaultGroup2Items
private java.util.ArrayList<java.lang.String> defaultGroup3Items
private java.util.ArrayList<java.lang.String> defaultGroup4Items
private java.util.ArrayList<java.lang.String> defaultGroup5Items
private java.util.ArrayList<java.lang.String> defaultGroup6Items
private java.util.List<java.awt.Color> defaultColors
private java.util.List<java.lang.String> defaultNames
public CustomOptions()
public java.util.List<CustomOptions.DataItem> getDataItems(int n)
n
- the index of the group to get.public void setGroupDataItems(int n, java.lang.Object[] items)
n
- the index of the of the group to update.items
- the array of objects to put in the group.public java.lang.String getGroupName(int n)
n
- index of the group to get the name of.public void setGroupName(int n, java.lang.String name)
n
- the index of the group to change the name of.name
- the name to set the group's name to.public java.awt.Color getGroupColor(int n)
n
- the index of the group to get the color of.public void setGroupColor(int n, java.awt.Color color)
n
- the index of the group to change the color of.color
- the color to set the group's color to.public void setDefaultOptions()