Example usage for javax.media.j3d Material getEmissiveColor

List of usage examples for javax.media.j3d Material getEmissiveColor

Introduction

In this page you can find the example usage for javax.media.j3d Material getEmissiveColor.

Prototype

public void getEmissiveColor(Color3f color) 

Source Link

Document

Retrieves this material's emissive color and stores it in the argument provided.

Usage

From source file:AppearanceExplorer.java

public void actionPerformed(ActionEvent e) {
    Material copyMaterial = materialPresets[presetChooser.getValue()];

    lightingEnable = copyMaterial.getLightingEnable();
    copyMaterial.getAmbientColor(ambientColor);
    copyMaterial.getDiffuseColor(diffuseColor);
    copyMaterial.getEmissiveColor(emissiveColor);
    copyMaterial.getSpecularColor(specularColor);
    shininess = copyMaterial.getShininess();

    // update the GUI
    lightingEnableCheckBox.setSelected(lightingEnable);
    material.setLightingEnable(lightingEnable);
    ambientEditor.setValue(ambientColor);
    diffuseEditor.setValue(diffuseColor);
    emissiveEditor.setValue(emissiveColor);
    specularEditor.setValue(specularColor);
    shininessSlider.setValue(shininess);
}