public class NPPVColor extends Object
Constructor and Description |
---|
NPPVColor()
Empty constructor, no color set.
|
NPPVColor(NPPVColor org)
Copy constructor.
|
NPPVColor(Transaction trans)
Create color object and set value from transaction.
|
Modifier and Type | Method and Description |
---|---|
void |
appendTrans(Transaction trans)
Append color to transaction.
|
int |
getIndex()
Get color index.
|
int |
getValue()
Get RGB value.
|
boolean |
isIndex()
Checks if the color is index-based.
|
void |
setIndex(int index)
Set color index.
|
void |
setValue(int value)
Set RGB value.
|
public NPPVColor()
public NPPVColor(NPPVColor org)
public NPPVColor(Transaction trans)
public boolean isIndex()
public int getIndex()
public int getValue()
public void setIndex(int index)
index
- Color index 0-126.public void setValue(int value)
value
- 0x00000 to 0xFFFFFF.public void appendTrans(Transaction trans)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.