Examples of Grid


Examples of org.swtchart.internal.Grid

    public Axis(int id, Direction direction, Chart chart) {
        this.id = id;
        this.direction = direction;
        this.chart = chart;

        grid = new Grid(this);
        title = new AxisTitle(chart, SWT.NONE, this, direction);
        tick = new AxisTick(chart, this);
        listeners = new ArrayList<IDisposeListener>();

        // sets initial default values
View Full Code Here

Examples of org.zkoss.zul.Grid

    }
  }

  public ListModel getModelByOwner(Component comp) {
    if (comp instanceof Grid) {
      final Grid grid = (Grid) comp;
      return grid.getModel();
    } else {
      throw new UiException("Unsupported type for RowCollectionItem: "
          + comp);
    }
  }
View Full Code Here

Examples of org.zkoss.zul.api.Grid

        super.setSortDescending(new NewObjectDecoratorComparator(c));
    }

    @Override
    public boolean sort(boolean ascending) {
        Grid grid = getGrid();
        if (grid instanceof NewDataSortableGrid) {
            ((NewDataSortableGrid) grid).setSortedColumn(this);
            ((NewDataSortableGrid) grid).setLastSortedColumnAscending(ascending);
        }
        return super.sort(ascending);
View Full Code Here

Examples of shared.grid

* The grid demo server.
*/
public class Server {

  public static void init_server (org.omg.CORBA.ORB orb) {
    grid gridImpl = null;
    gridImpl = new _tie_grid (new GridImplementation(100,100));
   
    FileOutputStream grid_ior_file;
    try {
      grid_ior_file = new FileOutputStream("C:\\Temp\\grid.ior");
View Full Code Here

Examples of squaresgame.Grid

   
    //Make the mouse cursor work with in-game objects
    CursorGenerator.setUpCursor();
   
    //Create the logical representation of the game's grid.
    Grid grid = new GameGrid(gridWidth, gridHeight);
   
    //Set up the game controller to manage the turn system, and run in a seperate thread.
    List<Player> players = generatePlayers(numHumanPlayers, numAIPlayers);
    GameControllerGenerator.setUpGameController(grid, players);
   
View Full Code Here

Examples of wolf.city.road.rules.Grid

        //have an intersection! Free, with your purchase!
        Road inters1 = r.rule.globalGoals(city, road, Direction.LEFT);
        Road inters2 = r.rule.globalGoals(city, road, Direction.RIGHT);
        //set the type to street, give it a proper rule
        inters1.setType(RoadType.STREET);
        inters1.rule = new Grid(city);
        inters2.setType(RoadType.STREET);
        inters2.rule = new Grid(city);

        rq.add(inters1);
        rq.add(inters2);
        rqM.add(localConstraints(r));
      }
     
      road = connect(road);
      roads.insert(road.getEnvelope(), road);
      cv.roads.add(road);
     
      if(cv != null){
        cv.draw();
      }
    }
    //generate streets entirely

    //log.log("Streets generating");
    rq.stackStyle = true;
    if(!rq.isEmpty()){
     
      //generate streets
      if(city.random.nextDouble()>.99){
        rq.stackStyle = false;
      }else{
        rq.stackStyle = true;
      }
      Road road = localConstraints(rq.remove());
      if(road != null){
        if(road.finished){
          //finished
        }else{
          if(road.rule instanceof OffRamp){
            road.rule = new Grid(city);
          }
          if(city.random.nextDouble()>.9){ //makes it look like a modern/whatever neighborhood
            road.rule = road.rule.mutate();
          }
          //use grid pattern to fill in areas between highways (Manhattan-esque pattern, but not perfect)
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.