|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsnakeprogram3d.SnakeIO
public class SnakeIO
Mostly static class for reading and writing snakes. Also used for opening dialogs
| Constructor Summary | |
|---|---|
SnakeIO()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getOpenFileName(java.awt.Frame parent)
Open file dialog |
static java.lang.String |
getOpenFileName(java.awt.Frame parent,
java.lang.String s)
Open file dialog |
static java.lang.String |
getSaveFileName(java.awt.Frame parent,
java.lang.String title)
Save file dialog |
static MultipleSnakesStore |
loadSnakes(java.awt.Frame frame,
java.util.HashMap<java.lang.String,java.lang.Double> constants)
For loading snakes from api/plugin context. |
static MultipleSnakesStore |
loadSnakes(SnakeFrame parent)
This loads the snakes from a snake store file. |
static void |
writeSnakeElongationData(SnakeFrame parent,
MultipleSnakesStore SnakeStore,
int total_frames)
Writes out the elongation data for each snake in px, as a function of time. |
static void |
writeSnakes(SnakeFrame parent,
MultipleSnakesStore SnakeStore)
Writes out the Snake Data for saving and restoring the actual traced snakes. |
static void |
writeSnakes(SnakeFrame parent,
MultipleSnakesStore SnakeStore,
java.io.File f)
Writes out the Snake Data for saving and restoring the actual traced snakes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SnakeIO()
| Method Detail |
|---|
public static java.lang.String getSaveFileName(java.awt.Frame parent,
java.lang.String title)
public static java.lang.String getOpenFileName(java.awt.Frame parent)
public static java.lang.String getOpenFileName(java.awt.Frame parent,
java.lang.String s)
public static void writeSnakeElongationData(SnakeFrame parent,
MultipleSnakesStore SnakeStore,
int total_frames)
parent - This is a snake frame, it is nescessary to get the constantsSnakeStore - Contains the snake datatotal_frames - for writing elongation data of every frame even when there isn't a snake
public static void writeSnakes(SnakeFrame parent,
MultipleSnakesStore SnakeStore)
parent - This is a snake frame, it is nescessary to get the constantsSnakeStore - Contains the snake data
public static void writeSnakes(SnakeFrame parent,
MultipleSnakesStore SnakeStore,
java.io.File f)
parent - This is a snake frame, it is nescessary to get the constantsSnakeStore - Contains the snake dataf - uses this file.
public static MultipleSnakesStore loadSnakes(java.awt.Frame frame,
java.util.HashMap<java.lang.String,java.lang.Double> constants)
frame - for showing dialogs, could be null if nescessaryconstants - will be filled/updated with constants from the snake file.
public static MultipleSnakesStore loadSnakes(SnakeFrame parent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||