Mercurial > hg > Members > sugi > javafx
view src/alice/test/topology/aquarium/fx/FishData.java @ 4:50d77513d52e
Platform runLater must use for handling instance from other thread (Not on FX application thread )
author | e095732 |
---|---|
date | Mon, 28 Jan 2013 00:22:17 +0900 |
parents | b997f2ce1a04 |
children | ae0a39622a58 |
line wrap: on
line source
package alice.test.topology.aquarium.fx; import java.util.Random; import org.msgpack.annotation.Message; @Message public class FishData { public double x; public double y; public double z; public FishData(){ Random rnd = new Random(); x = (double) rnd.nextInt(800); y = (double) rnd.nextInt(800); z = (double) rnd.nextInt(800); } public FishData(double _x, double _y, double _z){ x = _x; y = _y; z = _z; } }