Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.desktop - Package : javax.swing.text
Version documentée : Java SE 17

Classe « View »

Informations générales

Héritage

java.lang.Object
    javax.swing.text.View

Définition

public abstract class View extends java.lang.Object
implements javax.swing.SwingConstants

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription
public static int BadBreakWeight
public static int ExcellentBreakWeight
public static int ForcedBreakWeight
public static int GoodBreakWeight
public static int X_AXIS
public static int Y_AXIS

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
View( Element elem )

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public AttributeSet attributes R/-
public Container container R/-
public Document document R/-
public Element element R/-
public int endOffset R/-
public Graphics graphics R/-
public View parent R/W
public int startOffset R/-
public int viewCount R/-
public ViewFactory viewFactory R/-
public boolean visible R/-

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public void append( View v )
public View breakView( int axis, int offset, float pos, float len )
public void changedUpdate( DocumentEvent e, Shape a, ViewFactory f )
public View createFragment( int p0, int p1 )
protected void forwardUpdate( ElementChange ec, DocumentEvent e, Shape a, ViewFactory f )
protected void forwardUpdateToView( View v, DocumentEvent e, Shape a, ViewFactory f )
public float getAlignment( int axis )
public AttributeSet getAttributes()
public int getBreakWeight( int axis, float pos, float len )
public Shape getChildAllocation( int index, Shape a )
public Container getContainer()
public Document getDocument()
public Element getElement()
public int getEndOffset()
public Graphics getGraphics()
public float getMaximumSpan( int axis )
public float getMinimumSpan( int axis )
public int getNextVisualPositionFrom( int pos, Bias b, Shape a, int direction, Bias[] biasRet )
public View getParent()
public abstract float getPreferredSpan( int axis )
public int getResizeWeight( int axis )
public int getStartOffset()
public String getToolTipText( float x, float y, Shape allocation )
public View getView( int n )
public int getViewCount()
public ViewFactory getViewFactory()
public int getViewIndex( float x, float y, Shape allocation )
public int getViewIndex( int pos, Bias b )
public void insert( int offs, View v )
public void insertUpdate( DocumentEvent e, Shape a, ViewFactory f )
public boolean isVisible()
public Shape modelToView( int pos, Shape a )
public abstract Shape modelToView( int pos, Shape a, Bias b )
public Shape modelToView( int p0, Bias b0, int p1, Bias b1, Shape a )
public abstract void paint( Graphics g, Shape allocation )
public void preferenceChanged( View child, boolean width, boolean height )
public void remove( int i )
public void removeAll()
public void removeUpdate( DocumentEvent e, Shape a, ViewFactory f )
public void replace( int offset, int length, View[] views )
public void setParent( View parent )
public void setSize( float width, float height )
protected boolean updateChildren( ElementChange ec, DocumentEvent e, ViewFactory f )
protected void updateLayout( ElementChange ec, DocumentEvent e, Shape a )
public int viewToModel( float x, float y, Shape a )
public abstract int viewToModel( float x, float y, Shape a, Bias[] biasReturn )

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait