Examples of Dimension


Examples of org.rascalmpl.library.vis.util.vector.Dimension

  public void computeMinSize(){
    //super.computeMinSize();
    BoundingBox iminSize = widget.getFigure().minSize;
    org.eclipse.swt.graphics.Rectangle r = widget.computeTrim(0, 0, FigureMath.ceil(iminSize.getX()), FigureMath.ceil(iminSize.getY()));
    minSize.set(r.width +1 ,r.height +1);
    Dimension minor = major.other();
    minSize.set(minor, Math.ceil(iminSize.get(minor))  );
  }
View Full Code Here

Examples of org.renjin.graphics.geom.Dimension

    this.driver = driver;
   
    /* For new devices, have to check the device's idea of its size
    * in case there has been a resize.
    */
    Dimension inchesPerPixel = driver.getInchesPerPixel();

   
//   
//   
//    dp->fig[0] = 0.0;
View Full Code Here

Examples of org.restlet.client.data.Dimension

        super(header);
    }

    @Override
    public Dimension readValue() throws IOException {
        Dimension result = null;
        String value = readRawValue();

        if (value != null) {
            if (value.equalsIgnoreCase(HeaderConstants.HEADER_ACCEPT)) {
                result = Dimension.MEDIA_TYPE;
View Full Code Here

Examples of org.restlet.data.Dimension

        super(header);
    }

    @Override
    public Dimension readValue() throws IOException {
        Dimension result = null;
        String value = readRawValue();

        if (value != null) {
            if (value.equalsIgnoreCase(HeaderConstants.HEADER_ACCEPT)) {
                result = Dimension.MEDIA_TYPE;
View Full Code Here

Examples of org.spout.vanilla.data.Dimension

    final ManagedMap data = world.getData();
    final Human human = getOwner().add(Human.class);
    GameMode gamemode = null;
    Difficulty difficulty = data.get(VanillaData.DIFFICULTY);
    Dimension dimension = data.get(VanillaData.DIMENSION);
    WorldType worldType = data.get(VanillaData.WORLD_TYPE);

    if (human != null) {
      gamemode = human.getGameMode();
    }
    getSession().send(new PlayerRespawnMessage(0, difficulty.getId(), gamemode.getId(), 256, worldType.toString()));
    getSession().send(new PlayerRespawnMessage(1, difficulty.getId(), gamemode.getId(), 256, worldType.toString()));
    getSession().send(new PlayerRespawnMessage(dimension.getId(), difficulty.getId(), gamemode.getId(), 256, worldType.toString()));

    if (human != null) {
      human.updateAbilities();
    }
View Full Code Here

Examples of org.sumus.dwh.dimension.Dimension

  }

  private void createDimension(DataStore dataStore, DimensionDefinition definition){
    try {
      definition.addFeatures();
      Dimension dimension = dataStore.createDimension(definition.getName());
      createFeatures(dimension, definition.getFeaturesDefinition());
    }
    catch (Exception e) {
    }
  }
View Full Code Here

Examples of org.wymiwyg.knobot.BaseItemPostHandler.Dimension

          fileName, type.toString());
    } catch (MalformedURLException e) {
      throw new RuntimeException(e);
    }
    if (width == -1) {
      Dimension dim = BaseItemPostHandler.getDimension(content, type.toString());
      if (dim != null) {
        width = dim.width;
        height = dim.height;
      }
    }
View Full Code Here

Examples of pythagoras.f.Dimension

        group.add(widget);
        UnitSlot updateConstraint = new UnitSlot() {
            @Override public void onEmit () {
                widget.setConstraint(new AbsoluteLayout.Constraint(
                    position.point.get(), origin.point.get(),
                    new Dimension(width.value.get(), height.value.get())));
            }
        };
        width.value.connect(updateConstraint);
        height.value.connect(updateConstraint);
        position.point.connect(updateConstraint);
View Full Code Here

Examples of simpleserver.Coordinate.Dimension

    super("dimension [DIMENSION] MESSAGE", "Send message only in specified dimension and to yourself");
  }

  @Override
  protected Chat getMessageInstance(Player sender, String rawMessage) {
    Dimension dim = sender.getDimension();
    chatMessage = rawMessage;

    String[] arguments = extractArguments(rawMessage);
    if (arguments.length > 1 && Dimension.get(arguments[0]) != Dimension.LIMBO) {
      dim = Dimension.get(arguments[0]);
View Full Code Here

Examples of ucar.nc2.Dimension

                                  (String) headerInfo.get( HeaderInfoTitle.DATA_SET_ID.toString() ) );
    recordSizeInBytes = Integer.parseInt( (String) headerInfo.get( HeaderInfoTitle.RECORD_BYTES.toString() ) );
    numRecords = Integer.parseInt( (String) headerInfo.get( HeaderInfoTitle.NUM_RECORDS.toString() ) );
    numHeaderRecords = Integer.parseInt( (String) headerInfo.get( HeaderInfoTitle.NUM_HEADER_RECORDS.toString() ) );
    numDataRecords = Integer.parseInt( (String) headerInfo.get( HeaderInfoTitle.NUM_DATA_RECORDS.toString() ) );
    numDataRecordsDim = new Dimension( this.numDataRecordsDimName,
                                       numDataRecords, true, true, false );
    numArtificialDataRecords = Integer.parseInt( (String) headerInfo.get( HeaderInfoTitle.NUM_ARTIFICIAL_DATA_RECORDS.toString() ) );
    if ( numHeaderRecords + numDataRecordsDim.getLength() + numArtificialDataRecords != numRecords )
    {
      throw new IOException( "Invalid DMSP file: the number of header records <" + this.numHeaderRecords + ">, data records <" + this.numDataRecordsDim.getLength() + ">, and artificial data records <" + this.numArtificialDataRecords + "> is not equal to total records <" + this.numRecords + ">." );
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.