| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | NoFramesView(Element
the element to create a view for elem, int either View.X_AXIS or View.Y_AXIS axis)Creates a new view that represents an html box. |
| Modifier and Type | Method and Description |
|---|---|
| public float | Returns: the maximum span the view can be rendered intomay be either axis)View.X_AXIS or
View.Y_AXISOverrides javax. Determines the maximum span for this view along an axis. |
| public float | Returns: the minimum span the view can be rendered intomay be either axis)View.X_AXIS or
View.Y_AXISOverrides javax. Determines the minimum span for this view along an axis. |
| public float | Returns: the span the view would like to be rendered into; typically the view is told to render into the span that is returned, although there is no guarantee; the parent may choose to resize or break the viewmay be either View.X_AXIS or View.Y_AXIS axis)Overrides javax. Determines the preferred span for this view. |
| public boolean | isVisible()
Overrides javax. Returns a true/false value that represents whether the view is visible or not. |
| protected void | layout(int width, int height)
Overrides javax. Do nothing if the view is not visible, otherwise invoke the superclass to perform layout. |
| public void | paint(Graphics
the rendering surface to use g, Shape the allocated region to render into allocation)Overrides javax. If this view is not visible, then it returns. |
| public void | setParent(View
the parent View. p)Overrides javax. Determines if the JTextComponent that the view is contained in is editable. |
| visible | back to summary |
|---|---|
| pack-priv boolean visible | |
| NoFramesView | back to summary |
|---|---|
| public NoFramesView(Element elem, int axis) Creates a new view that represents an html box. This can be used for a number of elements. By default this view is not visible.
| |
| getMaximumSpan | back to summary |
|---|---|
| public float getMaximumSpan(int axis) Overrides javax. Determines the maximum span for this view along an axis. Returns 0 if the view is not visible, otherwise it calls the superclass method ot get the maximum span.
| |
| getMinimumSpan | back to summary |
|---|---|
| public float getMinimumSpan(int axis) Overrides javax. Determines the minimum span for this view along an axis. Returns 0 if the view is not visible, otherwise it calls the superclass method to get the minimum span.
| |
| getPreferredSpan | back to summary |
|---|---|
| public float getPreferredSpan(int axis) Overrides javax. Determines the preferred span for this view. Returns 0 if the view is not visible, otherwise it calls the superclass method to get the preferred span. axis.
| |
| isVisible | back to summary |
|---|---|
| public boolean isVisible() Overrides javax. Returns a true/false value that represents whether the view is visible or not. | |
| layout | back to summary |
|---|---|
| protected void layout(int width, int height) Overrides javax. Do nothing if the view is not visible, otherwise invoke the superclass to perform layout. | |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, Shape allocation) Overrides javax. If this view is not visible, then it returns. Otherwise it invokes the superclass.
| |
| setParent | back to summary |
|---|---|
| public void setParent(View p) Overrides javax. Determines if the JTextComponent that the view is contained in is editable. If so, then this view and all its child views are visible. Once this has been determined, the superclass is invoked to continue processing.
| |