Examples of Mapa


Examples of modelo.Mapa

     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                MapaVista dialog = new MapaVista(new javax.swing.JFrame(), true, new Mapa(1, "Mapa de Loja", new Mapeo().mapearLocalidades()));
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {

                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
View Full Code Here

Examples of modelo.Mapa

        // supported by this particular VM on this particular host
        if (Desktop.isDesktopSupported()) {
            desktop = Desktop.getDesktop();
        }
        configurarCabecera();
        this.mapaDatos = new Mapa(1, "Mapa Loja", new Mapeo().mapearLocalidades());
        this.cargarAnimacion();

        this.modeloCombo1 = new ModeloComboBox(this.mapaDatos.getLugaresEntrega());
        this.jComboBoxBarrios.setModel(modeloCombo1);
        this.modeloCombo2 = new ModeloComboBox(this.mapaDatos.getLugaresEntrega());
View Full Code Here

Examples of modelo.Mapa

        }
        return listaLocalidades;
    }

    public void mapearMapa() {
        this.mapa = new Mapa(1, "Loja", mapearLocalidades());
    }
View Full Code Here

Examples of modelo.Mapa

    }

    public static void main(String[] args) {
        JFrame frame = new JFrame("Pizarra");
        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        PizarraSimulacion chart = new PizarraSimulacion(new Mapa(1, "Loja", new Mapeo().mapearLocalidades()));
        frame.add(chart, BorderLayout.CENTER);
        frame.pack();
        frame.setVisible(true);
        chart.createBufferStrategy(2);
View Full Code Here

Examples of modelo.Mapa

        JFrame frame = new JFrame("Pizarra");

        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

        Pizarra chart = new Pizarra(new Mapa(1, "Loja", new Mapeo().mapearLocalidades()));

        frame.add(chart, BorderLayout.CENTER);
        frame.pack();
        frame.setVisible(true);
        chart.createBufferStrategy(2);
View Full Code Here

Examples of modelo.mapa.Mapa

    ciudad0.agregarLocal(local0);
    ciudad1.agregarLocal(local1);
    ciudad2.agregarLocal(local2);

    // Creo Mapa
    Mapa mapa = new Mapa();
    mapa.agregarCiudad(ciudad0);
    mapa.agregarCiudad(ciudad1);
    mapa.agregarCiudad(ciudad2);
    mapa.agregarCiudad(ciudad3);
    mapa.agregarCiudad(ciudad4);

    // Creo ObjetoRobado
    ObjetoRobado objeto = new ObjetoRobado(Valor.COMUN);

    // Creo Ladron
View Full Code Here

Examples of modelo.mapa.Mapa

  static final String SAVEDPATH = "xml/saved/";

  public static Mapa cargarMapa() throws ParserConfigurationException, SAXException, IOException {
    Document doc = inicializarDocumento(PATH + "mapa.xml");

    Mapa mapaCargado = Mapa.deserializar(doc);
    return mapaCargado;
  }
View Full Code Here

Examples of modelo.mapa.Mapa

  }

  public static Partida cargarPartida(Policia policia) throws ParserConfigurationException, SAXException, IOException {
    Document doc = inicializarDocumento(PATH + "partida" + policia.getRango().getNombre() + ".xml");

    Mapa mapa = cargarMapa();

    OrdenDeArresto orden = new OrdenDeArresto();
    orden.CargarBaseDeDatos();

    Partida unaPartida = Partida.deserializar(doc, policia, mapa, orden);
View Full Code Here

Examples of modelo.mapa.Mapa

    ciudad0.agregarLocal(local0);
    ciudad1.agregarLocal(local1);
    ciudad2.agregarLocal(local2);

    // Creo Mapa
    Mapa mapa = new Mapa();
    mapa.agregarCiudad(ciudad0);
    mapa.agregarCiudad(ciudad1);
    mapa.agregarCiudad(ciudad2);
    mapa.agregarCiudad(ciudad3);
    mapa.agregarCiudad(ciudad4);

    // Creo ObjetoRobado
    ObjetoRobado objeto = new ObjetoRobado(Valor.COMUN);

    // Creo Ladron
View Full Code Here

Examples of modelo.mapa.Mapa

  private Ciudad ciudad0;
  private Ciudad ciudad1;

  @Before
  public void setUp() {
    this.mapa = new Mapa();

    Coordenada ubicacion0 = new Coordenada(0, 0);
    this.ciudad0 = new Ciudad(ubicacion0);
    Coordenada ubicacion1 = new Coordenada(10, 10);
    this.ciudad1 = new Ciudad(ubicacion1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.