JDK 11 java.desktop.jmod - Desktop Module

JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.

JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.

JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.desktop.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

com/sun/media/sound/SoftChannelProxy.java

/*
 * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package com.sun.media.sound;

import javax.sound.midi.MidiChannel;

/**
 * A MidiChannel proxy object used for external access to synthesizer internal
 * channel objects.
 *
 * @author Karl Helgason
 */
public final class SoftChannelProxy implements MidiChannel {

    private MidiChannel channel = null;

    public MidiChannel getChannel() {
        return channel;
    }

    public void setChannel(MidiChannel channel) {
        this.channel = channel;
    }

    @Override
    public void allNotesOff() {
        if (channel == null)
            return;
        channel.allNotesOff();
    }

    @Override
    public void allSoundOff() {
        if (channel == null)
            return;
        channel.allSoundOff();
    }

    @Override
    public void controlChange(int controller, int value) {
        if (channel == null)
            return;
        channel.controlChange(controller, value);
    }

    @Override
    public int getChannelPressure() {
        if (channel == null)
            return 0;
        return channel.getChannelPressure();
    }

    @Override
    public int getController(int controller) {
        if (channel == null)
            return 0;
        return channel.getController(controller);
    }

    @Override
    public boolean getMono() {
        if (channel == null)
            return false;
        return channel.getMono();
    }

    @Override
    public boolean getMute() {
        if (channel == null)
            return false;
        return channel.getMute();
    }

    @Override
    public boolean getOmni() {
        if (channel == null)
            return false;
        return channel.getOmni();
    }

    @Override
    public int getPitchBend() {
        if (channel == null)
            return 8192;
        return channel.getPitchBend();
    }

    @Override
    public int getPolyPressure(int noteNumber) {
        if (channel == null)
            return 0;
        return channel.getPolyPressure(noteNumber);
    }

    @Override
    public int getProgram() {
        if (channel == null)
            return 0;
        return channel.getProgram();
    }

    @Override
    public boolean getSolo() {
        if (channel == null)
            return false;
        return channel.getSolo();
    }

    @Override
    public boolean localControl(boolean on) {
        if (channel == null)
            return false;
        return channel.localControl(on);
    }

    @Override
    public void noteOff(int noteNumber) {
        if (channel == null)
            return;
        channel.noteOff(noteNumber);
    }

    @Override
    public void noteOff(int noteNumber, int velocity) {
        if (channel == null)
            return;
        channel.noteOff(noteNumber, velocity);
    }

    @Override
    public void noteOn(int noteNumber, int velocity) {
        if (channel == null)
            return;
        channel.noteOn(noteNumber, velocity);
    }

    @Override
    public void programChange(int program) {
        if (channel == null)
            return;
        channel.programChange(program);
    }

    @Override
    public void programChange(int bank, int program) {
        if (channel == null)
            return;
        channel.programChange(bank, program);
    }

    @Override
    public void resetAllControllers() {
        if (channel == null)
            return;
        channel.resetAllControllers();
    }

    @Override
    public void setChannelPressure(int pressure) {
        if (channel == null)
            return;
        channel.setChannelPressure(pressure);
    }

    @Override
    public void setMono(boolean on) {
        if (channel == null)
            return;
        channel.setMono(on);
    }

    @Override
    public void setMute(boolean mute) {
        if (channel == null)
            return;
        channel.setMute(mute);
    }

    @Override
    public void setOmni(boolean on) {
        if (channel == null)
            return;
        channel.setOmni(on);
    }

    @Override
    public void setPitchBend(int bend) {
        if (channel == null)
            return;
        channel.setPitchBend(bend);
    }

    @Override
    public void setPolyPressure(int noteNumber, int pressure) {
        if (channel == null)
            return;
        channel.setPolyPressure(noteNumber, pressure);
    }

    @Override
    public void setSolo(boolean soloState) {
        if (channel == null)
            return;
        channel.setSolo(soloState);
    }
}

com/sun/media/sound/SoftChannelProxy.java

 

Or download all of them as a single archive file:

File name: java.desktop-11.0.1-src.zip
File size: 7974380 bytes
Release date: 2018-11-04
Download 

 

JDK 11 java.instrument.jmod - Instrument Module

JDK 11 java.datatransfer.jmod - Data Transfer Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2022-08-06, 197658👍, 5💬