public class ShadeInfo
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
ShadeInfo(java.lang.String lineKey1,
double value,
Enums.ShadeType type,
java.awt.Color color,
boolean enabled)
Constructor.
|
ShadeInfo(java.lang.String lineKey1,
java.lang.String lineKey2,
double value,
Enums.ShadeType type,
java.awt.Color color,
boolean enabled)
Constructor.
|
ShadeInfo(java.lang.String lineKey1,
java.lang.String lineKey2,
Enums.ShadeType type,
java.awt.Color color,
boolean enabled)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ShadeInfo |
clone()
Creates a clone (copy) of this object.
|
boolean |
equals(java.lang.Object o)
Compares this ShadeInfo object with the given object and returns true if they are equal.
|
java.awt.Color |
getColor()
Gets the color used for drawing the shade.
|
java.lang.String |
getLineKey1()
Gets the key for the first line/path.
|
java.lang.String |
getLineKey2()
Gets the key for the second line/path.
|
Enums.ShadeType |
getShadeType()
Gets the type of shade (above, below, both).
|
double |
getValue()
Gets the absolute value for determining the shade area.
|
boolean |
isEnabled()
Determines if this shade is enabled.
|
public ShadeInfo(java.lang.String lineKey1, double value, Enums.ShadeType type, java.awt.Color color, boolean enabled)
lineKey1
- identifies the line for shadingvalue
- type
- type of shade (above, below, both)color
- shade colorenabled
- true if this shade is enabledpublic ShadeInfo(java.lang.String lineKey1, java.lang.String lineKey2, Enums.ShadeType type, java.awt.Color color, boolean enabled)
lineKey1
- identifies the first line/path for shadinglineKey2
- identifies the second line/path for shadingtype
- type of shade (above, below, both)color
- shade colorenabled
- true if this shade is enabledpublic ShadeInfo(java.lang.String lineKey1, java.lang.String lineKey2, double value, Enums.ShadeType type, java.awt.Color color, boolean enabled)
lineKey1
- identifies the first line/path for shadinglineKey2
- identifies the second line/path for shadingvalue
- type
- type of shade (above, below, both)color
- shade colorenabled
- true if this shade is enabledpublic java.awt.Color getColor()
public boolean isEnabled()
public java.lang.String getLineKey1()
public java.lang.String getLineKey2()
public Enums.ShadeType getShadeType()
public double getValue()
public ShadeInfo clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- object to compare to