Examples of Position


Examples of com.googlecode.gmaps4jsf.component.common.Position

    String postalCode;
    String address;
    String location;
   
    public void processValueChangeForMarker(ValueChangeEvent valueChangeEvent) {
      Position value = (Position) valueChangeEvent.getNewValue();
       
        if (value != null) {
            try {
                PlaceMark placeMark = GenericServicesFactory.getLocationService().getAddressFromLocation (value.getLatitude(), value.getLongitude());
               
                address    = placeMark.getAddress();
                postalCode = placeMark.getPostalCodeNumber();
                location   = value.getLatitude() + ", " + value.getLongitude();
               
                System.out.println("LatLng: " + value.getLatitude() + ", " + value.getLongitude());
                System.out.println("address: " + address);
                System.out.println("postalCode: " + postalCode);
            } catch (Exception e) {
                e.printStackTrace();
            }
View Full Code Here

Examples of com.invient.vaadin.charts.InvientChartsConfig.Position

    yAxesSet.add(numberYAxis);
    chartConfig.setYAxes(yAxesSet);

    Legend legend = new Legend();
    legend.setLayout(Layout.VERTICAL);
    Position legendPos = new Position();
    // legendPos.setAlign(HorzAlign.CENTER);
    // legendPos.setVertAlign(VertAlign.BOTTOM);
    // legendPos.setX(-50);
    legendPos.setY(-250);
    legend.setPosition(legendPos);
    // legend.setBorderWidth(0);
    // chartConfig.setLegend(legend);
    chartConfig.setCredit(null);
    chartConfig.setSubtitle(null);
View Full Code Here

Examples of com.jcloisterzone.board.Position

        int i = 0;
        for (Location side : Location.sides()) {
            if (side.intersect(completable.getLocation()) != null) {
                if (completable.getEdges()[i] == null) {
                    //side is open
                    Position p = completable.getTile().getPosition().add(side);
                    if (!openEdgesChanceToClose.containsKey(p)) {
                        OpenEdge edge = new OpenEdge();
                        edge.chanceToClose = aiPlayer.chanceToPlaceTile(game, p);
                        edge.feature = completable;
                        edge.location = side;
View Full Code Here

Examples of com.jeecms.common.image.ImageUtils.Position

   * @throws IOException
   */
  private static void imageMark(BufferedImage imgBuff, int width, int height,
      int pos, int offsetX, int offsetY, String text, Color color,
      int size, int alpha) throws IOException {
    Position p = ImageUtils.markPosition(width, height, pos, offsetX,
        offsetY);
    Graphics2D g = imgBuff.createGraphics();
    g.setColor(color);
    g.setFont(new Font(null, Font.PLAIN, size));
    AlphaComposite a = AlphaComposite.getInstance(AlphaComposite.SRC_ATOP,
        (float) alpha / 100);
    g.setComposite(a);
    g.drawString(text, p.getX(), p.getY());
    g.dispose();
  }
View Full Code Here

Examples of com.mmoscene.h4j.habbohotel.pathfinding.Position

                    actor.getGoalPosition().setY(0);

                    actor.removeStatus("mv");
                    actor.sendRoomActorStatusMessageComposer();
                } else {
                    Position p = H4J.getHabboHotel().getPathfinder().getNextNode(
                            actor.getCurrentPosition(), actor.getGoalPosition(), actor.getCurrentRoom());

                    int rotation = actor.getCurrentPosition().calculateRotation(p.getX(), p.getY());

                    actor.addStatus("mv", p.getX() + "," + p.getY() + "," + Double.toString(0.0));

                    actor.getCurrentPosition().setRotation(rotation);
                    actor.sendRoomActorStatusMessageComposer();

                    actor.getCurrentPosition().setX(p.getX());
                    actor.getCurrentPosition().setY(p.getY());
                }
                try {
                    Thread.sleep(500);
                } catch(Exception ex) { }
            }
View Full Code Here

Examples of com.opengamma.core.position.Position

  @Override
  public PortfolioNode createPortfolioNode() {
    final SimplePortfolioNode node = new SimplePortfolioNode(getNameGenerator().createName());
    for (int i = 0; i < getSize(); i++) {
      Position position = getPositionGenerator().createPosition();
      // Note: the code below may be useful if the position generater sometimes fails to produce an entry and the portfolio must
      // contain the required amount. It is not useful if the position generator continually fails and you get an infinite loop.
      //while (position == null) {
      //  position = getPositionGenerator().createPosition();
      //}
View Full Code Here

Examples of com.rometools.modules.georss.geometries.Position

            }
        }

        GeoRSSModule geoRSSModule = GeoRSSUtils.getGeoRSS(message);
        if (geoRSSModule != null) {
            final Position position = geoRSSModule.getPosition();
            if (position != null) {
                out.startObject(Rss.LOCATION);
                out.field(Rss.Location.LAT, position.getLatitude());
                out.field(Rss.Location.LON, position.getLongitude());
                out.endObject();
            }
        }

        if (message.getCategories() != null && message.getCategories().size() > 0) {
View Full Code Here

Examples of com.stuffwithstuff.magpie.parser.Position

   
    throw new IllegalArgumentException("Not a valid pattern object.");
  }
 
  private Position convertPosition(Obj position) {
    return new Position(
        getString(position, "file"),
        getInt(position, "startLine"),
        getInt(position, "startCol"),
        getInt(position, "endLine"),
        getInt(position, "endCol"));
View Full Code Here

Examples of com.vaadin.shared.Position

                .getStringAttribute(UIConstants.ATTRIBUTE_NOTIFICATION_STYLE)
                : null;

        final int pos = notification
                .getIntAttribute(UIConstants.ATTRIBUTE_NOTIFICATION_POSITION);
        Position position = Position.values()[pos];

        final int delay = notification
                .getIntAttribute(UIConstants.ATTRIBUTE_NOTIFICATION_DELAY);
        createNotification(delay, client.getUIConnector().getWidget()).show(
                html, position, style);
View Full Code Here

Examples of cz.cuni.mff.abacs.burglar.logics.objects.positions.Position

   * @return positions in the room.
   */
  public List<Position> getPositions() {
    List<Position> ret = new LinkedList<Position>();
    for(Integer id : this._positionIds){
      Position pos = this._referenceMap.getPosition(id);
      if(pos != null){
        ret.add(pos);
      }
    }
    return ret;
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.