org.kde.koala
public class KPalette extends Object implements QtSupport
UNKNOWN: Class for handling Palettes.
Field Summary | |
---|---|
static int | Ask |
static int | No |
static int | Yes
Used to specify whether a palette may be edited. |
Constructor Summary | |
---|---|
protected | KPalette(Class dummy) |
KPalette(String name)
KPalette constructor. | |
KPalette() | |
KPalette(KPalette arg1)
KPalette copy constructor. |
Method Summary | |
---|---|
int | addColor(QColor newColor, String newColorName)
Add a color. |
int | addColor(QColor newColor) |
int | changeColor(int index, QColor newColor, String newColorName)
Change a color. |
int | changeColor(int index, QColor newColor) |
int | changeColor(QColor oldColor, QColor newColor, String newColorName)
Change a color. |
int | changeColor(QColor oldColor, QColor newColor) |
QColor | color(int index)
Find color by index. |
String | colorName(int index)
Find color name by index. |
String | colorName(QColor color)
Find color name by color. |
String | description()
Get the description of the palette. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
int | editable()
Returns whether the palette may be edited. |
protected void | finalize() Deletes the wrapped C++ instance |
int | findColor(QColor color)
Find index by color. |
static ArrayList | getPaletteList()
Query which KDE palettes are installed. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
String | name()
Get the name of the palette. |
int | nrColors()
Return the number of colors in the palette. |
boolean | save()
Save the palette |
void | setDescription(String desc)
Set the description of the palette. |
void | setEditable(int editable)
Change whether the palette may be edited. |
void | setName(String name)
Set the name of the palette. |
UNKNOWN: Used to specify whether a palette may be edited.
Parameters: name The name of palette as returned by getPaletteList()
UNKNOWN: KPalette constructor.
UNKNOWN: KPalette copy constructor.
Parameters: newColor The color to add. newColorName The name of the color, null to remove the name.
Returns: The index of the added color.
UNKNOWN: Add a color.
Parameters: index Index of the color to change newColor The new color. newColorName The new color name, null to remove the name.
Returns: The index of the new color or -1 if the color couldn't be changed.
UNKNOWN: Change a color.
Parameters: oldColor The original color newColor The new color. newColorName The new color name, null to remove the name.
Returns: The index of the new color or -1 if the color couldn't be changed.
UNKNOWN: Change a color.
Parameters: index the index of the desired color
Returns: The index
-th color of the palette, null if not found.
UNKNOWN: Find color by index.
index.
Parameters: index the index of the color
Returns: The name of the index
-th color.
Note that not all palettes have named the colors. Null is
returned if the color does not exist or has no name.
UNKNOWN: Find color name by index.
color.
Returns: The name of color according to this palette. Note that not all palettes have named the colors. Note also that each palette can give the same color a different name.
UNKNOWN: Find color name by color.
Returns: the description of the palette.
UNKNOWN: Get the description of the palette.
Returns: the state of the palette
UNKNOWN: Returns whether the palette may be edited.
color.
Parameters: color the color to find
Returns: The index of the color in the palette or -1 if the color is not found.
UNKNOWN: Find index by color.
Returns: A list with a palette names.
UNKNOWN: Query which KDE palettes are installed.
Returns: the name of the palette
UNKNOWN: Get the name of the palette.
Returns: the number of colors
UNKNOWN: Return the number of colors in the palette.
Returns: 'true' if successful
UNKNOWN: Save the palette
Parameters: desc the new description
UNKNOWN: Set the description of the palette.
Parameters: editable the state of the palette
UNKNOWN: Change whether the palette may be edited.
Parameters: name the name of the palette
UNKNOWN: Set the name of the palette.