[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: GlyphView additions
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: GlyphView additions |
Date: |
Wed, 14 Sep 2005 01:19:00 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.4 |
Hi,
I did work alot an GlyphView (and other stuff in javax.swing.text -- see
followup commits).
This (together with the next view commits) basically enabled this:
http://kennke.org/~roman/styletext.png
2005-09-14 Roman Kennke <address@hidden>
* javax/swing/text/GlyphView.java
(AbstractGlyphPainter.getAscent): New abstract method.
(AbstractGlyphPainter.getDescent): New abstract method.
(AbstractGlyphPainter.getBoundedPosition): New abstract method.
(AbstractGlyphPainter.viewToModel): New abstract method.
(AbstractGlyphPainter.getNextVisualPositionFrom): New method.
(AbstractGlyphPainter.getPainter): New method.
(DefaultGlyphPainter.paint): Add support for more text attributes.
(DefaultGlyphPainter.getAscent): New method.
(DefaultGlyphPainter.getDescent): New method.
(DefaultGlyphPainter.getBoundedPosition): New method.
(DefaultGlyphPainter.viewToModel): New method.
(GlyphView): Store start and end offset in the GlyphView.
(getPreferredSpan): Differentiate the axis parameter.
(viewToModel): Implemented this method.
(getStartOffset): Return value of private field instead of the
element value.
(getEndOffset): Return value of private field instead of the
element value.
(getBackground): New method.
(isStrikeThrough): New method.
(isSubscript): New method.
(isSuperscript): New method.
(isUnderline): New method.
(clone): New method.
(breakView): New method.
(getBreakWeight): New method.
(changedUpdate): New method.
(insertUpdate): New method.
(removeUpdate): New method.
(createFragment): New method.
(getAlignment): New method.
(getNextVisualPositionFrom): New method.
/Roman
GlyphView.diff
Description: Text Data
- [cp-patches] FYI: GlyphView additions,
Roman Kennke <=