Examples of Thing


Examples of ArrayFindWidgetByName.Thing

    public Main() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.initialize();
        this.setThings(new Array_Of_Thing<Thing>());
        this.getThings().set(0, new Thing());

    }
View Full Code Here

Examples of ArrayWithGraphics.Thing

        super();
        this.initialize();
        ImageData i = ImageValue.get(this.getqq_sourceImage());
        this.setThings(new Array_Of_Thing<Thing>());
        PersonDN p = new PersonDN();
        this.getThings().set(0, new Thing(i, "Bob"));

        p.setName("Bob");
        p.setAge(22);
        p.setParent(this.getThings().get(0).getPerson());
        p = new PersonDN();
        p.setName("Bob");
        p.setAge(22);
        p.setParent(this.getThings().get(0).getPerson());

        this.getThings().set(1, new Thing(i, "Mary"));
        p = new PersonDN();
        p.setName("Mary");
        p.setAge(34);
        p.setParent(this.getThings().get(1).getPerson());
        p = new PersonDN();
        p.setName("Mary");
        p.setAge(34);
        p.setParent(this.getThings().get(1).getPerson());

        this.getThings().set(2, new Thing(i, "Jim"));
        p = new PersonDN();
        p.setName("Jim");
        p.setAge(86);
        p.setParent(this.getThings().get(2).getPerson());
        p = new PersonDN();
        p.setName("Jim");
        p.setAge(86);
        p.setParent(this.getThings().get(2).getPerson());

        this.getThings().set(3, new Thing(i, "Sue"));
        p = new PersonDN();
        p.setName("Sue");
        p.setAge(56);
        p.setParent(this.getThings().get(3).getPerson());
        p = new PersonDN();
View Full Code Here

Examples of Hexel.things.types.Thing

    final HashSet<Vector3i> blocksIntersecting = new HashSet<Vector3i>();
    blocksIntersecting.addAll(blocks);
    Set<Thing> things = this.engine.thingSimulator.things;
    synchronized (things){
      for (Thing thing : things){
        final Thing thing0 = thing;
        if (thing instanceof Cuboid){
          final Cuboid c = (Cuboid)thing;
          ArrayList<Vector3i> blocksIntersectingThing = thingTools.getBlocksIntersectingThing(c, fixOffsetTmps);
          for (Vector3i v : blocksIntersectingThing){
            if (blocksIntersecting.contains(v)){
View Full Code Here

Examples of com.hobbitsadventure.model.Thing

        Tile tile = realmMap.getTile(rowIndex, colIndex);
        int x = (j - minJ) * TILE_WIDTH;
        tile.paint(g, x, baseY);
       
        // Paint thing if it's occluded by subsequent tile roles
        Thing thing = realmMap.getThing(rowIndex, colIndex);
        if (thing != null && thing.isOccludedByTerrain()) {
          int y = baseY - 65 + tile.getHeight();
          g.drawImage(thing.getSprite(), x, y, null);
        }
      }
    }
  }
View Full Code Here

Examples of com.hobbitsadventure.model.Thing

        Tile tile = realmMap.getTile(rowIndex, colIndex);
        int x = (j - minJ) * TILE_WIDTH;
        int y = baseY - 65 + tile.getHeight();
       
        // Paint thing (if we haven't already)
        Thing thing = realmMap.getThing(rowIndex, colIndex);
        if (thing != null && !thing.isOccludedByTerrain()) {
          g.drawImage(thing.getSprite(), x, y, null);
         
        }
       
        // Paint character
        GameCharacter character = realmMap.getCharacter(rowIndex, colIndex);
        if (character != null) {
          if (thing != null) { y += thing.getYOffset(); }
          g.drawImage(character.getSprite(), x, y, null);
        }
      }
    }
  }
View Full Code Here

