Search in sources :

Example 6 with TrainDiagramPartFactory

use of net.parostroj.timetable.model.TrainDiagramPartFactory in project grafikon by jub77.

the class EditRegionsDialog method createNew.

@Override
protected Region createNew(String name) {
    TrainDiagramPartFactory factory = element.getPartFactory();
    Region newRegion = factory.createRegion(factory.createId());
    newRegion.setName(name);
    return newRegion;
}
Also used : Region(net.parostroj.timetable.model.Region) TrainDiagramPartFactory(net.parostroj.timetable.model.TrainDiagramPartFactory)

Aggregations

TrainDiagramPartFactory (net.parostroj.timetable.model.TrainDiagramPartFactory)6 TimetableImage (net.parostroj.timetable.model.TimetableImage)3 BufferedImage (java.awt.image.BufferedImage)1 JFileChooser (javax.swing.JFileChooser)1 Wrapper (net.parostroj.timetable.gui.wrappers.Wrapper)1 Company (net.parostroj.timetable.model.Company)1 Group (net.parostroj.timetable.model.Group)1 Region (net.parostroj.timetable.model.Region)1