コード例 #1
0
 private ScreenOverlayType createSpeedbar() {
   ScreenOverlayType speedbar =
       createScreenOverlayImage(
           "Speedbar",
           SPEEDBAR_URL,
           createVec2Type(0.0, 0.01, FRACTION, FRACTION),
           createVec2Type(0.0, 0.01, FRACTION, FRACTION),
           createVec2Type(250, 0, PIXELS, PIXELS));
   speedbar.setVisibility(FALSE);
   return speedbar;
 }
コード例 #2
0
  private ScreenOverlayType createScreenOverlayImage(
      String name, String url, Vec2Type overlayXY, Vec2Type screenXY, Vec2Type size) {
    ObjectFactory objectFactory = new ObjectFactory();
    ScreenOverlayType screenOverlayType = objectFactory.createScreenOverlayType();
    screenOverlayType.setName(name);
    screenOverlayType.setOverlayXY(overlayXY);
    screenOverlayType.setScreenXY(screenXY);
    screenOverlayType.setSize(size);

    LinkType icon = objectFactory.createLinkType();
    icon.setHref(url);
    screenOverlayType.setIcon(icon);
    return screenOverlayType;
  }