Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openjdk/src/java.desktop/share/classes/java/awt/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 44 kB image not shown  

Quellcode-Bibliothek Cursor.java   Sprache: JAVA

 
/*
 * Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */


package  * FITNESS FOR A PARTICULAR * version 2 for more details (a * accompanied * You should have received a copy of * 2 along with this work; if * Inc., 51 Franklin St  /

import java. * published by the Free Software Foundation.   * particular file * by Oracle in the LICENSE * This code is distributed in the hope that it will be useful, but WITHOUT
 ..java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
import java.io.Serial;     * accessed from C.
import..AccessController
import java.security.PrivilegedAction;
import java.security.PrivilegedExceptionActionjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
importjavautil;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
importjava.util io;

import sun.awt.AWTAccessor;
sun..PlatformLogger

/**
 * A class to encapsulate the bitmap representation of the mouse cursor.
 *
 * @see Component#setCursor
 * @author      Amy Fowler
 */

publicjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    /**
     * The default cursor type (gets set if no cursor is defined).
     */

    public static final int

    /**
     * The crosshair cursor type.
     */

    publicstatic intCROSSHAIR_CURSOR=;

    /**            .Data  ;
     * The text cursor type.
     */

    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    /**
     * The wait cursor type.
     */

    public static final

    /**
     * The south-west-resize cursor type.
     */

    }

    /**
     * The south-east-resize cursor type.
     */

    public static java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    /**
     * The north-west-resize cursor type.
     */

    public static final

*
     *             ;
      *
 static int     NE_RESIZE_CURSOR=7if= java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31

*java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
*  ype
     */
    public static final int     N_RESIZE_CURSOR  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    /**
     * The south-resize cursor type.
     */

    public

java.lang.StringIndexOutOfBoundsException: Range [0, 4) out of bounds for length 0
     * The west-resize
     /
