org.kde.koala

Class KXYSelector

public class KXYSelector extends QWidget

KXYSelector is the base class for other widgets which provides the ability to choose from a two-dimensional range of values. The currently chosen value is indicated by a cross. An example is the KHSSelector which allows to choose from a range of colors, and which is used in KColorDialog. A custom drawing routine for the widget surface has to be provided by the subclass. See KXYSelectorSignals for signals emitted by KXYSelector

UNKNOWN: KXYSelector is the base class for other widgets which provides the ability to choose from a two-dimensional range of values.

Constructor Summary
protected KXYSelector(Class dummy)
KXYSelector(QWidget parent, String name)
Constructs a two-dimensional selector widget which has a value range of [0..100] in both directions.
KXYSelector(QWidget parent)
KXYSelector()
Method Summary
StringclassName()
QRectcontentsRect()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voiddrawContents(QPainter arg1)
Override this function to draw the contents of the widget.
protected voiddrawCursor(QPainter p, int xp, int yp)
Override this function to draw the cursor which indicates the currently selected value pair.
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
protected voidmouseMoveEvent(QMouseEvent e)
protected voidmousePressEvent(QMouseEvent e)
protected voidpaintEvent(QPaintEvent e)
voidsetRange(int minX, int minY, int maxX, int maxY)
Sets the range of possible values.
voidsetValues(int xPos, int yPos)
Sets the current values in horizontal and vertical direction.
voidsetXValue(int xPos)
Sets the current horizontal value
voidsetYValue(int yPos)
Sets the current vertical value
protected voidvaluesFromPosition(int x, int y, int[] xVal, int[] yVal)
Converts a pixel position to its corresponding values.
protected voidwheelEvent(QWheelEvent arg1)
intxValue()
intyValue()

Constructor Detail

KXYSelector

protected KXYSelector(Class dummy)

KXYSelector

public KXYSelector(QWidget parent, String name)
Constructs a two-dimensional selector widget which has a value range of [0..100] in both directions.

UNKNOWN: Constructs a two-dimensional selector widget which has a value range of [0.

KXYSelector

public KXYSelector(QWidget parent)

KXYSelector

public KXYSelector()

Method Detail

className

public String className()

contentsRect

public QRect contentsRect()

Returns: the rectangle on which subclasses should draw.

UNKNOWN:

dispose

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

drawContents

protected void drawContents(QPainter arg1)
Override this function to draw the contents of the widget. The default implementation does nothing. Draw within contentsRect() only.

UNKNOWN: Override this function to draw the contents of the widget.

drawCursor

protected void drawCursor(QPainter p, int xp, int yp)
Override this function to draw the cursor which indicates the currently selected value pair.

UNKNOWN: Override this function to draw the cursor which indicates the currently selected value pair.

finalize

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

isDisposed

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

metaObject

public QMetaObject metaObject()

mouseMoveEvent

protected void mouseMoveEvent(QMouseEvent e)

mousePressEvent

protected void mousePressEvent(QMouseEvent e)

paintEvent

protected void paintEvent(QPaintEvent e)

setRange

public void setRange(int minX, int minY, int maxX, int maxY)
Sets the range of possible values.

UNKNOWN: Sets the range of possible values.

setValues

public void setValues(int xPos, int yPos)
Sets the current values in horizontal and vertical direction.

Parameters: xPos the horizontal value yPos the veritcal value

UNKNOWN: Sets the current values in horizontal and vertical direction.

setXValue

public void setXValue(int xPos)
Sets the current horizontal value

Parameters: xPos the horizontal value

UNKNOWN: Sets the current horizontal value

setYValue

public void setYValue(int yPos)
Sets the current vertical value

Parameters: yPos the veritcal value

UNKNOWN: Sets the current vertical value

valuesFromPosition

protected void valuesFromPosition(int x, int y, int[] xVal, int[] yVal)
Converts a pixel position to its corresponding values.

UNKNOWN: Converts a pixel position to its corresponding values.

wheelEvent

protected void wheelEvent(QWheelEvent arg1)

xValue

public int xValue()

Returns: the current value in horizontal direction.

UNKNOWN:

yValue

public int yValue()

Returns: the current value in vertical direction.

UNKNOWN: