Examples of Sector


Examples of com.opengamma.core.obligor.Sector

    CreditRating impliedCreditRating = doc.getOrganization().getObligor().getImpliedRating();
    CreditRatingMoodys creditRatingMoodys = doc.getOrganization().getObligor().getMoodysCreditRating();
    CreditRatingStandardAndPoors creditRatingStandardAndPoors = doc.getOrganization().getObligor().getStandardAndPoorsCreditRating();

    String country = doc.getOrganization().getObligor().getCountry();
    Sector sector = doc.getOrganization().getObligor().getSector();
    Region region = doc.getOrganization().getObligor().getRegion();
    boolean hasDefaulted = doc.getOrganization().getObligor().isHasDefaulted();

    OrganizationDocument test = _orgMaster.add(doc);
View Full Code Here

Examples of de.ailis.xadrian.data.Sector

        final int x = e.getX() - (this.getWidth() - this.buffer.getWidth()) / 2;
        final int y = e.getY() - (this.getHeight() - this.buffer.getHeight()) / 2;
        final int sx = Math.round(((x / this.scale) - 75) / 100);
        final int sy = Math.round(((y / this.scale) - 75) / 100);

        final Sector sector = this.game.getSectorFactory().getSector(sx, sy);
        if (sector != this.overSector)
        {
            this.overSector = sector;
            repaint();
        }
View Full Code Here

Examples of de.ailis.xadrian.data.Sector

     * @see ActionListener#actionPerformed(ActionEvent)
     */
    @Override
    public void actionPerformed(final ActionEvent e)
    {
        final Sector sector = this.sectorProvider.getSector();
        final SelectSectorDialog dialog =
            this.gameProvider.getGame().getSelectSectorDialog();
        dialog.setSelected(sector);
        if (dialog.open() == Result.OK)
            this.sectorProvider.setSector(dialog.getSelected());
View Full Code Here

Examples of de.ailis.xadrian.data.Sector

                final String northId = element.attributeValue("north");
                final String eastId = element.attributeValue("east");
                final String southId = element.attributeValue("south");
                final String westId = element.attributeValue("west");

                final Sector sector;
                final List<?> switches = element.elements("switch");
                if (switches.size() == 0)
                {
                    final boolean shipyard = hasShipyard(element);
                    final Asteroid[] asteroids = getAsteroids(element);
                    sector =
                        new Sector(this.game, id, x, y, race, planets, suns,
                            core, shipyard, northId, eastId, southId, westId,
                            asteroids);
                }
                else
                {
                    final Asteroid[][] asteroidsList =
                        new Asteroid[switches.size()][];
                    int i = 0;
                    for (final Object switchItem : switches)
                    {
                        final Element switchElement = (Element) switchItem;
                        asteroidsList[i] = getAsteroids(switchElement);
                        i++;
                    }
                    sector =
                        new PlayerSector(this.game, id, x, y, race, planets,
                            suns, core, northId, eastId, southId, westId,
                            asteroidsList);
                }

                this.sectors.add(sector);
                this.sectorMap.put(id, sector);

                this.maxSiliconYield = Math.max(this.maxSiliconYield, sector
                    .getTotalSiliconYield());
                this.maxOreYield = Math.max(this.maxOreYield, sector
                    .getTotalOreYield());
                this.maxNividiumYield = Math.max(this.maxNividiumYield, sector
                    .getTotalNividiumYield());
                this.maxIceYield = Math.max(this.maxIceYield, sector
                    .getTotalIceYield());
            }
        }
        catch (final DocumentException e)
        {
View Full Code Here

Examples of gov.nasa.worldwind.geom.Sector

            sb.append("&width=");
            sb.append(tile.getLevel().getTileWidth());
            sb.append("&height=");
            sb.append(tile.getLevel().getTileHeight());

            Sector s = tile.getSector();
            sb.append("&bbox=");
            sb.append(s.getMinLongitude().getDegrees());
            sb.append(",");
            sb.append(s.getMinLatitude().getDegrees());
            sb.append(",");
            sb.append(s.getMaxLongitude().getDegrees());
            sb.append(",");
            sb.append(s.getMaxLatitude().getDegrees());

            sb.append("&format=image/gif");
            sb.append("&version=1.1.1");
            sb.append("&styles=");
View Full Code Here

Examples of gov.nasa.worldwind.geom.Sector

        WWIO.saveBuffer(byteBuffer, file, forceFilesystemWrite);
    }

    protected void writeWorldFile(AVList values, java.io.File file) throws java.io.IOException
    {
        Sector sector = (Sector) values.getValue(AVKey.SECTOR);
        int[] size = (int[]) values.getValue(WorldFile.WORLD_FILE_IMAGE_SIZE);

        double xPixelSize = sector.getDeltaLonDegrees() / (size[0] - 1);
        double yPixelSize = -sector.getDeltaLatDegrees() / (size[1] - 1);
        double xCoeff = 0.0;
        double yCoeff = 0.0;
        double xLocation = sector.getMinLongitude().degrees;
        double yLocation = sector.getMaxLatitude().degrees;

        java.io.PrintWriter out = new java.io.PrintWriter(file);
        try
        {
            out.println(xPixelSize);
View Full Code Here

Examples of gov.nasa.worldwind.geom.Sector

        int[] size = new int[2];
        size[0] = raster.getWidth();
        size[1] = raster.getHeight();
        worldFileParams.setValue(WorldFile.WORLD_FILE_IMAGE_SIZE, size);

        Sector sector = raster.getSector();
        worldFileParams.setValue(AVKey.SECTOR, sector);

        worldFileParams.setValue(AVKey.BYTE_ORDER, getByteOrder(byteBufferRaster.getByteBuffer()));
        worldFileParams.setValue(AVKey.PIXEL_FORMAT, AVKey.ELEVATION);
        worldFileParams.setValue(AVKey.DATA_TYPE, getDataType(byteBufferRaster.getBuffer()));
View Full Code Here

Examples of gov.nasa.worldwind.geom.Sector

       
        this._strId_ = strId;
       
        Position posMin = lstPosition.get(0);
        Position posMax = lstPosition.get(1);
        Sector sec = Sector.boundingSector(posMin, posMax);
        super.setSector(sec);
       
       
       
        setAttributesThis();
View Full Code Here

Examples of gov.nasa.worldwind.geom.Sector

          Point2D.Double p2dMin = lstP2d.get(0);
          Point2D.Double p2dMax = lstP2d.get(1);

          Position posMin = Position.fromDegrees(p2dMin.y, p2dMin.x);
          Position posMax = Position.fromDegrees(p2dMax.y, p2dMax.x);
          Sector sec = Sector.boundingSector(posMin, posMax);
          super.setSector(sec);
          this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
          return;
       }
      
View Full Code Here

Examples of gov.nasa.worldwind.geom.Sector


   @Override
   public double getCharacteristicDimensionObjectGeoforgeRenderableLayer() throws Exception
   {
      Sector sec = super.getSector();
     
        Iterator<? extends LatLon> itr = sec.asList().iterator();
       
        if (! itr.hasNext())
        {
            String str = "! itr.hasNext()";
            GfrRndSurfaceSectorTloAbs._LOGGER_.severe(str);
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.