| javax.swing.SwingTestCase javax.swing.text.PlainViewTest
PlainViewTest | public class PlainViewTest extends SwingTestCase (Code) | | This class tests PlainView behavior.
This class is initialized with a "real" PlainView that was obtained from
JTextArea placed in JFrame.
|
Method Summary | |
protected void | setUp() Creates JFrame (frame ), puts JTextArea (area )
into it and initializes doc , root ,
view , and shape using JTextArea methods. | protected void | tearDown() | public void | testDrawSelectedText() | public void | testDrawUnselectedText() | public void | testGetPreferredSpan() | public void | testModelToViewintShapeBias01() Generic tests of modelToView(int, Shape, Position.Bias) . | public void | testModelToViewintShapeBias02() Tests modelToView(int, Shape, Position.Bias) when
shape.getBounds().x != 0 and/or
shape.getBounds().y != 0 . | public void | testModelToViewintShapeBias03() Tests modelToView(int, Shape, Position.Bias)
with zero-length document. | public void | testNextTabStop01() Tests nextTabStop method with default tab size of 8. | public void | testViewToModelfloatfloatShapeBiasArray() |
setUp | protected void setUp() throws Exception(Code) | | Creates JFrame (frame ), puts JTextArea (area )
into it and initializes doc , root ,
view , and shape using JTextArea methods.
|
testGetPreferredSpan | public void testGetPreferredSpan()(Code) | | |
testModelToViewintShapeBias01 | public void testModelToViewintShapeBias01() throws BadLocationException(Code) | | Generic tests of modelToView(int, Shape, Position.Bias) .
|
testModelToViewintShapeBias02 | public void testModelToViewintShapeBias02() throws BadLocationException(Code) | | Tests modelToView(int, Shape, Position.Bias) when
shape.getBounds().x != 0 and/or
shape.getBounds().y != 0 .
|
testModelToViewintShapeBias03 | public void testModelToViewintShapeBias03() throws BadLocationException(Code) | | Tests modelToView(int, Shape, Position.Bias)
with zero-length document.
|
testNextTabStop01 | public void testNextTabStop01()(Code) | | Tests nextTabStop method with default tab size of 8.
|
|
|