[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ff-cvs] libvob/org/nongnu/libvob/vobs SelectListVob.java
From: |
Matti Katila |
Subject: |
[ff-cvs] libvob/org/nongnu/libvob/vobs SelectListVob.java |
Date: |
Tue, 26 Aug 2003 05:12:12 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Branch:
Changes by: Matti Katila <address@hidden> 03/08/26 05:12:12
Modified files:
org/nongnu/libvob/vobs: SelectListVob.java
Log message:
clean scale out - use coordsystems instead
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/org/nongnu/libvob/vobs/SelectListVob.java.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
Patches:
Index: libvob/org/nongnu/libvob/vobs/SelectListVob.java
diff -u libvob/org/nongnu/libvob/vobs/SelectListVob.java:1.5
libvob/org/nongnu/libvob/vobs/SelectListVob.java:1.6
--- libvob/org/nongnu/libvob/vobs/SelectListVob.java:1.5 Mon Aug 25
16:33:00 2003
+++ libvob/org/nongnu/libvob/vobs/SelectListVob.java Tue Aug 26 05:12:12 2003
@@ -38,22 +38,16 @@
private static void p(String s) { System.out.println("SelectListVob::
"+s); }
private final SelectItemVob[] items;
- private final float scale;
private final RectBgVob bg;
public SelectListVob(SelectItemVob[] items) {
- this(items, 2.5f);
- }
- public SelectListVob(SelectItemVob[] items, float scale) {
- this(items, scale, new Color(.9f, .9f, 1));
+ this(items, new Color(.9f, .9f, 1));
}
/** @param items the items in list.
- * @param scale scales the list XXX not implemented!
* @param bgColor background color of list
*/
- public SelectListVob(SelectItemVob[] items, float scale, Color bgColor) {
+ public SelectListVob(SelectItemVob[] items, Color bgColor) {
this.items = items;
- this.scale = scale;
this.bg = new RectBgVob(bgColor);
}
@@ -144,7 +138,7 @@
private boolean miss(float x, float y) {
if (x < 0 || x > xRatio * getWidth() ||
y < 0 || y > yRatio * getHeight()) {
- p("miss");
+ if (dbg) p("miss");
return true;
} return false;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [ff-cvs] libvob/org/nongnu/libvob/vobs SelectListVob.java,
Matti Katila <=