|
||||||||||
| 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.FlowView
javax.swing.text.ParagraphView
javax.swing.plaf.basic.BasicTextFieldUI.I18nFieldView
A field view that support bidirectional text via the support provided by ParagraphView.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.text.ParagraphView |
|
| Nested classes inherited from class javax.swing.text.FlowView |
FlowView.FlowStrategy |
| Field Summary |
| Fields inherited from class javax.swing.text.ParagraphView |
firstLineIndent |
| Fields inherited from class javax.swing.text.FlowView |
layoutPool, layoutSpan, strategy |
| Fields inherited from class javax.swing.text.BoxView |
|
| Fields inherited from class javax.swing.text.CompositeView |
|
| 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 | |
(package private) |
BasicTextFieldUI.I18nFieldView(Element elem)
|
| Method Summary | |
(package private) Shape |
adjustAllocation(Shape a)
Adjusts the allocation given to the view to be a suitable allocation for a text field. |
int |
getFlowSpan(int index)
Fetch the constraining span to flow against for the given child index. |
int |
getResizeWeight(int axis)
Determines the resizability of the view along the given axis. |
void |
insertUpdate(DocumentEvent changes,
Shape a,
ViewFactory f)
Gives notification that something was inserted into the document in a location that this view is responsible for. |
(package private) static boolean |
isLeftToRight(Component c)
|
Shape |
modelToView(int p0,
Position.Bias b0,
int p1,
Position.Bias b1,
Shape a)
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. |
Shape |
modelToView(int pos,
Shape a,
Position.Bias b)
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. |
void |
paint(Graphics g,
Shape a)
Renders using the given rendering surface and area on that surface. |
void |
removeUpdate(DocumentEvent changes,
Shape a,
ViewFactory f)
Gives notification that something was removed from the document in a location that this view is responsible for. |
protected void |
setJustification(int j)
Sets the type of justification. |
(package private) void |
updateVisibilityModel()
Update the visibility model with the associated JTextField (if there is one) to reflect the current visibility as a result of changes to the document model. |
int |
viewToModel(float fx,
float fy,
Shape a,
Position.Bias[] bias)
Provides a mapping from the view coordinate space to the logical coordinate space of the model. |
| Methods inherited from class javax.swing.text.ParagraphView |
adjustRow, breakView, changedUpdate, createRow, findOffsetToCharactersInString, flipEastAndWestAtEnds, getAlignment, getBreakWeight, getClosestPositionTo, getFlowStart, getLayoutView, getLayoutViewCount, getNextNorthSouthVisualPositionFrom, getPartialSize, getTabBase, getTabSet, nextTabStop, setFirstLineIndent, setLineSpacing, setPropertiesFromAttributes |
| Methods inherited from class javax.swing.text.FlowView |
calculateMinorAxisRequirements, getFlowAxis, getViewIndexAtPosition, layout, loadChildren |
| Methods inherited from class javax.swing.text.BoxView |
baselineLayout, baselineRequirements, calculateMajorAxisRequirements, childAllocation, forwardUpdate, getAxis, getChildAllocation, getHeight, getMaximumSpan, getMinimumSpan, getOffset, getPreferredSpan, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layoutChanged, layoutMajorAxis, layoutMinorAxis, paintChild, preferenceChanged, replace, setAxis, setSize |
| Methods inherited from class javax.swing.text.CompositeView |
getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, 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 |
BasicTextFieldUI.I18nFieldView(Element elem)
| Method Detail |
public int getFlowSpan(int index)
Integer.MAX_VALUE.
getFlowSpan in class ParagraphViewindex - the index of the view being queried
indexprotected void setJustification(int j)
ParagraphView
setJustification in class ParagraphViewj - one of the following values:
StyleConstants.ALIGN_LEFT
StyleConstants.ALIGN_CENTER
StyleConstants.ALIGN_RIGHT
static boolean isLeftToRight(Component c)
Shape adjustAllocation(Shape a)
a - the allocation given to the view, which may need
to be adjusted.
void updateVisibilityModel()
public void paint(Graphics g,
Shape a)
paint in class ParagraphViewg - the rendering surface to usea - the allocated region to render intoView.paint(java.awt.Graphics, java.awt.Shape)public int getResizeWeight(int axis)
getResizeWeight in class BoxViewaxis - View.X_AXIS or View.Y_AXIS
public Shape modelToView(int pos,
Shape a,
Position.Bias b)
throws BadLocationException
modelToView in class BoxViewpos - the position to convert >= 0a - the allocated region to render into
BadLocationException - if the given position does not
represent a valid location in the associated documentView.modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)
public Shape modelToView(int p0,
Position.Bias b0,
int p1,
Position.Bias b1,
Shape a)
throws BadLocationException
modelToView in class CompositeViewp0 - the position to convert >= 0b0 - the bias toward the previous character or the
next character represented by p0, in case the
position is a boundary of two views.p1 - the position to convert >= 0b1 - the bias toward the previous character or the
next character represented by p1, in case the
position is a boundary of two views.a - the allocated region to render into
BadLocationException - if the given position does
not represent a valid location in the associated document
IllegalArgumentException - for an invalid bias argumentView.viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])
public int viewToModel(float fx,
float fy,
Shape a,
Position.Bias[] bias)
viewToModel in class BoxViewfx - the X coordinate >= 0.0ffy - the Y coordinate >= 0.0fa - the allocated region to render into
View.viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])
public void insertUpdate(DocumentEvent changes,
Shape a,
ViewFactory f)
insertUpdate in class FlowViewchanges - the change information from the associated documenta - the current allocation of the viewf - the factory to use to rebuild if the view has childrenView.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void removeUpdate(DocumentEvent changes,
Shape a,
ViewFactory f)
removeUpdate in class FlowViewchanges - the change information from the associated documenta - the current allocation of the viewf - the factory to use to rebuild if the view has childrenView.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||