}
this.allowScaling = true;
- this.buffer.order(null); // set buffer to Little endian (Shape uses this)
}
/* (non-Javadoc)
public void onDestroy()
{
super.onDestroy();
-
+
+ handler.removeCallbacks(redraw);
+
+ for (PublisherShape shape : publisherView.shapes)
+ shape.killMe();
+
+ for (SubscriberElement element : subscriberView.elements)
+ element.killMe();
+
if (appDomain != null) {
appDomain.destroy();
appDomain = null;
*/
public void killMe()
{
- this.publication.destroy();
+ if (this.publication != null) {
+ this.publication.destroy();
+ this.publication = null;
+ }
}
/**
this.setShape();
}
+ /**
+ * When subscriber is removed, destroy subscription.
+ *
+ * @since 1.0
+ */
+ public void killMe() {
+ if (this.subscription != null) {
+ this.subscription.destroy();
+ this.subscription = null;
+ }
+ }
}