public class DataPointColored extends DataPoint
DataColoringManager
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ACTIVATION
Default activation level.
|
Constructor and Description |
---|
DataPointColored(double[] data)
Default constructor for adding datasets.
|
Modifier and Type | Method and Description |
---|---|
void |
decrementActivation(double base,
double decrementAmount)
Decrement the activation of this point (for decay trail coloring).
|
java.awt.Color |
getColor() |
void |
incrementActivation(double ceiling,
double incrementAmount)
Increment the activation of this point (for frequency based coloring).
|
void |
resetActivation()
Reset activation value.
|
void |
setColor(java.awt.Color color)
Use this to manually set color.
|
void |
setColorBasedOnVal(float baseColor)
Set the color of this point based on the activation value.
|
void |
spikeActivation(double ceiling)
Max out the activation of this point (for decay trail coloring).
|
public static final double DEFAULT_ACTIVATION
public DataPointColored(double[] data)
data
- public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the color to setpublic void resetActivation()
public void setColorBasedOnVal(float baseColor)
baseColor
- the base color whose saturation should be modified.public void spikeActivation(double ceiling)
ceiling
- max valuepublic void decrementActivation(double base, double decrementAmount)
base
- lower bound of activationdecrementAmount
- amount by which to decrementpublic void incrementActivation(double ceiling, double incrementAmount)
ceiling
- upper bound of activationincrementAmount
- amount to increment