| java.lang.Object javax.swing.text.View javax.swing.text.PlainView
All known Subclasses: javax.swing.text.FieldView,
Constructor Summary | |
public | PlainView(Element element) It is assumed that element is default root of document
this view represents (PlainDocument). |
Method Summary | |
public void | changedUpdate(DocumentEvent event, Shape shape, ViewFactory factory) | final void | conditionalUpdateMetrics() | protected void | damageLineRange(int startLine, int endLine, Shape shape, Component component) | protected void | drawLine(int lineNo, Graphics g, int x, int y) | protected int | drawSelectedText(Graphics g, int x, int y, int start, int end) | protected int | drawUnselectedText(Graphics g, int x, int y, int start, int end) | final protected Segment | getLineBuffer() | public float | getPreferredSpan(int axis) | protected int | getTabSize() | public void | insertUpdate(DocumentEvent event, Shape shape, ViewFactory factory) | protected Rectangle | lineToRect(Shape shape, int lineNo) | public Shape | modelToView(int pos, Shape shape, Position.Bias bias) Returns the rectangle where the caret will be painted. | public float | nextTabStop(float x, int tabOffset) | public void | paint(Graphics g, Shape shape) | public void | removeUpdate(DocumentEvent event, Shape shape, ViewFactory factory) | public void | setSize(float width, float height) | protected void | updateDamage(DocumentEvent event, Shape shape, ViewFactory factory) | protected void | updateMetrics() | public int | viewToModel(float x, float y, Shape shape, Position.Bias[] biasReturn) |
PlainView | public PlainView(Element element)(Code) | | It is assumed that element is default root of document
this view represents (PlainDocument).
|
conditionalUpdateMetrics | final void conditionalUpdateMetrics()(Code) | | |
damageLineRange | protected void damageLineRange(int startLine, int endLine, Shape shape, Component component)(Code) | | |
drawLine | protected void drawLine(int lineNo, Graphics g, int x, int y)(Code) | | |
getPreferredSpan | public float getPreferredSpan(int axis)(Code) | | |
getTabSize | protected int getTabSize()(Code) | | |
modelToView | public Shape modelToView(int pos, Shape shape, Position.Bias bias) throws BadLocationException(Code) | | Returns the rectangle where the caret will be painted. This rectangle
is positioned between characters (at position pos ).
Its width is 1, and height is the height of the line (of the font used).
For more information about position see
http://java.sun.com/products/jfc/tsc/articles/text/element_buffer/
in the heading The Position Interface.)
|
nextTabStop | public float nextTabStop(float x, int tabOffset)(Code) | | |
setSize | public void setSize(float width, float height)(Code) | | |
updateMetrics | protected void updateMetrics()(Code) | | |
Methods inherited from javax.swing.text.View | public void append(View view)(Code)(Java Doc) public View breakView(int axis, int offset, float pos, float len)(Code)(Java Doc) public void changedUpdate(DocumentEvent event, Shape shape, ViewFactory factory)(Code)(Java Doc) public View createFragment(int startOffset, int endOffset)(Code)(Java Doc) final int drawComposedText(Graphics g, Color color, ComposedTextParams composedTextParams, int x, int y)(Code)(Java Doc) void drawLine(TextPaintParams tpp, int start, int end, Graphics g, int x, int y)(Code)(Java Doc) int drawSelectedText(Graphics g, int x, int y, int start, int end) throws BadLocationException(Code)(Java Doc) final int drawText(Graphics g, Color color, TextPaintParams tpp, int x, int y, int start, int end) throws BadLocationException(Code)(Java Doc) int drawUnselectedText(Graphics g, int x, int y, int start, int end) throws BadLocationException(Code)(Java Doc) protected void forwardUpdate(DocumentEvent.ElementChange change, DocumentEvent event, Shape shape, ViewFactory factory)(Code)(Java Doc) protected void forwardUpdateToView(View view, DocumentEvent event, Shape shape, ViewFactory factory)(Code)(Java Doc) public float getAlignment(int axis)(Code)(Java Doc) public AttributeSet getAttributes()(Code)(Java Doc) public int getBreakWeight(int axis, float pos, float len)(Code)(Java Doc) public Shape getChildAllocation(int index, Shape shape)(Code)(Java Doc) Component getComponent()(Code)(Java Doc) public Container getContainer()(Code)(Java Doc) public Document getDocument()(Code)(Java Doc) public Element getElement()(Code)(Java Doc) public int getEndOffset()(Code)(Java Doc) public Graphics getGraphics()(Code)(Java Doc) public float getMaximumSpan(int axis)(Code)(Java Doc) public float getMinimumSpan(int axis)(Code)(Java Doc) public int getNextVisualPositionFrom(int pos, Bias bias, Shape shape, int direction, Bias[] biasRet) throws BadLocationException(Code)(Java Doc) public View getParent()(Code)(Java Doc) abstract public float getPreferredSpan(int axis)(Code)(Java Doc) public int getResizeWeight(int axis)(Code)(Java Doc) public int getStartOffset()(Code)(Java Doc) final TextKit getTextKit()(Code)(Java Doc) public String getToolTipText(float x, float y, Shape shape)(Code)(Java Doc) public View getView(int index)(Code)(Java Doc) public int getViewCount()(Code)(Java Doc) public ViewFactory getViewFactory()(Code)(Java Doc) public int getViewIndex(float x, float y, Shape shape)(Code)(Java Doc) public int getViewIndex(int pos, Bias bias)(Code)(Java Doc) public void insert(int index, View view)(Code)(Java Doc) public void insertUpdate(DocumentEvent event, Shape shape, ViewFactory factory)(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) abstract public Shape modelToView(int pos, Shape shape, Bias bias) throws BadLocationException(Code)(Java Doc) public Shape modelToView(int p1, Bias b1, int p2, Bias b2, Shape shape) throws BadLocationException(Code)(Java Doc) public Shape modelToView(int pos, Shape shape) throws BadLocationException(Code)(Java Doc) abstract public void paint(Graphics g, Shape shape)(Code)(Java Doc) public void preferenceChanged(View child, boolean width, boolean height)(Code)(Java Doc) public void remove(int index)(Code)(Java Doc) public void removeAll()(Code)(Java Doc) public void removeUpdate(DocumentEvent event, Shape shape, ViewFactory factory)(Code)(Java Doc) public void replace(int index, int length, View[] views)(Code)(Java Doc) public void setParent(View parent)(Code)(Java Doc) public void setSize(float width, float height)(Code)(Java Doc) protected boolean updateChildren(DocumentEvent.ElementChange change, DocumentEvent event, ViewFactory factory)(Code)(Java Doc) protected void updateLayout(DocumentEvent.ElementChange change, DocumentEvent event, Shape shape)(Code)(Java Doc) abstract public int viewToModel(float x, float y, Shape shape, Bias[] biasReturn)(Code)(Java Doc) public int viewToModel(float x, float y, Shape shape)(Code)(Java Doc)
|
|
|