|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.text.View
javax.swing.text.CompositeView
javax.swing.text.BoxView
javax.swing.text.WrappedPlainView
org.jvnet.substance.text.SubstanceWrappedPlainView
public class SubstanceWrappedPlainView
Custom wrapped plain view for painting text components with
SubstanceTextPainter-based approach.
| 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 | |
|---|---|
SubstanceWrappedPlainView(javax.swing.text.Element elem,
boolean wrapStyleWord)
Creates a new view. |
|
| Method Summary | |
|---|---|
protected int |
drawSelectedText(java.awt.Graphics g,
int x,
int y,
int p0,
int p1)
|
protected int |
drawUnselectedText(java.awt.Graphics g,
int x,
int y,
int p0,
int p1)
|
| Methods inherited from class javax.swing.text.WrappedPlainView |
|---|
calculateBreakPosition, changedUpdate, drawLine, getLineBuffer, getMaximumSpan, getMinimumSpan, getPreferredSpan, getTabSize, insertUpdate, loadChildren, nextTabStop, paint, removeUpdate, setSize |
| Methods inherited from class javax.swing.text.BoxView |
|---|
baselineLayout, baselineRequirements, calculateMajorAxisRequirements, calculateMinorAxisRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAlignment, getAxis, getChildAllocation, getHeight, getOffset, getResizeWeight, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, layoutMajorAxis, layoutMinorAxis, modelToView, paintChild, preferenceChanged, replace, setAxis, viewToModel |
| Methods inherited from class javax.swing.text.CompositeView |
|---|
getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, modelToView, setInsets, setParagraphInsets, setParent |
| Methods inherited from class javax.swing.text.View |
|---|
append, breakView, createFragment, forwardUpdateToView, getAttributes, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, isVisible, modelToView, remove, removeAll, updateChildren, updateLayout, viewToModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubstanceWrappedPlainView(javax.swing.text.Element elem,
boolean wrapStyleWord)
elem - Text element.wrapStyleWord - Wrap style word.| Method Detail |
|---|
protected int drawSelectedText(java.awt.Graphics g,
int x,
int y,
int p0,
int p1)
throws javax.swing.text.BadLocationException
drawSelectedText in class javax.swing.text.WrappedPlainViewjavax.swing.text.BadLocationException
protected int drawUnselectedText(java.awt.Graphics g,
int x,
int y,
int p0,
int p1)
throws javax.swing.text.BadLocationException
drawUnselectedText in class javax.swing.text.WrappedPlainViewjavax.swing.text.BadLocationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||