org.kde.koala
Class KColor

java.lang.Object
  extended by org.kde.qt.QColor
      extended by org.kde.koala.KColor
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KColor
extends org.kde.qt.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

Field Summary
 
Fields inherited from class org.kde.qt.QColor
Dirt, Hsv, Invalid, Rgb
 
Constructor Summary
  KColor()
           
protected KColor(java.lang.Class dummy)
           
  KColor(KColor col)
           
  KColor(org.kde.qt.QColor col)
           
 
Method Summary
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 void hsv(int[] _h, int[] _s, int[] _v)
           
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 boolean op_equals(KColor col)
           
 void rgb(int[] _r, int[] _g, int[] _b)
           
 void setHsv(int _h, int _s, int _v)
           
 void setRgb(int _r, int _g, int _b)
           
 
Methods inherited from class org.kde.qt.QColor
alloc, blue, cleanup, colorNames, currentAllocContext, dark, dark, destroyAllocContext, enterAllocContext, getHsv, getRgb, green, initialize, isDirty, isValid, leaveAllocContext, light, light, maxColors, name, numBitPlanes, op_equals, op_not_equals, pixel, red, rgb, setNamedColor, setRgb
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KColor

protected KColor(java.lang.Class dummy)

KColor

public KColor()

KColor

public KColor(KColor col)

KColor

public KColor(org.kde.qt.QColor col)
Method Detail

op_equals

public boolean op_equals(KColor col)

setHsv

public void setHsv(int _h,
                   int _s,
                   int _v)
Overrides:
setHsv in class org.kde.qt.QColor

setRgb

public void setRgb(int _r,
                   int _g,
                   int _b)
Overrides:
setRgb in class org.kde.qt.QColor

rgb

public void rgb(int[] _r,
                int[] _g,
                int[] _b)
Overrides:
rgb in class org.kde.qt.QColor

hsv

public void hsv(int[] _h,
                int[] _s,
                int[] _v)
Overrides:
hsv in class org.kde.qt.QColor

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class org.kde.qt.QColor
Throws:
java.lang.InternalError

dispose

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

Overrides:
dispose in class org.kde.qt.QColor

isDisposed

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

Overrides:
isDisposed in class org.kde.qt.QColor