Java Code Examples for sun.java2d.StateTrackableDelegate#createInstance()

The following examples show how to use sun.java2d.StateTrackableDelegate#createInstance() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DataBuffer.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 *  Constructs a DataBuffer containing one bank of the specified
 *  data type and size with the indicated initial {@link State State}.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = 1;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[1];  // init to 0 by new
}
 
Example 2
Source File: DataBuffer.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 *  Constructs a DataBuffer that contains the specified number
 *  of banks with the indicated initial {@link State State}.
 *  Each bank has the specified datatype, size and offset.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         <code>DataBuffer</code>
 *  @param offset the offset for each bank
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks, int offset)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = offset;
    this.offsets = new int[numBanks];
    for (int i = 0; i < numBanks; i++) {
        this.offsets[i] = offset;
    }
}
 
Example 3
Source File: DataBuffer.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 *  Constructs a DataBuffer containing one bank of the specified
 *  data type and size with the indicated initial {@link State State}.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = 1;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[1];  // init to 0 by new
}
 
Example 4
Source File: DataBuffer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 *  Constructs a DataBuffer that contains the specified number
 *  of banks with the indicated initial {@link State State}.
 *  Each bank has the specified datatype, size and offset.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         <code>DataBuffer</code>
 *  @param offset the offset for each bank
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks, int offset)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = offset;
    this.offsets = new int[numBanks];
    for (int i = 0; i < numBanks; i++) {
        this.offsets[i] = offset;
    }
}
 
Example 5
Source File: DataBuffer.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *  Constructs a DataBuffer containing one bank of the specified
 *  data type and size with the indicated initial {@link State State}.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this {@code DataBuffer}
 *  @param size the size of the banks
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = 1;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[1];  // init to 0 by new
}
 
Example 6
Source File: DataBuffer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 *  Constructs a DataBuffer containing one bank of the specified
 *  data type and size with the indicated initial {@link State State}.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = 1;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[1];  // init to 0 by new
}
 
Example 7
Source File: DataBuffer.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *  Constructs a DataBuffer containing one bank of the specified
 *  data type and size with the indicated initial {@link State State}.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = 1;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[1];  // init to 0 by new
}
 
Example 8
Source File: DataBuffer.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 *  Constructs a DataBuffer that contains the specified number
 *  of banks with the indicated initial {@link State State}.
 *  Each bank has the specified datatype, size and offset.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this {@code DataBuffer}
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         {@code DataBuffer}
 *  @param offset the offset for each bank
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks, int offset)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = offset;
    this.offsets = new int[numBanks];
    for (int i = 0; i < numBanks; i++) {
        this.offsets[i] = offset;
    }
}
 
Example 9
Source File: DataBuffer.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 *  Constructs a DataBuffer containing one bank of the specified
 *  data type and size with the indicated initial {@link State State}.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = 1;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[1];  // init to 0 by new
}
 
Example 10
Source File: DataBuffer.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 *  Constructs a DataBuffer that contains the specified number
 *  of banks with the indicated initial {@link State State}.
 *  Each bank has the specified datatype, size and offset.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         <code>DataBuffer</code>
 *  @param offset the offset for each bank
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks, int offset)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = offset;
    this.offsets = new int[numBanks];
    for (int i = 0; i < numBanks; i++) {
        this.offsets[i] = offset;
    }
}
 
