use of net.parostroj.timetable.model.events.Event in project grafikon by jub77.
the class FreightNet method removeConnectionImpl.
private void removeConnectionImpl(FNConnection conn) {
boolean removed = this.fromMap.remove(conn.getFrom(), conn);
if (removed) {
this.toMap.remove(conn.getTo(), conn);
this.fromTrainMap.remove(conn.getFrom().getTrain(), conn);
this.toTrainMap.remove(conn.getTo().getTrain(), conn);
this.fireEvent(new Event(this, Event.Type.REMOVED, conn));
}
}
use of net.parostroj.timetable.model.events.Event in project grafikon by jub77.
the class Region method fireSubRegionsEvent.
private void fireSubRegionsEvent(Set<Region> old) {
Event event = new Event(diagram, this, new AttributeChange(ATTR_SUB_REGIONS, old, subRegions));
fireEvent(event);
}
use of net.parostroj.timetable.model.events.Event in project grafikon by jub77.
the class Region method fireNodesEvent.
private void fireNodesEvent(Set<Node> old) {
Event event = new Event(diagram, this, new AttributeChange(ATTR_NODES, old, nodes));
fireEvent(event);
}
use of net.parostroj.timetable.model.events.Event in project grafikon by jub77.
the class LineClass method setName.
public void setName(String name) {
if (!ObjectsUtil.compareWithNull(name, this.name)) {
String oldName = this.name;
this.name = name;
listenerSupport.fireEvent(new Event(this, new AttributeChange(ATTR_NAME, oldName, this.name)));
}
}
use of net.parostroj.timetable.model.events.Event in project grafikon by jub77.
the class PenaltyTableRow method setDeceleration.
public void setDeceleration(int deceleration) {
if (this.deceleration != deceleration) {
this.deceleration = deceleration;
category.fireEvent(new Event(category, this, new AttributeChange("penalty.info", null, null)));
}
}
Aggregations