Commit 4e2ee51f authored by Nico Mack's avatar Nico Mack

Minor change to constructor of InfoWidget

parent 78ca958e
......@@ -24,7 +24,6 @@ import lu.list.itis.dkd.dbc.annotation.NonNullByDefault;
import lu.list.itis.dkd.tui.content.InformationProvider;
import lu.list.itis.dkd.tui.content.InformationReceiver;
import lu.list.itis.dkd.tui.widget.builder.BaseInfoBuilder;
import lu.list.itis.dkd.tui.widget.builder.InfoWidgetBuilder;
import lu.list.itis.dkd.tui.widget.corona.FadingCorona;
import lu.list.itis.dkd.tui.widget.tether.InformationFeed;
import lu.list.itis.dkd.tui.widget.tether.Tether;
......@@ -65,7 +64,7 @@ public class InfoWidget extends TetherableWidget implements TetherListener {
*/
// ---------------------------------------------------------------------------
public InfoWidget(BaseInfoBuilder<InfoWidgetBuilder> builder) {
public InfoWidget(BaseInfoBuilder<?> builder) {
super(builder);
this.addTetherListener(this);
}
......@@ -104,7 +103,7 @@ public class InfoWidget extends TetherableWidget implements TetherListener {
// ---------------------------------------------------------------------------
@SuppressWarnings({"rawtypes", "unchecked"})
private void setupTether(TetherEvent event) {
protected void setupTether(TetherEvent event) {
Tetherable target;
target = event.getTarget();
......@@ -129,7 +128,7 @@ public class InfoWidget extends TetherableWidget implements TetherListener {
// ---------------------------------------------------------------------------
@SuppressWarnings({"rawtypes", "unchecked"})
private void tearDownTether(TetherEvent event) {
protected void tearDownTether(TetherEvent event) {
Tetherable target;
target = event.getTarget();
......
......@@ -757,7 +757,7 @@ public class TetherManager {
public List<Tether> move(Point newPosition) {
List<Tether> draggedTethers = null;
Point tetherOrigin = this.getTetherOrigin(newPosition); // newPosition.toScreenCoordinates();
Point tetherOrigin = this.getTetherOrigin(newPosition);
this.tetherable.setTetherOrigin(tetherOrigin);
double shortestTether = this.shortestTether();
......
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