[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ff-cvs] libvob/org/nongnu/libvob/lava/placeable TextPla...
From: |
Asko Soukka |
Subject: |
[ff-cvs] libvob/org/nongnu/libvob/lava/placeable TextPla... |
Date: |
Mon, 18 Aug 2003 08:54:12 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Branch:
Changes by: Asko Soukka <address@hidden> 03/08/18 08:54:12
Modified files:
org/nongnu/libvob/lava/placeable: TextPlaceable.java
Log message:
up
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/org/nongnu/libvob/lava/placeable/TextPlaceable.java.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: libvob/org/nongnu/libvob/lava/placeable/TextPlaceable.java
diff -u libvob/org/nongnu/libvob/lava/placeable/TextPlaceable.java:1.1
libvob/org/nongnu/libvob/lava/placeable/TextPlaceable.java:1.2
--- libvob/org/nongnu/libvob/lava/placeable/TextPlaceable.java:1.1 Mon Aug
18 06:34:36 2003
+++ libvob/org/nongnu/libvob/lava/placeable/TextPlaceable.java Mon Aug 18
08:54:11 2003
@@ -1,7 +1,7 @@
/*
Placeable.java
*
- * Copyright (c) 2003, Matti J. Katila
+ * Copyright (c) 2003, Matti J. Katila, Asko Soukka
*
* This file is part of Libvob.
*
@@ -23,18 +23,31 @@
*
*/
/*
- * Written by Matti J. Katila
+ * Written by Matti J. Katila, Asko Soukka
*/
package org.nongnu.libvob.lava.placeable;
import org.nongnu.libvob.*;
-/** Placeable for text to make it easier to put cursor in the VobScene.
+/**
+ * Placeable interface for making it easier to locate
+ * the text cursor and put it into in a VobScene.
*/
public interface TextPlaceable extends Placeable {
-
/**
- * @param position cursor position in text.
- * @param xyOut upper rigth corner of a letter given in position
+ * Get the coordinates before the given character position.
+ * The Y coordinate will be located just below the the line.
+ * @param position The text cursor position.
+ * @param xyOut The lower left corner of the character on
+ * The text cursor's position.
*/
void getCursorXY(int position, float[] xyOut);
+
+ /**
+ * Get the position of the first character placed the most
+ * closest to the given coordinates.
+ * @param x The X coordinate where the text cursor should be located.
+ * @param y The Y coordinate where the text cursor should be located.
+ * @return The text cursor position most closest to the given coordinates.
+ */
+ int getCursorPos(float x, float y);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [ff-cvs] libvob/org/nongnu/libvob/lava/placeable TextPla...,
Asko Soukka <=