Examples of org.apache.cayenne.testdo.testmap.Thing

        BoxInfo bi2 = context.newObject(BoxInfo.class);
        invalidate.add(bi2);
        bi2.setColor("green");
        bi2.setBox(bx2);

        Thing t1 = context.newObject(Thing.class);
        invalidate.add(t1);
        t1.setVolume(10);
        t1.setWeight(10);

        Ball bl1 = context.newObject(Ball.class);
        invalidate.add(bl1);
        bl1.setBox(bx1);
        bl1.setThingVolume(10);
        bl1.setThingWeight(10);

        Thing t2 = context.newObject(Thing.class);
        invalidate.add(t2);
        t2.setVolume(20);
        t2.setWeight(20);

        Ball bl2 = context.newObject(Ball.class);
        invalidate.add(bl2);
        bl2.setBox(bx1);
        bl2.setThingVolume(20);
        bl2.setThingWeight(20);

        Thing t3 = context.newObject(Thing.class);
        invalidate.add(t3);
        t3.setVolume(30);
        t3.setWeight(30);

        Ball bl3 = context.newObject(Ball.class);
        invalidate.add(bl3);
        bl3.setBox(bx2);
        bl3.setThingVolume(30);
        bl3.setThingWeight(30);

        Thing t4 = context.newObject(Thing.class);
        invalidate.add(t4);
        t4.setVolume(40);
        t4.setWeight(40);

        Ball bl4 = context.newObject(Ball.class);
        invalidate.add(bl4);
        bl4.setBox(bx2);
        bl4.setThingVolume(40);
        bl4.setThingWeight(40);

        Thing t5 = context.newObject(Thing.class);
        invalidate.add(t5);
        t5.setVolume(20);
        t5.setWeight(10);

        Ball bl5 = context.newObject(Ball.class);
        invalidate.add(bl5);
        bl5.setBox(bx2);
        bl5.setThingVolume(20);
        bl5.setThingWeight(10);

        Thing t6 = context.newObject(Thing.class);
        invalidate.add(t6);
        t6.setVolume(40);
        t6.setWeight(30);

        Ball bl6 = context.newObject(Ball.class);
        invalidate.add(bl6);
        bl6.setBox(bx2);
        bl6.setThingVolume(40);
        bl6.setThingWeight(30);

        context.commitChanges();

        tBoxThing.insert(Cayenne.intPKForObject(bx1), t1.getWeight(), t1.getVolume());
        tBoxThing.insert(Cayenne.intPKForObject(bx1), t2.getWeight(), t2.getVolume());
        tBoxThing.insert(Cayenne.intPKForObject(bx2), t3.getWeight(), t3.getVolume());
        tBoxThing.insert(Cayenne.intPKForObject(bx1), t4.getWeight(), t4.getVolume());
        tBoxThing.insert(Cayenne.intPKForObject(bx1), t5.getWeight(), t5.getVolume());
        tBoxThing.insert(Cayenne.intPKForObject(bx1), t6.getWeight(), t6.getVolume());

        context.invalidateObjects(invalidate);
    }
View Full Code Here

Examples of org.apache.cayenne.testdo.testmap.Thing

                for (Box box : result) {
                    List<Ball> balls = (List<Ball>) box.readPropertyDirectly(Box.BALLS_PROPERTY);
                    assertNotNull(balls);
                    assertFalse(((ValueHolder) balls).isFault());
                    for (Ball ball : balls) {
                        Thing thing = (Thing) ball.readPropertyDirectly(Ball.THING_PROPERTY);
                        assertNotNull(thing);
                        assertEquals(PersistenceState.COMMITTED, thing.getPersistenceState());
                        volumes.add(thing.getVolume());
                    }
                }
                assertEquals(6, volumes.size());
                assertTrue(volumes.containsAll(Arrays.asList(10, 20, 30, 40)));
            }
View Full Code Here

Examples of org.apache.cayenne.testdo.testmap.Thing

                    List<Ball> balls = (List<Ball>) box
                            .readPropertyDirectly(Box.BALLS_PROPERTY);
                    assertNotNull(balls);
                    assertFalse(((ValueHolder) balls).isFault());
                    for (Ball ball : balls) {
                        Thing thing = (Thing) ball
                                .readPropertyDirectly(Ball.THING_PROPERTY);
                        assertNotNull(thing);
                        assertEquals(
                                PersistenceState.COMMITTED,
                                thing.getPersistenceState());
                        volumes.add(thing.getVolume());
                    }
                }
                assertEquals(6, volumes.size());
                assertTrue(volumes.containsAll(Arrays.asList(10, 20, 30, 40)));
            }
View Full Code Here

Examples of org.apache.cayenne.testdo.testmap.Thing

                    List<Ball> balls = (List<Ball>) box
                            .readPropertyDirectly(Box.BALLS_PROPERTY);
                    assertNotNull(balls);
                    assertFalse(((ValueHolder) balls).isFault());
                    for (Ball ball : balls) {
                        Thing thing = (Thing) ball
                                .readPropertyDirectly(Ball.THING_PROPERTY);
                        assertNotNull(thing);
                        assertEquals(
                                PersistenceState.COMMITTED,
                                thing.getPersistenceState());
                        volumes.add(thing.getVolume());
                    }
                }
                assertEquals(6, volumes.size());
                assertTrue(volumes.containsAll(Arrays.asList(10, 20, 30, 40)));
            }
View Full Code Here

Examples of org.bnplusplus.model.bnpp.Thing

        if (nUI instanceof BasicNodeComponentUI)
        {
          BasicNodeComponentUI n = (BasicNodeComponentUI) nUI;
          String labelText = n.getLabel();
         
          Thing thing = ((IThingMappingModel) controller.getMappingModel()).getThing(iComponent);

          if (thing instanceof Participant)
          {
            Participant p = (Participant) thing;
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.