Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit a6fa6ecb authored by Jakob Schöttl's avatar Jakob Schöttl
Browse files

Fix code and comments

parent 5299ffa4
......@@ -4,7 +4,6 @@ import java.awt.Color;
import java.awt.Cursor;
import java.awt.Font;
import java.awt.Point;
import java.awt.event.ComponentListener;
import java.util.Observer;
import org.vadere.gui.components.control.IMode;
......@@ -21,6 +20,7 @@ import org.vadere.util.geometry.shapes.VShape;
public interface IDrawPanelModel<T extends DefaultConfig> extends IDefaultModel<T>, Iterable<ScenarioElement> {
@Override
void notifyObservers();
/**
......@@ -67,17 +67,20 @@ public interface IDrawPanelModel<T extends DefaultConfig> extends IDefaultModel<
*
* @return true if the user is selecting a topography element, otherwise false.
*/
@Override
boolean isSelectionVisible();
/**
* After this call the selction shape will be painted.
*/
@Override
void showSelection();
/**
* After this call the selction shape will no longer be painted.
*/
@Override
void hideSelection();
/**
......@@ -93,14 +96,17 @@ public interface IDrawPanelModel<T extends DefaultConfig> extends IDefaultModel<
void resetScenario();
@Override
ScenarioElement getSelectedElement();
Color getCursorColor();
void setCursorColor(Color red);
@Override
void setMouseSelectionMode(IMode selectionMode);
@Override
IMode getMouseSelectionMode();
Cursor getCursor();
......@@ -128,6 +134,7 @@ public interface IDrawPanelModel<T extends DefaultConfig> extends IDefaultModel<
* @param position
* @return
*/
@Override
ScenarioElement setSelectedElement(VPoint position);
boolean removeElement(ScenarioElement element);
......@@ -142,10 +149,12 @@ public interface IDrawPanelModel<T extends DefaultConfig> extends IDefaultModel<
void setTopography(Topography topography);
@Override
void notifyObservers(final Object string);
int getBoundId();
@Override
void setSelectedElement(ScenarioElement selectedElement);
VShape translate(Point vector);
......
......@@ -25,7 +25,6 @@ import org.vadere.util.geometry.shapes.VShape;
/**
* The data of the DrawPanel. Its holds the whole data of one scenario.
*
*
*/
public class TopographyCreatorModel extends DefaultModel implements IDrawPanelModel {
......@@ -221,13 +220,6 @@ public class TopographyCreatorModel extends DefaultModel implements IDrawPanelMo
return font;
}
/*
* @Override
* public double getFinishTime() {
* return topographyBuilder.getAttributes().getFinishTime();
* }
*/
@Override
public void setTopographyBound(final VRectangle scenarioBound) {
try {
......@@ -437,9 +429,9 @@ public class TopographyCreatorModel extends DefaultModel implements IDrawPanelMo
return topographyBuilder.build();
}
// privte helper methods
private VPoint alignToGrid(final VPoint point) {
double factor = Math.max(10, 1 / getGridResolution());
return new VPoint(Math.round(point.x * factor) / factor, Math.round(point.y * factor) / factor);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment