Package net.alteiar.utils.map.element

Examples of net.alteiar.utils.map.element.MapElementSize


  @Test
  public void testActivate() {
    MapBean map = addBean(new MapBean("map"));

    MapElementSize width = new MapElementSizePixel(20.0);
    MapElementSize height = new MapElementSizePixel(20.0);
    MyInternalEffect effect = addBean(new MyInternalEffect());

    RectangleElement rectangleElement = new RectangleElement(
        new Point(0, 0), Color.BLACK, width, height);
View Full Code Here


  @Test
  public void testOneShotEffect() {
    MapBean map = addBean(new MapBean("map"));

    MapElementSize width = new MapElementSizePixel(20.0);
    MapElementSize height = new MapElementSizePixel(20.0);
    MyOneShotInternalEffect effect = addBean(new MyOneShotInternalEffect());

    RectangleElement rectangleElement = new RectangleElement(
        new Point(0, 0), Color.BLACK, width, height);
View Full Code Here

  @Test
  public void testSuiteEffect() {
    MapBean map = addBean(new MapBean("map"));

    MapElementSize width = new MapElementSizePixel(10.0);
    MapElementSize height = new MapElementSizePixel(10.0);
    EffectSuite effectSuite = addBean(new EffectSuite());

    MyInternalEffect basicEffect1 = addBean(new MyInternalEffect());
    MyInternalEffect basicEffect2 = addBean(new MyInternalEffect());
View Full Code Here

  public void testDelayedEffect() {
    MapBean map = new MapBean("map");
    CampaignClient.getInstance().addBean(map);
    map = CampaignClient.getInstance().getBean(map.getId(), 2000);

    MapElementSize width = new MapElementSizePixel(20.0);
    MapElementSize height = new MapElementSizePixel(20.0);
    DelayedEffect effect = new DelayedEffect(new CircleElement(new Point(
        18, 18), Color.red, width), false, RectangleElement.class,
        10000, map.getId());
    BasicEffect t1 = new BasicEffect(new CircleElement(new Point(18, 18),
        Color.red, width), false, RectangleElement.class, map.getId());
View Full Code Here

TOP

Related Classes of net.alteiar.utils.map.element.MapElementSize

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.