Package net.simplace.core.xmleditorkit
Class TagView
java.lang.Object
javax.swing.text.View
javax.swing.text.CompositeView
javax.swing.text.BoxView
net.simplace.core.xmleditorkit.TagView
- All Implemented Interfaces:
SwingConstants
- Author:
- Stanislav Lapitsky
-
Field Summary
Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getAlignment
(int axis) float
getMaximumSpan
(int axis) float
getMinimumSpan
(int axis) protected int
getNextEastWestVisualPositionFrom
(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) float
getPreferredSpan
(int axis) boolean
void
void
setExpanded
(boolean expanded) Methods inherited from class javax.swing.text.BoxView
baselineLayout, baselineRequirements, calculateMajorAxisRequirements, calculateMinorAxisRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAxis, getChildAllocation, getHeight, getOffset, getResizeWeight, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, layoutMajorAxis, layoutMinorAxis, modelToView, paintChild, preferenceChanged, replace, setAxis, setSize, viewToModel
Methods inherited from class javax.swing.text.CompositeView
getBottomInset, getInsideAllocation, getLeftInset, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsets, setParent
Methods inherited from class javax.swing.text.View
append, breakView, changedUpdate, createFragment, forwardUpdateToView, getAttributes, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, updateChildren, updateLayout, viewToModel
-
Field Details
-
AREA_SHIFT
public static final int AREA_SHIFT- See Also:
-
-
Constructor Details
-
TagView
-
-
Method Details
-
getAlignment
public float getAlignment(int axis) - Overrides:
getAlignment
in classBoxView
-
paint
-
getPreferredSpan
public float getPreferredSpan(int axis) - Overrides:
getPreferredSpan
in classBoxView
-
getMinimumSpan
public float getMinimumSpan(int axis) - Overrides:
getMinimumSpan
in classBoxView
-
getMaximumSpan
public float getMaximumSpan(int axis) - Overrides:
getMaximumSpan
in classBoxView
-
isExpanded
public boolean isExpanded() -
setExpanded
public void setExpanded(boolean expanded) -
getNextEastWestVisualPositionFrom
protected int getNextEastWestVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) throws BadLocationException - Overrides:
getNextEastWestVisualPositionFrom
in classCompositeView
- Throws:
BadLocationException
-