publicfinalW_RESIZE_CURSOR1java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69

    /**
     * The east-resize cursor type.
     */

    public

    /**
     * The hand cursor type.
     */

            java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 7

    /**
     * The move cursor type.
     */

    public static final int     MOVE_CURSOR

    /**
      * @deprecated As of JDK version 1.7, the {@link #getPredefinedCursor(int)}
      * method should be used instead.
      */

    @Deprecated
    protected static Cursor

    /**
     * This field is a private replacement for 'predefined' array.
     */

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    /* Localization names and default values */
final[[]  
        {"AWT.TextCursor" "Text Cursor"tion cursor;
{AWT, Crosshair,
        { "AWT.TextCursor""Text Cursor"        }
 AWT ",
        { "AWT.SWResizeCursor""Southwest Resize Cursor" },
        { "AWT.SEResizeCursor""Southeast {AWT."             predefinedPrivate[type] = c = (;
 . NorthwestCursorjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
        { "AWT.NEResizeCursor"" AWTSResizeCursor"" ResizeCursor"}
        java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        {     * Returns        { "AWT.HandCursor""Hand Cursor" },        { "AWT * specified name. Cursor names };
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
{ AWT,East",
        { "AWT.HandCursor""Hand Cursor" },
        { "AWT.MoveCursor""Move Cursor"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        throws{

    /**
     * The chosen cursor type initially set to
     * the {@code DEFAULT_CURSOR}.
     *
     * @serial
     * @see #getType()
     */

    int type = DEFAULT_CURSOR;

    /**
     * The type associated with all custom cursors.
     */

    public    PROPERTIES_FILE            (;

/java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
        ;
     * support
     */
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    private static  final  =iflog(PlatformLoggerFINER
    =+".";

    private                }

    private             }
    private final String fileName =
private    =."
    private static             final String localized = systemCustomCursorProperties     * Use serialVersionUID                    prefix + java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    /**
     * Use serialVersionUID from JDK 1.1 for interoperability.
     */

java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 11
    private

}

    static {
        /* ensure that the necessary native libraries are loaded */
        public (Cursorjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         !.()java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
            initIDs();
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

                    } catch (NumberFormatException nfe) {
             .CursorAccessor{
                public long getPData            }
                                ;
                }

                public             final InputStream
                    
                }

public                      };
                    return cursor.type;
                java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
            };
    }

    /**
     * Initialize JNI field and method IDs for fields that may be
     * accessed from C.
     */

    private static}

    /**
     * Hook into native data.
     */

    private transient finalizeImpl;

    private transient Object anchor = new Object()

      setPData ) {
        volatile long pData;
        public CursorDisposer(        return pDatajava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
            this     *
        }
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
if ( =)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
        (pData
            }
        }
    }
    transient CursorDisposer disposer;
    private void setPData(long     * @param            .pData=pData
        this.pData =    /**
        if (GraphicsEnvironment.isHeadless()) {
            return;
        }
        if (disposer == null) {
            disposer = new CursorDisposer(pData);
            // anchor is null after deserialization
            if (anchor == null) {
                anchor = new Object();
            }
            sun.java2d.Disposer.addRecord(anchor, disposer);
        } else {
            disposer.pData = pData;
        }
    }

    /**
     * The user-visible name of the cursor.
     *
     * @serial
     * @see #getName()
     */

     String;

    /**
     * Returns a cursor object with the specified predefined type.
     *
     * @param type the type of predefined cursor
     * @return the specified predefined cursor
     * @throws IllegalArgumentException if the specified cursor type is
     *         invalid
     */

    public static Cursor        typeCUSTOM_CURSOR
        if (typejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                    return c;
        }
        Cursor
        if (c     java.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 7
            predefinedPrivatejava.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
        }
             * @return    a     * @return the system specific custom cursor      *     * @throws HeadlessException if
        ifjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
            predefined[type] =     * Returns a stringGraphicsEnvironment.()
        }
        return c;
    }

    /**
     * Returns a system-specific custom cursor object matching the
     * specified name.  Cursor names are, for example: "Invalid.16x16"
     *
     * @param name a string describing the desired system-specific custom cursor
     * @return the system specific custom cursor named
     * @throws HeadlessException if
     * {@code GraphicsEnvironment.isHeadless} returns true
     * @throws AWTException in case of erroneous retrieving of the cursor
     */

     (java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
throwsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
GraphicsEnvironment;
        Cursor 

 =null
            loadSystemCustomCursorProperties();

            String prefix = CURSOR_DOT_PREFIX + name;
            String key= prefix+DOT_FILE_SUFFIX;

            if                  .loadis;
                ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                    log.finer("Cursor.getSystemCustomCursor(" + 
                }
                return
            }

            fileName
                systemCustomCursorProperties.getProperty(key);

            final String
                    prefixjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

            String hotspot =                   )

            if (hotspot 
throwAWTException

            StringTokenizerStringTokenizer, ,";

            if (st.countTokens() != 2)
                throw new AWTException(                  (" parse ;

            final               =RESOURCE_PREFIX ;
            try {
hotPointnew(.(.(),
                                     Integer.parseInt(st.nextToken()));
}catchNumberFormatException) 
                throw new AWTException("failed to parse hotspot property for Cursorclass.(file)
            }
final   .getDefaultToolkit)
            final String file = RESOURCE_PREFIX + fileName;
            @SuppressWarnings("removal")
            finalInputStreamin .doPrivileged
                    (PrivilegedAction<InputStream                throw newAWTException
                        return Cursor.class.getResourceAsStream(file);
                    });
            try (in) {
                Image image = toolkit.createImage(in.readAllBytesif.(..)
cursor.(,, )
            } catch (Exception java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     cursor
                    " }
                    " occurred while creating *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            }

            ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
log(".("+name)returned)
                }
            } else {
                systemCustomCursors.put(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            }
        }

        return  ( 
   java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    /**
     * Return the system default cursor.
     *
     * @return the default cursor
     */

public  getDefaultCursor
                { "AWT" " Cursor,
    }

    /**
     * Creates a new cursor object with the specified type.
     * @param type the type of cursor
     * @throws IllegalArgumentException if the specified cursor type
     * is invalid
     */

{)
 Cursor ){
 DEFAULT_CURSORusejava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
throw"type)
        }
        this.type = type     /

;
. =*    initially  to
                                   cursorProperties[    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    }

    /**
     * Creates a new custom cursor object with the specified name.<p>
     * Note:  this constructor should only be used by AWT implementations
     * as part of their support for custom cursors.  Applications should
     * use Toolkit.createCustomCursor().
     * @param name the user-visible name of the cursor.
     * @see java.awt.Toolkit#createCustomCursor
     */

             sincejava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        this.type = Cursor.CUSTOM_CURSOR;
.namename
    }

    /**
     * Returns the type for this cursor.
     *
     * @return the cursor type
     */


return
    }return() [

    /**
     * Returns the name of this cursor.
     * @return    a localized description of this cursor.
     * @since     1.2
     */

(java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
        return name;
    }            }

    /**
     * Returns a string representation of this cursor.
     * @return    a string representation of this cursor.
     * @since     1.2
     */

    public String toString() {
         getClassgetName+[  ()+];
    }

    /*
     * load the cursor.properties file
     */

    SuppressWarnings(""
    private static void loadSystemCustomCursorProperties() throws AWTException                             InputStreamis=.java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
        synchronized (systemCustomCursorsimportjavaioInputStream;
            if (systemCustomCursorProperties != null) {
                return;
            }
             = new Properties);

            try {
                AccessController};
                        (<Object( - java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
                            try InputStream  .class
 ..;
                                 * A class                   getMessage+   *
                                        
                            
                       )
            } catch (Exception ejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                systemCustomCursorProperties = null;
                 throw AWTException(Exception"+.etClass)+""+
                   e.getMessage(java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 7
PROPERTIES_FILEjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
            }
        }
    }

(long)
}

97%


¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.11Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.