Package net.alteiar.beans.map.size

Examples of net.alteiar.beans.map.size.MapElementSizeMeter


    switch (UnityType.values()[comboBoxUnite.getSelectedIndex()]) {
    case PIXEL:
      element = new MapElementSizePixel(size);
      break;
    case METER:
      element = new MapElementSizeMeter(size);
      break;
    case CASES:
      element = new MapElementSizeSquare(size);
      break;
    }
View Full Code Here


    };
    battle.addPropertyChangeListener(listener);

    Point position = new Point(5, 5);
    Color color = Color.GREEN;
    MapElementSize width = new MapElementSizeMeter(6.0);
    MapElementSize height = new MapElementSizePixel(42.0);

    RectangleElement rectangle = new RectangleElement(position, color,
        width, height);
View Full Code Here

        !circleClient.contain(new Point(5, 5)));

    assertTrue("the circle contain point (32,32)",
        circleClient.contain(new Point(32, 32)));

    MapElementSize newCircleRadius = new MapElementSizeMeter(1.5);
    circleClient.setRadius(newCircleRadius);
    sleep();
    assertEquals("radius should be equals",
        newCircleRadius.getPixels(battle.getScale()), circleClient
            .getRadius().getPixels(battle.getScale()));

    Color color = Color.BLUE;
    circleClient.setColor(color);
    sleep();
View Full Code Here

TOP

Related Classes of net.alteiar.beans.map.size.MapElementSizeMeter

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.