com.pesegato.mermaid.PRadioGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Mermaid Show documentation
Show all versions of Mermaid Show documentation
3D GUI widgets for JMonkeyEngine 3
The newest version!
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.pesegato.mermaid;
import java.util.ArrayList;
/**
*
*/
public class PRadioGroup {
ArrayList pSwitchs = new ArrayList();
PrismaticPane pp;
int currentlyPressed=0;
public void addSwitch(PSwitch pswitch) {
pSwitchs.add(pswitch);
pswitch.setRadioGroup(this);
}
public void setPrismaticPane(PrismaticPane pp){
this.pp=pp;
}
void pressed(int number) {
for (int i = 0; i < pSwitchs.size(); i++) {
if (i != number) {
pSwitchs.get(i).release();
}
}
int numGiri=0;
if (number
© 2015 - 2024 Weber Informatics LLC | Privacy Policy