diff options
author | Roman Kennke <roman@kennke.org> | 2005-08-02 09:33:36 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2005-08-02 09:33:36 +0000 |
commit | 155bda141c9949e18f3acbed48bfc54cbdd037c2 (patch) | |
tree | 7659a48da1c91330284899b013bc7fcb7567b002 /javax/swing/text/PlainView.java | |
parent | 85ddf928f203f51365829d325f0241dd2b3ccd5a (diff) | |
download | classpath-155bda141c9949e18f3acbed48bfc54cbdd037c2.tar.gz |
2005-08-02 Roman Kennke <roman@kennke.org>
* javax/swing/plaf/basic/BasicTextUI.java
(RootView.viewToModel): New method.
* javax/swing/text/BoxView.java
(isBefore): New method. This is a stub method to implement the
new abstract method from CompositeView.
(isAfter): New method. This is a stub method to implement the
new abstract method from CompositeView.
(getViewAtPoint): New method. This is a stub method to implement the
new abstract method from CompositeView.
(childAllocation): New method. This is a stub method to implement the
new abstract method from CompositeView.
* javax/swing/text/ComponentView.java
(viewToModel): New method. This is a stub method to implement the
new abstract method from View.
* javax/swing/text/CompositeView.java
(loadChildren): Implemented new method.
(setParent): Implemented new method.
(getViewCount): Implemented new method.
(getView): Implemented new method.
(replace): Implemented new method.
(getChildAllocation): Implemented new method.
(modelToView(int, Shape, Position.Bias)): Implemented this method.
(modelToView(int, Position.Bias, int, Position.Bias, Shape):
Implemented new method.
(viewToModel): Implemented new method.
(getNextVisualPositionFrom): Implemented new method.
(getViewIndex): Implemented new method.
(isBefore): New abstract method.
(isAfter): New abstract method.
(getViewAtPoint): New abstract method.
(childAllocation): New abstract method.
(getViewAtPosition): Implemented new method.
(getViewIndexAtPosition): Implemented new method.
(getInsideAllocation): Implemented new method.
(setParagraphInsets): Implemented new method.
(setInsets): Implemented new method.
(getLeftInset): Implemented new method.
(getRightInset): Implemented new method.
(getTopInset): Implemented new method.
(getBottomInset): Implemented new method.
(getNextNorthSouthVisualPositionFrom): New method.
(getNextEastWestVisualPositionFrom): New method.
(flipEastAndWestAtEnds): Implemented new method.
* javax/swing/text/GlyphView.java
(viewToModel): New method. This is a stub method to implement the
new abstract method from View.
* javax/swing/text/IconView.java
(viewToModel): New method. This is a stub method to implement the
new abstract method from View.
* javax/swing/text/PlainView.java
(viewToModel): New method. This is a stub method to implement the
new abstract method from View.
* javax/swing/text/View.java
(viewToModel): New abstract method.
Diffstat (limited to 'javax/swing/text/PlainView.java')
-rw-r--r-- | javax/swing/text/PlainView.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/javax/swing/text/PlainView.java b/javax/swing/text/PlainView.java index 5d1fab000..35909593c 100644 --- a/javax/swing/text/PlainView.java +++ b/javax/swing/text/PlainView.java @@ -237,5 +237,23 @@ public class PlainView extends View return span; } + + /** + * Maps coordinates from the <code>View</code>'s space into a position + * in the document model. + * + * @param x the x coordinate in the view space + * @param y the y coordinate in the view space + * @param a the allocation of this <code>View</code> + * @param b the bias to use + * + * @return the position in the document that corresponds to the screen + * coordinates <code>x, y</code> + */ + public int viewToModel(float x, float y, Shape a, Position.Bias b) + { + // FIXME: Implement this properly. + return 0; + } } |