KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > text > View

javax.swing.text
Class View

java.lang.Object
  extended by javax.swing.text.View
All Implemented Interfaces:
SwingConstants
Direct Known Subclasses:
AsyncBoxView, ComponentView, CompositeView, GlyphView, IconView, ImageView, PlainView
See Also:
Top Examples, Source Code

public void append(View v)
See Also:
replace(int, int, javax.swing.text.View[])
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int BadBreakWeight
See Also:
ForcedBreakWeight, ExcellentBreakWeight, GoodBreakWeight, getBreakWeight(int, float, float)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public View breakView(int axis,
                      int offset,
                      float pos,
                      float len)
See Also:
ParagraphView
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void changedUpdate(DocumentEvent e,
                          Shape a,
                          ViewFactory f)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public View createFragment(int p0,
                           int p1)
See Also:
LabelView
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int ExcellentBreakWeight
See Also:
ForcedBreakWeight, GoodBreakWeight, BadBreakWeight, getBreakWeight(int, float, float)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int ForcedBreakWeight
See Also:
ExcellentBreakWeight, GoodBreakWeight, BadBreakWeight, getBreakWeight(int, float, float)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void forwardUpdate(DocumentEvent.ElementChange ec,
                             DocumentEvent e,
                             Shape a,
                             ViewFactory f)
See Also:
changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory), removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory), insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void forwardUpdateToView(View v,
                                   DocumentEvent e,
                                   Shape a,
                                   ViewFactory f)
See Also:
forwardUpdate(javax.swing.event.DocumentEvent.ElementChange, javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float getAlignment(int axis)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AttributeSet getAttributes()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getBreakWeight(int axis,
                          float pos,
                          float len)
See Also:
ForcedBreakWeight, ExcellentBreakWeight, GoodBreakWeight, BadBreakWeight, ParagraphView, LabelView
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Shape getChildAllocation(int index,
                                Shape a)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Container getContainer()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Document getDocument()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Element getElement()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getEndOffset()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Graphics getGraphics()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float getMaximumSpan(int axis)
See Also:
getPreferredSpan(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float getMinimumSpan(int axis)
See Also:
getPreferredSpan(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getNextVisualPositionFrom(int pos,
                                     Position.Bias b,
                                     Shape a,
                                     int direction,
                                     Position.Bias[] biasRet)
                              throws BadLocationException
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public View getParent()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract float getPreferredSpan(int axis)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getResizeWeight(int axis)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getStartOffset()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getToolTipText(float x,
                             float y,
                             Shape allocation)
See Also:
JTextComponent.getToolTipText(java.awt.event.MouseEvent)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public View getView(int n)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getViewCount()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ViewFactory getViewFactory()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getViewIndex(float x,
                        float y,
                        Shape allocation)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getViewIndex(int pos,
                        Position.Bias b)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int GoodBreakWeight
See Also:
ForcedBreakWeight, ExcellentBreakWeight, BadBreakWeight, getBreakWeight(int, float, float)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void insert(int offs,
                   View v)
See Also:
replace(int, int, javax.swing.text.View[])
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void insertUpdate(DocumentEvent e,
                         Shape a,
                         ViewFactory f)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isVisible()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public Shape modelToView(int pos,
                                    Shape a)
                  throws BadLocationException
See Also:
modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract Shape modelToView(int pos,
                                  Shape a,
                                  Position.Bias b)
                           throws BadLocationException
See Also:
viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[]), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Shape modelToView(int p0,
                         Position.Bias b0,
                         int p1,
                         Position.Bias b1,
                         Shape a)
                  throws BadLocationException
See Also:
viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[]), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void paint(Graphics g,
                           Shape allocation)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void preferenceChanged(View child,
                              boolean width,
                              boolean height)
See Also:
JComponent.revalidate()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void remove(int i)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeAll()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeUpdate(DocumentEvent e,
                         Shape a,
                         ViewFactory f)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void replace(int offset,
                    int length,
                    View[] views)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setParent(View parent)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSize(float width,
                    float height)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected boolean updateChildren(DocumentEvent.ElementChange ec,
                                 DocumentEvent e,
                                 ViewFactory f)
See Also:
changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory), removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory), insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void updateLayout(DocumentEvent.ElementChange ec,
                            DocumentEvent e,
                            Shape a)
See Also:
changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory), removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory), insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public View(Element elem)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public int viewToModel(float x,
                                  float y,
                                  Shape a)
See Also:
viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int viewToModel(float x,
                                float y,
                                Shape a,
                                Position.Bias[] biasReturn)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int X_AXIS
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int Y_AXIS
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags