| |
|
| java.lang.Object javax.swing.text.ViewTestHelpers
ViewTestHelpers | final public class ViewTestHelpers (Code) | | This is utility class to manage child view creation.
|
Inner Class :public static class ChildView extends View | |
Inner Class :public static class FlexibleChildView extends ChildView | |
Inner Class :public static class ElementPartView extends ChildView | |
Inner Class :public static class ChildrenFactory implements ViewFactory | |
Field Summary | |
final public static int | POS One character width. |
POS | final public static int POS(Code) | | One character width. It is used in model/view translations.
|
getAlign | public static float getAlign(int axis, int id)(Code) | | Returns child desired alignment. It uses ALIGNMENT array
where possible.
Parameters: axis - axis along which alignment is requested (current unused) Parameters: id - child number (index) the child alignment |
getHeight | public static int getHeight(int id)(Code) | | Returns the height of the child. It uses multipliers to change heights
of children where applicable.
Parameters: id - child number (index) the child height |
getViewShortClassName | public static String getViewShortClassName(View view)(Code) | | |
getWidth | public static int getWidth(int id)(Code) | | Returns the width of the child. It uses multipliers to change widths of
children where applicable.
Parameters: id - child number (index) the child width |
|
|
|