public class JGlossEditorKit.AnnotationView extends BlockView
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor and Description |
---|
JGlossEditorKit.AnnotationView(Element elem)
Creates a new view for an annotation element.
|
Modifier and Type | Method and Description |
---|---|
float |
getMaximumSpan(int axis)
Returns the maximum span of the view.
|
void |
setParent(View parent)
Fix setting of
null parent with Swing 1.4. |
calculateMajorAxisRequirements, calculateMinorAxisRequirements, changedUpdate, getAlignment, getAttributes, getMinimumSpan, getPreferredSpan, getResizeWeight, getStyleSheet, layoutMinorAxis, paint, setPropertiesFromAttributes
baselineLayout, baselineRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAxis, getChildAllocation, getHeight, getOffset, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, layoutMajorAxis, modelToView, paintChild, preferenceChanged, replace, setAxis, setSize, viewToModel
getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsets
append, breakView, createFragment, forwardUpdateToView, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, updateChildren, updateLayout, viewToModel
public JGlossEditorKit.AnnotationView(Element elem)
elem
- The element rendered by the view.public void setParent(View parent)
null
parent with Swing 1.4.
AnnotationViews
can be referenced from two parents at
the same time: a FlowView.LogicalView
and a
ParagraphView.Row
. If the AnnotationView
is
removed from the ParagraphView.Row
by calling
setParent(null)
, the LogicalView
has to be
made parent again for the layout to work.public float getMaximumSpan(int axis)
getMaximumSpan
in class BlockView
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.