private static final long serialVersionUID = -5540999051056414851L;
+ /**
+ * The scene graph is essentially single-threaded, meaning nodes should be
+ * created in one thread only. For this reason, we are not using AtomicLong
+ * here.
+ */
public transient static long IDCOUNTER = 1;
+ protected long id = IDCOUNTER++;
protected transient ParentNode<?> parent = null;
protected transient Location location = Location.LOCAL;
// Support for only one listener should be enough, thus we don't need PropertyChangeSupport
protected transient PropertyChangeListener propertyChangeListener = null;
- protected Long id = IDCOUNTER++;
-
/**
* @see org.simantics.scenegraph.INode#getId()
*/
- public Long getId() {
+ public long getId() {
return id;
}
*/
public void init() {
}
-
- public void attach() {
- }
-
/**
* @see org.simantics.scenegraph.INode#cleanup()