Examples of Location


Examples of org.springframework.beans.factory.parsing.Location

  public ConfigurationClass getConfigurationClass() {
    return this.configurationClass;
  }

  public Location getResourceLocation() {
    return new Location(this.configurationClass.getResource(), this.metadata);
  }
View Full Code Here

Examples of org.springframework.social.facebook.api.Location

    @Override
    public Location deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
      if (jp.getCurrentToken() == JsonToken.START_OBJECT) {
        return jp.readValueAs(Location.class);
      }
      return new Location(jp.getText());
    }
View Full Code Here

Examples of org.springframework.social.foursquare.api.Location

      .andExpect(method(GET))
      .andRespond(withResponse(new ClassPathResource("testdata/venue.json", getClass()), responseHeaders));
   
    Venue venue = foursquare.venueOperations().getVenue("VENUE_ID");
    assertEquals("3fd66200f964a520dbe91ee3", venue.getId());
    Location location = venue.getLocation();
    assertNotNull(location);
    assertEquals("170 Thompson St", location.getAddress());
    assertEquals("btwn Bleecker & Houston", location.getCrossStreet());
    assertEquals("NY", location.getState());
    assertEquals("New York", location.getCity());
    assertEquals("10012", location.getPostalCode());
    assertEquals("USA", location.getCountry());
    assertEquals(40.7276468d, location.getLatitude(), 0d);
    assertEquals(-74.0002398, location.getLongitude(), 0d);
    mockServer.verify();
  }
View Full Code Here

Examples of org.tomighty.ui.location.Location

    panel.add(component);
  }
 
  public void show(Point mouseLocation) {
    if(canRelocateWindow(mouseLocation)) {
      Location location = Closest.location(mouseLocation);
      Point point = location.determine(getSize());
      setLocation(point);
      gotRelocatedOnceAtLeast = true;
    }
    setVisible(true);
  }
View Full Code Here

Examples of org.zeroexchange.model.location.Location

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }
    public Location getLocation() {
        if(location == null) {
            location = new Location();
        }
        return location;
    }
View Full Code Here

Examples of pdp.scrabble.game.Location

    {
  return charTab[loc.getV()][loc.getH()];
    }
   
    public boolean hasNeighbours(Location square, Direction dir) {
  Location prev=dir.applyReverseTo(square.clone()), next=dir.applyTo(square.clone());
  return (contains(prev) && !isFree(prev)) ||
    (contains(next) && !isFree(next));
    }
View Full Code Here

Examples of pl.tomaszdziurko.itemdirectory.domain.entities.items.Location

 
  @SpringBean
  private LocationDao locationDao;
 
  public AddEditLocationPage() {
    setDefaultModel(new Model<Location>(new Location()));
    initGui();
  }
View Full Code Here

Examples of ptolemy.kernel.util.Location

        _leds = new RectangleAttribute[rowsValue][columnsValue];
        for (int x = 0; x < rowsValue; x++) {
            for (int y = 0; y < columnsValue; y++) {
                RectangleAttribute rectangle = new RectangleAttribute(
                        _ledArray_icon, "_led_" + x + "_" + y);
                Location location = new Location(rectangle, "_location");
                double[] ledLocationValue = { x * 20, y * 20 };
                location.setLocation(ledLocationValue);
                rectangle.width.setToken("20.0");
                rectangle.height.setToken("39.0");
                rectangle.centered.setToken("true");
                rectangle.fillColor.setToken("{0.0, 0.0, 0.0, 1.0}");
                _leds[x][y] = rectangle;
View Full Code Here

Examples of shapes.common.Location

    builder.setLocation(50, 100);
    final Shape s = builder.getProduct();
    System.out.println(s.accept(new Size()) + " basic shapes");

    // calculate the bounding box
    final Location b = s.accept(new BoundingBox());
    final Rectangle r = (Rectangle) b.getChild();

    // draw it in a frame centered around the bounding box
    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    final int padding = 20;
    @SuppressWarnings("serial")
    JPanel p = new JPanel() {
      @Override
      public void paintComponent(Graphics g) {
        g.translate(-b.getX() + padding, -b.getY() + padding);
        s.accept(new Draw(g));
        s.accept(new BoundingBox()).accept(new Draw(g));
      }
    };
    p.setPreferredSize(new Dimension(r.getWidth() + 2 * padding, r.getHeight() + 2 * padding));
 
View Full Code Here

Examples of siia.booking.domain.Location

    @Test
    public void testMarshallingLeg() throws Exception{
        long day = 24 * 60 * 60 * 1000;
        Leg leg = new Leg(new DateTime(day, ISOChronology.getInstanceUTC()), new DateTime(day * 2, ISOChronology.getInstanceUTC()),
                new Location("UK", "London"), new Location("US", "New York"));

        StringWriter writer = new StringWriter();
        StreamResult res = new StreamResult(writer);
        marshaller.marshal(leg, res);

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.