Beispiel #1
0
  public GHUDIcon(
      final BufferedImage image, final String labelOrNull, final GHUDIcon.Position position) {
    GAssert.notNull(image, "image");
    GAssert.notNull(position, "position");

    _image = image;
    _label = labelOrNull;
    _position = position;
  }
  public GVectorial2DRenderingScaler(
      final GAxisAlignedRectangle viewport,
      final GProjection projection,
      final IProjectionTool projectionTool,
      final IVectorI2 renderExtent) {
    GAssert.notNull(viewport, "viewport");
    GAssert.notNull(projection, "projection");
    GAssert.notNull(projectionTool, "projectionTool");
    GAssert.notNull(renderExtent, "renderExtent");
    GAssert.isPositive(renderExtent.x(), "renderExtent.x()");
    GAssert.isPositive(renderExtent.y(), "renderExtent.y()");

    _viewport = viewport;
    _projection = projection;
    _projectionTool = projectionTool;

    _renderExtent = renderExtent;
    _scale = new GVector2D(renderExtent.x(), renderExtent.y()).div(viewport.getExtent());
  }
 public synchronized void addScheduler(final IGlobeAnimationsScheduler scheduler) {
   GAssert.notNull(scheduler, "scheduler");
   _schedulers.add(scheduler);
 }