Commit 0152e872 authored by Nico Mack's avatar Nico Mack

Minor bug fixes and improvements

parent 99a6f7b7
......@@ -135,7 +135,7 @@ public class ScriptUtils {
if ((scriptable != null) && (field != null)) {
property = new ScriptableProperty<>(scriptable, field);
} else {
LOGGER.error("No such property {} in class {}!", property, root.getClass().getSimpleName()); //$NON-NLS-1$
LOGGER.error("No such property {} in class {}!", propertyPath, root.getClass().getSimpleName()); //$NON-NLS-1$
}
return property;
......
......@@ -222,6 +222,11 @@ public abstract class Corona implements Drawable, Tetherable, Connectable<Drawab
this.setupTouch();
if (builder.connector != null) {
this.connectionManager = new ConnectionManager(this, builder.exclusive);
this.connector = builder.connector;
}
scripts = builder.scripts;
this.setupScripts(scripts);
this.setupInteractions(builder.interactions);
......@@ -239,10 +244,6 @@ public abstract class Corona implements Drawable, Tetherable, Connectable<Drawab
this.rotatesWithTether = builder.rotatesWithTether;
}
if (builder.connector != null) {
this.connectionManager = new ConnectionManager(this, builder.exclusive);
this.connector = builder.connector;
}
clippingRegion = new Area();
......@@ -275,6 +276,11 @@ public abstract class Corona implements Drawable, Tetherable, Connectable<Drawab
this.setupTouch();
if (original.connector != null) {
this.connectionManager = new ConnectionManager(this, original.connectionManager.isExclusive());
this.connector = original.connector.clone();
}
scripts = this.cloneScripts();
this.setupScripts(scripts);
......@@ -290,6 +296,7 @@ public abstract class Corona implements Drawable, Tetherable, Connectable<Drawab
this.rotatesWithTether = original.rotatesWithTether;
}
this.setupComparator();
}
......
......@@ -46,8 +46,8 @@ public class Sector extends SelectableCorona {
protected double size;
protected double innerRadius;
protected double outerRadius;
protected int startAngle;
protected int arcSpan;
protected double startAngle;
protected double arcSpan;
protected double labelAngle;
protected int gap;
......
......@@ -45,9 +45,9 @@ public abstract class BaseSectorBuilder<B extends BaseSectorBuilder<B>> extends
/** Specifies the outer radius of the sector to build */
public double outerRadius;
/** Specifies the angle in degrees where the sector starts from */
public int startAngle;
public double startAngle;
/** Specifies the length of the arc expressed in degrees */
public int arcSpan;
public double arcSpan;
/** Specifies an optional angle to start displaying radial text from */
public double labelAngle;
/**
......
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