use of org.concord.energy3d.model.Rack in project energy3d by concord-consortium.
the class ChangeAzimuthForAllRacksCommand method redo.
@Override
public void redo() throws CannotRedoException {
super.redo();
final int n = racks.size();
for (int i = 0; i < n; i++) {
final Rack r = racks.get(i);
r.setRelativeAzimuth(newValues[i]);
r.draw();
}
SceneManager.getInstance().refresh();
}
use of org.concord.energy3d.model.Rack in project energy3d by concord-consortium.
the class ChangeFoundationRackTiltAngleCommand method redo.
@Override
public void redo() throws CannotRedoException {
super.redo();
final int n = racks.size();
for (int i = 0; i < n; i++) {
final Rack r = racks.get(i);
r.setTiltAngle(newValues[i]);
r.draw();
}
SceneManager.getInstance().refresh();
}
use of org.concord.energy3d.model.Rack in project energy3d by concord-consortium.
the class ChangeFoundationRackTiltAngleCommand method undo.
@Override
public void undo() throws CannotUndoException {
super.undo();
final int n = racks.size();
newValues = new double[n];
for (int i = 0; i < n; i++) {
final Rack r = racks.get(i);
newValues[i] = r.getTiltAngle();
r.setTiltAngle(oldValues[i]);
r.draw();
}
SceneManager.getInstance().refresh();
}
use of org.concord.energy3d.model.Rack in project energy3d by concord-consortium.
the class ChangeMonthlyTiltAnglesForAllRacksCommand method undo.
@Override
public void undo() throws CannotUndoException {
super.undo();
final int n = racks.size();
newValues = new double[n][12];
for (int i = 0; i < n; i++) {
final Rack r = racks.get(i);
newValues[i] = r.getMonthlyTiltAngles();
r.setMonthlyTiltAngles(oldValues[i]);
r.draw();
}
SceneManager.getInstance().refresh();
}
use of org.concord.energy3d.model.Rack in project energy3d by concord-consortium.
the class ChangeMonthlyTiltAnglesForAllRacksCommand method redo.
@Override
public void redo() throws CannotRedoException {
super.redo();
final int n = racks.size();
for (int i = 0; i < n; i++) {
final Rack r = racks.get(i);
r.setMonthlyTiltAngles(newValues[i]);
r.draw();
}
SceneManager.getInstance().refresh();
}
Aggregations