public class HostColors extends Object
| Modifier and Type | Field and Description |
|---|---|
Color[] | cgaColorsThe array of colors. |
static Color | COLOR_16Default colors (hotspot). |
static Color | COLOR_17 |
| Constructor and Description |
|---|
HostColors()Use default host colors. |
HostColors(HostColors hostColors)Initializes the colors from a HostColors object. |
HostColors(PhantomFile file)Initializes the colors from a file or sets the defaults. |
HostColors(PhantomFile file, boolean old)Initializes the colors from a file (old style) or sets the defaults. |
| Modifier and Type | Method and Description |
|---|---|
void | appendHostColorTransaction(Transaction trans)This method will append the basic color transaction to a transaction so that the client will use that color scheme. |
void | appendHostColorTransactionData(Transaction trans)This method will append the colors to a transaction. |
boolean | equals(HostColors hostColors)Checks if a color scheme equals another one. |
Color | getColor(int index)Access the color for a certain color index. |
int | getColorRGB(int index)Access the RGB color value for a certain color index. |
void | setColor(Color color, int index) |
void | writeToFile(PhantomOutputFile file)Writes the current scheme to the file. |
public static final Color COLOR_16
public static final Color COLOR_17
public Color[] cgaColors
public HostColors(PhantomFile file) throws IOException
IOException - when a file error occurs.public HostColors(PhantomFile file, boolean old) throws IOException
IOException - when a file error occurs.public HostColors(HostColors hostColors)
public HostColors()
public void writeToFile(PhantomOutputFile file) throws IOException
IOException - when a file error occurs.public boolean equals(HostColors hostColors)
public void appendHostColorTransaction(Transaction trans)
public void appendHostColorTransactionData(Transaction trans)
public int getColorRGB(int index)
public Color getColor(int index)
public void setColor(Color color, int index)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.