summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-08-08 20:40:49 +0000
committerMark Wielaard <mark@klomp.org>2006-08-08 20:40:49 +0000
commit61cab9b7c774229aa09a35cd9cfcf8d736c982b4 (patch)
tree6381d5c7cbb219b24235c8a549c9999378e408f7 /tools
parent50f69a943fc08be8b1e70973e5b7de2b93821183 (diff)
downloadclasspath-61cab9b7c774229aa09a35cd9cfcf8d736c982b4.tar.gz
2006-08-08 Roman Kennke <kennke@aicas.com>
* javax/swing/plaf/basic/BasicTextUI.java (damageRange(JTextComponent,int,int)): Call damageRange() with correct biases, rather than null. (damageRange(JTextComponent,int,int,Bias,Bias)): Rewritten to use simpler modelToView() approach without much special casing. This seems not worth the effort and actually caused problems. Added locking of the document. * javax/swing/text/BoxView.java (requirementsValid): New field. (calculateMajorAxisRequirements): Rewritten without using SizeRequirements. The SizeRequirements algorithms are slightly different and too inefficient. (calculateMinorAxisRequirements): Rewritten without using SizeRequirements. The SizeRequirements algorithms are slightly different and too inefficient. (getAlignment): Simply return the alignment of the cached requirements. (getMaximumSpan): Add insets. (getMinimumSpan): Add insets. (getPreferredSpan): Add insets. (layoutMajorAxis): Rewritten without using SizeRequirements. The SizeRequirements algorithms are slightly different and too inefficient. (layoutMinorAxis): Rewritten without using SizeRequirements. The SizeRequirements algorithms are slightly different and too inefficient. (modelToView): Call setSize() rather than layout(). (paint): Check clip for more efficient painting. (preferenceChanged): Invalidate requirements here. (replace): Invalidate requirements here. (updateRequirements): Update requirements only when requirements are marked invalid. * javax/swing/text/CompositeView.java (modelToView): Added some more checks and handling of corner cases. * javax/swing/text/FlowView.java (calculateMinorAxisRequirements): Set aligment to 0.5 and maximum span to Integer.MAX_VALUE. Limit preferredSize to minimumSize. * javax/swing/text/IconView.java (getAlignment): Implemented to return 1.0 for vertical alignment. * javax/swing/text/ParagraphView.java (Row.getMaximumSpan): Implemented to let Rows span the whole ParagraphView. (getAlignment): Fixed horizontal alignment and vertical alignment for empty paragraphs to be 0.5. 2006-08-08 Roman Kennke <kennke@aicas.com> * javax/swing/text/View.java (modelToView): Added special handling for corner case at the end of the view and for multiline views. 2006-08-08 Roman Kennke <kennke@aicas.com> * javax/swing/plaf/basic/BasicTextUI.java (modelToView): Read-lock the document. Set size of the root view before fetching the model-to-view mapping. (getViewIndex): Check of the position is inside the range and return -1 if this is not the case. (getViewAtPosition(int,Rectangle): Update child allocation for valid view index. (getViewIndexAtPosition(int)): Delegate the index search to the element since we have a 1:1 mapping between elements and views here. * javax/swing/text/DefaultCaret.java (appear): Ignore BadLocationException. (paint): Ignore BadLocationException. * javax/swing/text/FlowView.java (changedUpdate): Also notify the layoutPool view. (removeUpdate): Also notify the layoutPool view. * javax/swing/text/ParagraphView.java (Row.getViewIndexAtPosition): Overridden to search linearily through the view instead of relying on a 1:1 model to view mapping. * javax/swing/text/View.java (removeUpdate): Clear ElementChange object if updateChildren returns false. (forwardUpdate): Special handle some boundary cases.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions