summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KXYSelector.java
blob: 5078e9d8ae9cd8b4741bc9d4c4befb2bd1532836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQRect;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQPaintEvent;
import org.kde.qt.TQPainter;
import org.kde.qt.TQMouseEvent;
import org.kde.qt.TQWidget;
import org.kde.qt.TQWheelEvent;
import org.kde.qt.TQWidget;

/**

 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 {@link KXYSelectorSignals} for signals emitted by KXYSelector
		@short    KXYSelector is the base class for other widgets which  provides the ability to choose from a two-dimensional  range of values.

*/
public class KXYSelector extends TQWidget  {
	protected KXYSelector(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a two-dimensional selector widget which
		 has a value range of [0..100] in both directions.
		   		@short    Constructs a two-dimensional selector widget which  has a value range of [0.
	*/
	public KXYSelector(TQWidget parent, String name) {
		super((Class) null);
		newKXYSelector(parent,name);
	}
	private native void newKXYSelector(TQWidget parent, String name);
	public KXYSelector(TQWidget parent) {
		super((Class) null);
		newKXYSelector(parent);
	}
	private native void newKXYSelector(TQWidget parent);
	public KXYSelector() {
		super((Class) null);
		newKXYSelector();
	}
	private native void newKXYSelector();
	/**	
		 Sets the current values in horizontal and
		 vertical direction.
			@param xPos the horizontal value
			@param yPos the veritcal value
		   		@short    Sets the current values in horizontal and  vertical direction.
	*/
	public native void setValues(int xPos, int yPos);
	/**	
		 Sets the current horizontal value
			@param xPos the horizontal value
		   		@short    Sets the current horizontal value
	*/
	public native void setXValue(int xPos);
	/**	
		 Sets the current vertical value
			@param yPos the veritcal value
		   		@short    Sets the current vertical value
	*/
	public native void setYValue(int yPos);
	/**	
		 Sets the range of possible values.
		   		@short    Sets the range of possible values.
	*/
	public native void setRange(int minX, int minY, int maxX, int maxY);
	/**	
				@return the current value in horizontal direction.
   
		@short
	*/
	public native int xValue();
	/**	
				@return the current value in vertical direction.
   
		@short
	*/
	public native int yValue();
	/**	
				@return the rectangle on which subclasses should draw.
   
		@short
	*/
	public native TQRect contentsRect();
	/**	
		 Override this function to draw the contents of the widget.
		 The default implementation does nothing.
			 Draw within contentsRect() only.
		   		@short    Override this function to draw the contents of the widget.
	*/
	protected native void drawContents(TQPainter arg1);
	/**	
		 Override this function to draw the cursor which
		 indicates the currently selected value pair.
		   		@short    Override this function to draw the cursor which  indicates the currently selected value pair.
	*/
	protected native void drawCursor(TQPainter p, int xp, int yp);
	protected native void paintEvent(TQPaintEvent e);
	protected native void mousePressEvent(TQMouseEvent e);
	protected native void mouseMoveEvent(TQMouseEvent e);
	protected native void wheelEvent(TQWheelEvent arg1);
	/**	
		 Converts a pixel position to its corresponding values.
		   		@short    Converts a pixel position to its corresponding values.
	*/
	protected native void valuesFromPosition(int x, int y, int[] xVal, int[] yVal);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}