java.lang.Object
javax.swing.text.View
javax.swing.text.CompositeView
javax.swing.text.BoxView
org.gendiapo.editor.document.AbstractNodeView
org.gendiapo.editor.document.NodeVerticalView
- All Implemented Interfaces:
- javax.swing.SwingConstants
- public class NodeVerticalView
- extends AbstractNodeView
| Fields inherited from class javax.swing.text.BoxView |
|
| 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 |
| Methods inherited from class javax.swing.text.BoxView |
baselineLayout, baselineRequirements, calculateMajorAxisRequirements, calculateMinorAxisRequirements, childAllocation, getAlignment, getAxis, getHeight, getOffset, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, layoutMinorAxis, modelToView, paintChild, preferenceChanged, replace, setAxis, setSize |
| Methods inherited from class javax.swing.text.CompositeView |
flipEastAndWestAtEnds, getBottomInset, getChildAllocation, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsets, setParent, viewToModel |
| Methods inherited from class javax.swing.text.View |
append, breakView, changedUpdate, createFragment, forwardUpdate, forwardUpdateToView, getAttributes, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getMinimumSpan, getParent, getResizeWeight, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, updateChildren, updateLayout, viewToModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
width
protected int width
theFontSize
protected int theFontSize
theFont
protected java.awt.Font theFont
theText
protected java.lang.String theText
NodeVerticalView
public NodeVerticalView(javax.swing.text.Element elem,
int fontSize,
int width)
init
protected void init(javax.swing.text.Element elem,
int fontSize)
paintSelected
public void paintSelected(java.awt.Graphics g,
java.awt.Color c)
- Overrides:
paintSelected in class AbstractNodeView
paint
public void paint(java.awt.Graphics g,
java.awt.Shape a)
- Description copied from class:
javax.swing.text.BoxView
- Renders the
Element that is associated with this
View.
- Overrides:
paint in class AbstractNodeView
layoutMajorAxis
protected void layoutMajorAxis(int targetSpan,
int axis,
int[] offsets,
int[] spans)
- Description copied from class:
javax.swing.text.BoxView
- Performs the layout along the major axis of a
BoxView.
getMaximumSpan
public float getMaximumSpan(int axis)
getPreferredSpan
public float getPreferredSpan(int axis)
- Description copied from class:
javax.swing.text.BoxView
- Returns the preferred span of the content managed by this
View along the specified axis.