- public SegmentImpl() {
- super();
- start = 0 ;
- end = 0 ;
- name = "Unknown";
- color = Color.white ;
- txtColor = "white" ;
- parent = null ;
- note = "";
- }
-
- public boolean equals(Segment s){
- if ( s == null)
- return false;
-
- if ( ( start == s.getStart() ) &&
- ( end == s.getEnd() ) &&
- ( name.equals(s.getName()))
- )
+ public SegmentImpl()
+ {
+ super();
+ start = 0;
+ end = 0;
+ name = "Unknown";
+ color = Color.white;
+ txtColor = "white";
+ parent = null;
+ note = "";
+ }
+
+ public boolean equals(Segment s)
+ {
+ if (s == null)
+ return false;
+
+ if ((start == s.getStart()) && (end == s.getEnd())
+ && (name.equals(s.getName())))
+ {
+ if (note == null)
+ {
+ if (s.getNote() == null)
+ return true;
+ }
+ else
+ {
+ if (s.getNote() != null)