| javax.swing.text.CompositeView_ModelViewTest
CompositeView_ModelViewTest | public class CompositeView_ModelViewTest extends TestCase (Code) | | Tests CompositeView methods that deal with model/view conversions.
|
Inner Class :public static class WithChildrenView extends CompositeViewImpl | |
Inner Class :public static class ChildView extends View | |
Inner Class :public static class ChildFactory implements ViewFactory | |
Method Summary | |
protected void | setUp() | public void | testModelToViewintBiasintBiasShape() | public void | testModelToViewintShapeBias() | public void | testViewToModel01() Tests viewToModel(float, float, Shape, Bias[]).
For isBefore, isAfter the Y is used only. | public void | testViewToModel02() Tests viewToModel(float, float, Shape, Bias[]). | public void | testViewToModel03() Tests viewToModel(float, float, Shape, Bias[]). | public void | testViewToModel04() Tests viewToModel(float, float, Shape, Bias[]).
For isBefore, isAfter the Y is used only. | public void | testViewToModel05() |
LINE_HEIGHT | final static int LINE_HEIGHT(Code) | | Height of one child view, or line.
|
POS_WIDTH | final static int POS_WIDTH(Code) | | Width of one position in the view.
|
testViewToModel01 | public void testViewToModel01()(Code) | | Tests viewToModel(float, float, Shape, Bias[]).
For isBefore, isAfter the Y is used only. In this test either
isBefore or isAfter is true.
|
testViewToModel02 | public void testViewToModel02()(Code) | | Tests viewToModel(float, float, Shape, Bias[]).
For isBefore, isAfter (always false in the test) the Y is used only.
|
testViewToModel03 | public void testViewToModel03()(Code) | | Tests viewToModel(float, float, Shape, Bias[]).
The body is the same as in testViewToModel02
(irrelevant asserts are removed) but:
for isBefore and isAfter, the X is used only.
|
testViewToModel04 | public void testViewToModel04()(Code) | | Tests viewToModel(float, float, Shape, Bias[]).
For isBefore, isAfter the Y is used only. In this test either
isBefore or isAfter is true.
In this test modified root is used so that
view.getStartOffset() != 0 and
view.getEndOffset() != doc.getLength() .
|
testViewToModel05 | public void testViewToModel05()(Code) | | |
|
|