Example 11
Source File: DataBuffer.java    From JDKSourceCode1.8 with MIT License 3 votes vote down vote up
/**
 *  Constructs a DataBuffer which contains the specified number
 *  of banks with the indicated initial {@link State State}.
 *  Each bank has the specified datatype and size.  The
 *  offset for each bank is specified by its respective entry in
 *  the offsets array.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         <code>DataBuffer</code>
 *  @param offsets an array containing an offset for each bank.
 *  @throws ArrayIndexOutOfBoundsException if <code>numBanks</code>
 *          does not equal the length of <code>offsets</code>
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks, int offsets[])
{
    if (numBanks != offsets.length) {
        throw new ArrayIndexOutOfBoundsException("Number of banks" +
             " does not match number of bank offsets");
    }
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = offsets[0];
    this.offsets = (int[])offsets.clone();
}
 
Example 12
Source File: DataBuffer.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 *  Constructs a DataBuffer containing the specified number of
 *  banks with the indicated initial {@link State State}.
 *  Each bank has the specified size and an offset of 0.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         <code>DataBuffer</code>
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[banks]; // init to 0 by new
}
 
Example 13
Source File: DataBuffer.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
 *  Constructs a DataBuffer containing the specified number of
 *  banks with the indicated initial {@link State State}.
 *  Each bank has the specified size and an offset of 0.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this {@code DataBuffer}
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         {@code DataBuffer}
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[banks]; // init to 0 by new
}
 
Example 14
Source File: DataBuffer.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 *  Constructs a DataBuffer which contains the specified number
 *  of banks with the indicated initial {@link State State}.
 *  Each bank has the specified datatype and size.  The
 *  offset for each bank is specified by its respective entry in
 *  the offsets array.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         <code>DataBuffer</code>
 *  @param offsets an array containing an offset for each bank.
 *  @throws ArrayIndexOutOfBoundsException if <code>numBanks</code>
 *          does not equal the length of <code>offsets</code>
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks, int offsets[])
{
    if (numBanks != offsets.length) {
        throw new ArrayIndexOutOfBoundsException("Number of banks" +
             " does not match number of bank offsets");
    }
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = offsets[0];
    this.offsets = (int[])offsets.clone();
}
 
Example 15
Source File: DataBuffer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 *  Constructs a DataBuffer which contains the specified number
 *  of banks with the indicated initial {@link State State}.
 *  Each bank has the specified datatype and size.  The
 *  offset for each bank is specified by its respective entry in
 *  the offsets array.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         <code>DataBuffer</code>
 *  @param offsets an array containing an offset for each bank.
 *  @throws ArrayIndexOutOfBoundsException if <code>numBanks</code>
 *          does not equal the length of <code>offsets</code>
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks, int offsets[])
{
    if (numBanks != offsets.length) {
        throw new ArrayIndexOutOfBoundsException("Number of banks" +
             " does not match number of bank offsets");
    }
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = offsets[0];
    this.offsets = (int[])offsets.clone();
}
 
Example 16
Source File: DataBuffer.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
 *  Constructs a DataBuffer which contains the specified number
 *  of banks with the indicated initial {@link State State}.
 *  Each bank has the specified datatype and size.  The
 *  offset for each bank is specified by its respective entry in
 *  the offsets array.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this {@code DataBuffer}
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         {@code DataBuffer}
 *  @param offsets an array containing an offset for each bank.
 *  @throws ArrayIndexOutOfBoundsException if {@code numBanks}
 *          does not equal the length of {@code offsets}
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks, int[] offsets)
{
    if (numBanks != offsets.length) {
        throw new ArrayIndexOutOfBoundsException("Number of banks" +
             " does not match number of bank offsets");
    }
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = offsets[0];
    this.offsets = offsets.clone();
}
 
Example 17
Source File: DataBuffer.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 *  Constructs a DataBuffer which contains the specified number
 *  of banks with the indicated initial {@link State State}.
 *  Each bank has the specified datatype and size.  The
 *  offset for each bank is specified by its respective entry in
 *  the offsets array.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         <code>DataBuffer</code>
 *  @param offsets an array containing an offset for each bank.
 *  @throws ArrayIndexOutOfBoundsException if <code>numBanks</code>
 *          does not equal the length of <code>offsets</code>
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks, int offsets[])
{
    if (numBanks != offsets.length) {
        throw new ArrayIndexOutOfBoundsException("Number of banks" +
             " does not match number of bank offsets");
    }
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = offsets[0];
    this.offsets = (int[])offsets.clone();
}
 
Example 18
Source File: DataBuffer.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 *  Constructs a DataBuffer containing the specified number of
 *  banks with the indicated initial {@link State State}.
 *  Each bank has the specified size and an offset of 0.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this {@code DataBuffer}
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         {@code DataBuffer}
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[banks]; // init to 0 by new
}
 
Example 19
Source File: DataBuffer.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 *  Constructs a DataBuffer containing the specified number of
 *  banks with the indicated initial {@link State State}.
 *  Each bank has the specified size and an offset of 0.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         <code>DataBuffer</code>
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[banks]; // init to 0 by new
}
 
Example 20
Source File: DataBuffer.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 *  Constructs a DataBuffer containing the specified number of
 *  banks with the indicated initial {@link State State}.
 *  Each bank has the specified size and an offset of 0.
 *
 *  @param initialState the initial {@link State State} state of the data
 *  @param dataType the data type of this <code>DataBuffer</code>
 *  @param size the size of the banks
 *  @param numBanks the number of banks in this
 *         <code>DataBuffer</code>
 *  @since 1.7
 */
DataBuffer(State initialState,
           int dataType, int size, int numBanks)
{
    this.theTrackable = StateTrackableDelegate.createInstance(initialState);
    this.dataType = dataType;
    this.banks = numBanks;
    this.size = size;
    this.offset = 0;
    this.offsets = new int[banks]; // init to 0 by new
}