-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show coords, length/size of objects add global options add 3d zoom with wheel add setuplist.txt fix import header fixes for touch
- Loading branch information
Showing
14 changed files
with
352 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.falstad.ripple.client; | ||
|
||
public class EditOptions implements Editable { | ||
RippleSim sim; | ||
public EditOptions(RippleSim s) { sim = s; } | ||
EditInfo offsetEditInfo; | ||
public EditInfo getEditInfo(int n) { | ||
if (n == 0) | ||
return new EditInfo("Grid size", sim.windowWidth, 0, 0).setDimensionless(); | ||
if (n == 1) | ||
return offsetEditInfo = new EditInfo("Absorbing area width", sim.windowOffsetX, 0, 0).setDimensionless(); | ||
return null; | ||
} | ||
public void setEditValue(int n, EditInfo ei) { | ||
if (n == 0 && ei.value > 0) { | ||
sim.setResolution((int)ei.value); | ||
offsetEditInfo.value = sim.windowOffsetX; | ||
EditDialog.theEditDialog.updateValue(offsetEditInfo); | ||
} | ||
if (n == 1 && ei.value > 0) | ||
sim.setResolution(sim.windowWidth, (int)ei.value); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.