All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.text.JVBoxView
java.lang.Object
|
+----com.sun.java.swing.text.JView
|
+----com.sun.java.swing.text.JCompositeView
|
+----com.sun.java.swing.text.JVBoxView
- public class JVBoxView
- extends JCompositeView
A view of a text model that arranges it's children into a
vertical box. It might be useful to represent something like a
collection of lines or paragraphs.
-
JVBoxView(Element)
- Construct a JVBoxView that does not load children.
-
JVBoxView(Element, ViewFactory)
- Construct a JVBoxView for the given element that automatically
loads the child elements, one view for each child element.
-
calculateSize(Rectangle, ViewFactory)
-
-
childAllocation(int, Shape, ViewFactory)
-
-
getViewAtPoint(Point, Rectangle, ViewFactory)
- Fetch the child view at the given point.
-
isAfter(Point, Rectangle)
-
-
isBefore(Point, Rectangle)
-
-
paint(Graphics, Shape, ViewFactory)
-
JVBoxView
public JVBoxView(Element elem,
ViewFactory f)
- Construct a JVBoxView for the given element that automatically
loads the child elements, one view for each child element.
Each child is tiled vertically.
- Parameters:
- f - The factory to use to create views of the elements
that are children of the element this view is responsible for.
- elem - The element this view is responsible for.
JVBoxView
public JVBoxView(Element elem)
- Construct a JVBoxView that does not load children. This is
useful for subclasses that want to tile their children vertically
but do something special for their child view creation.
paint
public void paint(Graphics g,
Shape allocation,
ViewFactory f)
- Overrides:
- paint in class JCompositeView
- See Also:
- paint
calculateSize
protected Dimension calculateSize(Rectangle alloc,
ViewFactory f)
- Overrides:
- calculateSize in class JCompositeView
isBefore
protected boolean isBefore(Point pt,
Rectangle alloc)
- Overrides:
- isBefore in class JCompositeView
isAfter
protected boolean isAfter(Point pt,
Rectangle alloc)
- Overrides:
- isAfter in class JCompositeView
getViewAtPoint
protected View getViewAtPoint(Point pt,
Rectangle alloc,
ViewFactory f)
- Fetch the child view at the given point.
- Parameters:
- p - The location of the child to fetch
- alloc - The parents allocation on entry, which should
be changed to the childs allocation on exit.
- Overrides:
- getViewAtPoint in class JCompositeView
childAllocation
protected Rectangle childAllocation(int index,
Shape allocation,
ViewFactory f)
- Overrides:
- childAllocation in class JCompositeView
All Packages Class Hierarchy This Package Previous Next Index