Package de.hpi.eworld.activitygen.model

Examples of de.hpi.eworld.activitygen.model.CityPropertyModels


  private Container setupMainStatisticsPane() {
    LabeledElementListPanel mainStatisticsPane = new LabeledElementListPanel();
    mainStatisticsPane.setAlignmentX(Component.LEFT_ALIGNMENT);
    mainStatisticsPane.setBorder(paddingBorder);

    CityPropertyModels cityPropertyModels = CityPropertyModels
        .getInstance();
    JSpinner s;
    s = mainStatisticsPane.addLabeledSpinner("Number of inhabitants",
        cityPropertyModels.getInhabitantsModel());
    ((JSpinner.DefaultEditor) s.getEditor()).getTextField().setColumns(
        spinnerColumnNumber);
    s = mainStatisticsPane.addLabeledSpinner("Number of households",
        cityPropertyModels.getHouseholdsModel());
    ((JSpinner.DefaultEditor) s.getEditor()).getTextField().setColumns(
        spinnerColumnNumber);
    mainStatisticsPane.addLabeledSpinner("Unemployment rate",
        cityPropertyModels.getUnemploymentRateModel(), "0%");

    return mainStatisticsPane;
  }
View Full Code Here


    LabeledElementListPanel settingsPane = new LabeledElementListPanel();
    Border lineBorder = BorderFactory.createLineBorder(getForeground());
    settingsPane.setBorder(BorderFactory.createCompoundBorder(lineBorder,
        paddingBorder));

    CityPropertyModels cityPropertyModels = CityPropertyModels
        .getInstance();
    JSpinner s;
    s = settingsPane.addLabeledSpinner("Age limit for children",
        cityPropertyModels.getChildrenAgeLimitModel());
    ((JSpinner.DefaultEditor) s.getEditor()).getTextField().setColumns(
        spinnerColumnNumber);
    settingsPane.addLabeledSpinner("Age of retirement",
        cityPropertyModels.getRetirementAgeLimitModel());
    settingsPane.addLabeledSpinner("Person-car relation",
        cityPropertyModels.getCarPersonRelationModel(), "0%");
    settingsPane.addLabeledSpinner("Car preference",
        cityPropertyModels.getCarPreferenceModel(), "0%");
    settingsPane.addLabeledSpinner("Free time acitivity rate",
        cityPropertyModels.getFreeTimeActivityRateModel(), "0%");
    settingsPane.addLabeledSpinner("Uniform random traffic",
        cityPropertyModels.getUniformRandomTrafficModel(), "0%");
    settingsPane.addLabeledSpinner("Departure variation",
        cityPropertyModels.getDepartureVariationModel(), "0");
    settingsPane.addLabeledSpinner("Mean speed", //
        cityPropertyModels.getMeanSpeedModel(), "0");
    settingsPane.addLabeledSpinner("Walking distance limit",
        cityPropertyModels.getWalkingDistanceLimitModel(), "0");

    return settingsPane;
  }
View Full Code Here

TOP

Related Classes of de.hpi.eworld.activitygen.model.CityPropertyModels

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.