diff options
author | Roman Kennke <roman@kennke.org> | 2006-12-03 23:42:33 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2006-12-03 23:42:33 +0000 |
commit | ef6b84aade6d448833cd6803e72298d2f6a46e28 (patch) | |
tree | 547680ac350161d39ccca44d4f9b2059a2aedc87 /javax/swing/text/html/CSS.java | |
parent | 0f9ff258ee247db5f3e60be53caf3a3c2a076e5a (diff) | |
download | classpath-ef6b84aade6d448833cd6803e72298d2f6a46e28.tar.gz |
2006-12-04 Roman Kennke <kennke@aicas.com>
* javax/swing/text/BoxView.java
(paint): Replaced painting algorithm with more simple and more
reliable painting of the box.
* javax/swing/text/html/BlockView.java
(PositionInfo): New inner class. Stores additional CSS positioning
information.
(positionInfo): New field.
(BlockView): Initialize positionInfo field.
(fetchLayoutInfo): New helper method. Fetches additional
CSS positioning information.
(layoutMajorAxis): Perform additional CSS layout.
(layoutMinorAxis): Perform additional CSS layout.
(positionView): New helper method.
(replace): Overridden to fetch additional layout information.
* javax/swing/text/html/CSS.java
(Attribute.POSITION): New field.
(Attribute.LEFT): New field.
(Attribute.RIGHT): New field.
(Attribute.TOP): New field.
(Attribute.BOTTOM): New field.
(getValue): Create Length for left, right, top and bottom
attributes.
Diffstat (limited to 'javax/swing/text/html/CSS.java')
-rw-r--r-- | javax/swing/text/html/CSS.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/javax/swing/text/html/CSS.java b/javax/swing/text/html/CSS.java index 0d1eeb762..294d47fb2 100644 --- a/javax/swing/text/html/CSS.java +++ b/javax/swing/text/html/CSS.java @@ -418,7 +418,17 @@ public class CSS implements Serializable new Attribute("border-right-color", false, null); static final Attribute BORDER_SPACING = new Attribute("border-spacing", false, null); - + static final Attribute POSITION = + new Attribute("position", false, null); + static final Attribute LEFT = + new Attribute("left", false, null); + static final Attribute RIGHT = + new Attribute("right", false, null); + static final Attribute TOP = + new Attribute("top", false, null); + static final Attribute BOTTOM = + new Attribute("bottom", false, null); + /** * The attribute string. */ @@ -522,7 +532,9 @@ public class CSS implements Serializable || att == Attribute.HEIGHT || att == Attribute.PADDING || att == Attribute.PADDING_BOTTOM || att == Attribute.PADDING_LEFT || att == Attribute.PADDING_RIGHT - || att == Attribute.PADDING_TOP) + || att == Attribute.PADDING_TOP + || att == Attribute.LEFT || att == Attribute.RIGHT + || att == Attribute.TOP || att == Attribute.BOTTOM) o = new Length(v); else if (att == Attribute.BORDER_WIDTH || att == Attribute.BORDER_TOP_WIDTH || att == Attribute.BORDER_LEFT_WIDTH |