public class ColorItem extends Object implements Cloneable
This first implementation only handles index colors.
Constructor and Description |
---|
ColorItem() |
Modifier and Type | Method and Description |
---|---|
ColorItem |
clone()
Clones the ColorItem.
|
Color |
getColor()
Gets the
Color set. |
int |
getIndex()
Gets the index color set.
|
void |
set(Color color)
Sets color index.
|
void |
set(int index)
Sets color index.
|
public void set(int index)
public void set(Color color)
public int getIndex()
Color
is used.public Color getColor()
Color
set.Color
is set, and it could be an index or nothing instead.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.