public class JHelpGradientHorizontal.Percent extends java.lang.Object implements java.lang.Comparable<JHelpGradientHorizontal.Percent>
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
color
Step color
|
(package private) int |
percent
Step percent
|
| Constructor and Description |
|---|
JHelpGradientHorizontal.Percent(int percent,
int color)
Create a new instance of Percent
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(JHelpGradientHorizontal.Percent percent)
Compare the step with an other one.
|
int |
getColor()
Step color
|
int |
getPercent()
Step percent
|
java.lang.String |
toString()
String representation
Parent documentation: |
JHelpGradientHorizontal.Percent(int percent,
int color)
percent - Percentcolor - Colorpublic int compareTo(JHelpGradientHorizontal.Percent percent)
| < 0 | : | If this step is before the given one |
|---|---|---|
| 0 | : | If this step is equals to the given one |
| > 0 | : | If this step is after to the given one |
compareTo in interface java.lang.Comparable<JHelpGradientHorizontal.Percent>percent - Step to compare withComparable.compareTo(java.lang.Object)public int getColor()
public int getPercent()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()