Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
javax.swing.text

Class AsyncBoxView.ChildState

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    AsyncBoxView

    public class AsyncBoxView.ChildState
    extends Object
    implements Runnable
    A record representing the layout state of a child view. It is runnable as a task on another thread. All access to the child view that is based upon a read-lock on the model should synchronize on this object (i.e. The layout thread and the GUI thread can both have a read lock on the model at the same time and are not protected from each other). Access to a child view hierarchy is serialized via synchronization on the ChildState instance.
    Since:
    1.3
    • Constructor Detail

      • AsyncBoxView.ChildState

        public AsyncBoxView.ChildState(View v)
        Construct a child status. This needs to start out as fairly large so we don't falsely begin with the idea that all of the children are visible.
        Since:
        1.4
    • Method Detail

      • getChildView

        public View getChildView()
        Fetch the child view this record represents
      • run

        public void run()
        Update the child state. This should be called by the thread that desires to spend time updating the child state (intended to be the layout thread).

        This aquires a read lock on the associated document for the duration of the update to ensure the model is not changed while it is operating. The first thing to do would be to see if any work actually needs to be done. The following could have conceivably happened while the state was waiting to be updated:

        1. The child may have been removed from the view hierarchy.
        2. The child may have been updated by a higher priority operation (i.e. the child may have become visible).
        Specified by:
        run in interface Runnable
        See Also:
        Thread.run()
      • getMinorSpan

        public float getMinorSpan()
        What is the span along the minor axis.
      • getMinorOffset

        public float getMinorOffset()
        What is the offset along the minor axis
      • getMajorSpan

        public float getMajorSpan()
        What is the span along the major axis.
      • getMajorOffset

        public float getMajorOffset()
        Get the offset along the major axis
      • setMajorOffset

        public void setMajorOffset(float offs)
        This method should only be called by the ChildLocator, it is simply a convenient place to hold the cached location.
      • preferenceChanged

        public void preferenceChanged(boolean width,
                             boolean height)
        Mark preferences changed for this child.
        Parameters:
        width - true if the width preference has changed
        height - true if the height preference has changed
        See Also:
        JComponent.revalidate()
      • isLayoutValid

        public boolean isLayoutValid()
        Has the child view been laid out.

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/swing/text/asyncboxview.childstate.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut