X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/blobdiff_plain/48b4e5c5e6fe4585e875a352483f0a3e7ebf0ea6..08fe01ce0da2855daa402ff903efd0017f0f6b97:/orte/contrib/shape_android/src/org/ocera/orte/shape4a/SubscriberElement.java diff --git a/orte/contrib/shape_android/src/org/ocera/orte/shape4a/SubscriberElement.java b/orte/contrib/shape_android/src/org/ocera/orte/shape4a/SubscriberElement.java index 6a635f5..8dcaec1 100644 --- a/orte/contrib/shape_android/src/org/ocera/orte/shape4a/SubscriberElement.java +++ b/orte/contrib/shape_android/src/org/ocera/orte/shape4a/SubscriberElement.java @@ -48,7 +48,7 @@ public class SubscriberElement extends SubscriptionCallback private NtpTime deadline; private NtpTime minSeparation; - private Box box; + private BoxType box; private ShapeDrawable shape; private View parentView; @@ -67,9 +67,9 @@ public class SubscriberElement extends SubscriptionCallback this.deadline = new NtpTime(6); this.minSeparation = new NtpTime(0); - this.box = new Box(appDomain, PublisherShape.getColorName(color)); + this.box = new BoxType(appDomain, PublisherShape.getColorName(color)); SubsProp subscriberProperties = new SubsProp(this.box.getTopic(), - "Box", + "BoxType", this.minSeparation, this.deadline, ORTEConstant.IMMEDIATE, @@ -136,7 +136,7 @@ public class SubscriberElement extends SubscriptionCallback */ public void setShape() { - switch (this.box.strength) { + switch (this.box.shape) { case 0: this.shape.setShape(new RectShape()); break;