| java.lang.Object javax.swing.text.View
All known Subclasses: javax.swing.text.ComponentView, javax.swing.text.html.HRuleTagView, javax.swing.text.PlainView, javax.swing.text.IconView, javax.swing.text.html.ImageView, javax.swing.text.CompositeView, javax.swing.text.RootView, javax.swing.text.GlyphView, javax.swing.text.html.InvisibleTagView,
Method Summary | |
public void | append(View view) | public View | breakView(int axis, int offset, float pos, float len) | public void | changedUpdate(DocumentEvent event, Shape shape, ViewFactory factory) | public View | createFragment(int startOffset, int endOffset) | final int | drawComposedText(Graphics g, Color color, ComposedTextParams composedTextParams, int x, int y) | void | drawLine(TextPaintParams tpp, int start, int end, Graphics g, int x, int y) | int | drawSelectedText(Graphics g, int x, int y, int start, int end) | final int | drawText(Graphics g, Color color, TextPaintParams tpp, int x, int y, int start, int end) | int | drawUnselectedText(Graphics g, int x, int y, int start, int end) | protected void | forwardUpdate(DocumentEvent.ElementChange change, DocumentEvent event, Shape shape, ViewFactory factory) The event is forwarded to all child views that lie in the range of
the change, i.e. | protected void | forwardUpdateToView(View view, DocumentEvent event, Shape shape, ViewFactory factory) | public float | getAlignment(int axis) | public AttributeSet | getAttributes() | public int | getBreakWeight(int axis, float pos, float len) | public Shape | getChildAllocation(int index, Shape shape) | Component | getComponent() | public Container | getContainer() | public Document | getDocument() | public Element | getElement() | public int | getEndOffset() | public Graphics | getGraphics() | public float | getMaximumSpan(int axis) If view is not resizable, returns getPreferredSpan(axis) . | public float | getMinimumSpan(int axis) If view is not resizable, returns getPreferredSpan(axis) . | public int | getNextVisualPositionFrom(int pos, Bias bias, Shape shape, int direction, Bias[] biasRet) | public View | getParent() | abstract public float | getPreferredSpan(int axis) | public int | getResizeWeight(int axis) | public int | getStartOffset() | final TextKit | getTextKit() | public String | getToolTipText(float x, float y, Shape shape) | public View | getView(int index) | public int | getViewCount() | public ViewFactory | getViewFactory() | public int | getViewIndex(float x, float y, Shape shape) | public int | getViewIndex(int pos, Bias bias) | public void | insert(int index, View view) | public void | insertUpdate(DocumentEvent event, Shape shape, ViewFactory factory) | public boolean | isVisible() | abstract public Shape | modelToView(int pos, Shape shape, Bias bias) | public Shape | modelToView(int p1, Bias b1, int p2, Bias b2, Shape shape) | public Shape | modelToView(int pos, Shape shape) | abstract public void | paint(Graphics g, Shape shape) | public void | preferenceChanged(View child, boolean width, boolean height) | public void | remove(int index) | public void | removeAll() | public void | removeUpdate(DocumentEvent event, Shape shape, ViewFactory factory) | public void | replace(int index, int length, View[] views) | public void | setParent(View parent) | public void | setSize(float width, float height) | protected boolean | updateChildren(DocumentEvent.ElementChange change, DocumentEvent event, ViewFactory factory) | protected void | updateLayout(DocumentEvent.ElementChange change, DocumentEvent event, Shape shape) | abstract public int | viewToModel(float x, float y, Shape shape, Bias[] biasReturn) | public int | viewToModel(float x, float y, Shape shape) |
ALIGN_CENTER | final static float ALIGN_CENTER(Code) | | |
ALIGN_LEFT | final static float ALIGN_LEFT(Code) | | |
ALIGN_RIGHT | final static float ALIGN_RIGHT(Code) | | |
BadBreakWeight | final public static int BadBreakWeight(Code) | | |
ExcellentBreakWeight | final public static int ExcellentBreakWeight(Code) | | |
ForcedBreakWeight | final public static int ForcedBreakWeight(Code) | | |
GoodBreakWeight | final public static int GoodBreakWeight(Code) | | |
X_AXIS | final public static int X_AXIS(Code) | | |
Y_AXIS | final public static int Y_AXIS(Code) | | |
breakView | public View breakView(int axis, int offset, float pos, float len)(Code) | | |
createFragment | public View createFragment(int startOffset, int endOffset)(Code) | | |
drawComposedText | final int drawComposedText(Graphics g, Color color, ComposedTextParams composedTextParams, int x, int y)(Code) | | |
forwardUpdate | protected void forwardUpdate(DocumentEvent.ElementChange change, DocumentEvent event, Shape shape, ViewFactory factory)(Code) | | The event is forwarded to all child views that lie in the range of
the change, i.e. event.getOffset() up to
(event.getOffset() + event.getLength()) .
If event.getOffset() is boundary of children, then
the previous child is included to the update range.
If change is not null , children that
have just been added by updateChildren are excluded
from the update range.
change can be null if the element this view
represents has not changed, or if its children represent portions of
elements.
Parameters: change - is always null if updateChildren returned false ,otherwise it has the value returned byevent.getChange(getElement()) . |
getAlignment | public float getAlignment(int axis)(Code) | | |
getBreakWeight | public int getBreakWeight(int axis, float pos, float len)(Code) | | |
getEndOffset | public int getEndOffset()(Code) | | |
getMaximumSpan | public float getMaximumSpan(int axis)(Code) | | If view is not resizable, returns getPreferredSpan(axis) .
Otherwise (resizable), returns Integer.MAX_VALUE.
|
getMinimumSpan | public float getMinimumSpan(int axis)(Code) | | If view is not resizable, returns getPreferredSpan(axis) .
Otherwise (resizable), returns 0.
|
getNextVisualPositionFrom | public int getNextVisualPositionFrom(int pos, Bias bias, Shape shape, int direction, Bias[] biasRet) throws BadLocationException(Code) | | |
getPreferredSpan | abstract public float getPreferredSpan(int axis)(Code) | | |
getResizeWeight | public int getResizeWeight(int axis)(Code) | | |
getStartOffset | public int getStartOffset()(Code) | | |
getTextKit | final TextKit getTextKit()(Code) | | |
getViewCount | public int getViewCount()(Code) | | |
getViewIndex | public int getViewIndex(float x, float y, Shape shape)(Code) | | |
getViewIndex | public int getViewIndex(int pos, Bias bias)(Code) | | |
insert | public void insert(int index, View view)(Code) | | |
isVisible | public boolean isVisible()(Code) | | |
preferenceChanged | public void preferenceChanged(View child, boolean width, boolean height)(Code) | | |
remove | public void remove(int index)(Code) | | |
removeAll | public void removeAll()(Code) | | |
replace | public void replace(int index, int length, View[] views)(Code) | | |
setSize | public void setSize(float width, float height)(Code) | | |
viewToModel | abstract public int viewToModel(float x, float y, Shape shape, Bias[] biasReturn)(Code) | | |
viewToModel | public int viewToModel(float x, float y, Shape shape)(Code) | | |
|
|