org.kde.koala

Class KColor

public class KColor extends QColor

A color class that preserves both RGB and HSV values. This is unlike QColor which only preserves RGB values and recalculates HSV values. The QColor behavior leads to an accumulation of rounding errors when working in the HSV color space.

Author: Waldo Bastian

UNKNOWN: A color class that preserves both RGB and HSV values.

Constructor Summary
protected KColor(Class dummy)
KColor()
KColor(KColor col)
KColor(QColor col)
Method Summary
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
voidhsv(int[] _h, int[] _s, int[] _v)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanop_equals(KColor col)
voidrgb(int[] _r, int[] _g, int[] _b)
voidsetHsv(int _h, int _s, int _v)
voidsetRgb(int _r, int _g, int _b)

Constructor Detail

KColor

protected KColor(Class dummy)

KColor

public KColor()

KColor

public KColor(KColor col)

KColor

public KColor(QColor col)

Method Detail

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

hsv

public void hsv(int[] _h, int[] _s, int[] _v)

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

op_equals

public boolean op_equals(KColor col)

rgb

public void rgb(int[] _r, int[] _g, int[] _b)

setHsv

public void setHsv(int _h, int _s, int _v)

setRgb

public void setRgb(int _r, int _g, int _b)