Package com.data2semantics.yasgui.client.helpers

Examples of com.data2semantics.yasgui.client.helpers.TooltipProperties


   
  }
 
  public void showToolTips(int fromVersionId) {
    if (fromVersionId <= TOOLTIP_VERSION_LINK) {
      TooltipProperties tProp = new TooltipProperties();
      tProp.setId(getDOM().getId());
      tProp.set(TooltipText.LINK_GENERATOR);
      tProp.setMy(TooltipProperties.POS_RIGHT_CENTER);
      tProp.setAt(TooltipProperties.POS_LEFT_CENTER);
      Helper.drawTooltip(tProp);
    }
  }
View Full Code Here


    showAttributionsTooltip(fromVersionId);
  }
 
  private void showPrefixTooltip(int fromVersionId) throws ElementIdException {
    if (fromVersionId < TOOLTIP_VERSION_PREFIX) {
      TooltipProperties tProp = new TooltipProperties();
      tProp.setId(getDOM().getId());
      tProp.set(TooltipText.QUERY_PREFIXES_AUTOCOMPLETE);
      tProp.setMy(TooltipProperties.POS_TOP_LEFT);
      tProp.setAt(TooltipProperties.POS_TOP_LEFT);
      tProp.setXOffset(240);
      tProp.setYOffset(50);
      Helper.drawTooltip(tProp);
    }
  }
View Full Code Here

      Helper.drawTooltip(tProp);
    }
  }
  private void showAttributionsTooltip(int fromVersionId) throws ElementIdException {
    if (fromVersionId < TOOLTIP_VERSION_ATTRIBUTION) {
      TooltipProperties tProp = new TooltipProperties();
      tProp.setId(getDOM().getId());
      tProp.set(TooltipText.ATTRIBUTION);
      tProp.setMy(TooltipProperties.POS_CENTER);
      tProp.setAt(TooltipProperties.POS_BOTTOM_LEFT);
      tProp.setXOffset(400);
      tProp.setYOffset(50);
      Helper.drawTooltip(tProp);
    }
  }
View Full Code Here

    }
  }
 
  private void showKeyShortcutsTooltip(int fromVersionId) throws ElementIdException {
    if (fromVersionId < TOOLTIP_VERSION_KEYBOARD_SHORTCUTS) {
      TooltipProperties tProp = new TooltipProperties();
      tProp.setId(getDOM().getId());
      tProp.setText(getKeyboardShortcuts());
      tProp.setTitle("Available keyboard shortcuts");
      tProp.setMy(TooltipProperties.POS_CENTER);
      tProp.setAt(TooltipProperties.POS_RIGHT_BOTTOM);
      tProp.setXOffset(-150);
      tProp.setYOffset(-110);
      Helper.drawTooltip(tProp);
    }
  }
View Full Code Here

    queryArgWindow.draw();
  }

  public void showTooltips(int fromVersionId) {
    if (view.getEnabledFeatures().endpointSelectionEnabled() && fromVersionId < TOOLTIP_VERSION_QUERY_CONFIG) {
      TooltipProperties tProp = new TooltipProperties();
      tProp.setId(getDOM().getId());
      tProp.set(TooltipText.QUERY_CONFIG_MENU);
      tProp.setMy(TooltipProperties.POS_TOP_CENTER);
      tProp.setAt(TooltipProperties.POS_BOTTOM_CENTER);
      tProp.setYOffset(0);
      tProp.setXOffset(20);
      Helper.drawTooltip(tProp);
    }
   
  }
View Full Code Here

    }
   
  }
  private void showSearchIconTooltip(int fromVersionId) {
    if (searchIcon != null && fromVersionId < TOOLTIP_VERSION_SEARCH_ICON) {
      TooltipProperties tProp = new TooltipProperties();
      tProp.setId(searchIcon.getDOM().getId());
      tProp.set(TooltipText.ENDPOINT_SEARCH_ICON);
      tProp.setMy(TooltipProperties.POS_BOTTOM_LEFT);
      tProp.setAt(TooltipProperties.POS_TOP_CENTER);
      tProp.setYOffset(11);
//      tProp.setXOffset(-1);
      Helper.drawTooltip(tProp);
    }
  }
View Full Code Here

    showTabSelectionTooltip(fromVersionId);
  }
 
  private void showTabSelectionTooltip(int fromVersionId) throws ElementIdException {
    if (fromVersionId < TOOLTIP_VERSION_TAB_SELECTION) {
      TooltipProperties tProp = new TooltipProperties();
      tProp.setId(getDOM().getId());
      tProp.set(TooltipText.TAB_SELECTION);
      tProp.setMy(TooltipProperties.POS_LEFT_CENTER);
      tProp.setAt(TooltipProperties.POS_LEFT_TOP);
      tProp.setXOffset(126);
      tProp.setYOffset(12);
      Helper.drawTooltip(tProp);
    }
  }
View Full Code Here

    drawConfigMenu();
  }
 
  private void showConfigMenuTooltip(int fromVersionId) throws ElementIdException {
    if (fromVersionId < TOOLTIP_VERSION_MENU_CONFIG) {
      TooltipProperties tProp = new TooltipProperties();
      tProp.setId(configButton.getDOM().getId());
      tProp.set(TooltipText.CONFIG_MENU);
      tProp.setMy(TooltipProperties.POS_RIGHT_TOP);
      tProp.setAt(TooltipProperties.POS_LEFT_TOP);
      Helper.drawTooltip(tProp);
    }
  }
View Full Code Here

   * Show tooltips
   * @param fromVersionId
   */
  public void showToolTips(int fromVersionId) {
    if (fromVersionId < TOOLTIP_VERSION_BOOKMARKS) {
      TooltipProperties tProp = new TooltipProperties();
      tProp.setId(getDOM().getId());
      tProp.set(TooltipText.ADD_TO_BOOKMARKS);
      tProp.setMy(TooltipProperties.POS_TOP_RIGHT);
      tProp.setAt(TooltipProperties.POS_BOTTOM_CENTER);
      tProp.setYOffset(2);
      Helper.drawTooltip(tProp);
    }
  }
View Full Code Here

TOP

Related Classes of com.data2semantics.yasgui.client.helpers.TooltipProperties

Copyright © 2018 www.massapicom. 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.