Exemplo n.º 1
0
  public OptionsMenuIcon(PathwayDiagramPanel diagramPane) {
    this.diagramPane = diagramPane;
    resources = GWT.create(Resources.class);
    setResource(resources.optionsIcon());

    addClickHandler();
    addMouseOverHandler();
  }
Exemplo n.º 2
0
  public void updatePosition(Integer containerWidth, Integer containerHeight) {
    AbsolutePanel container = (AbsolutePanel) getParent();

    final Integer BUFFER = 2;

    final Integer left = containerWidth - resources.optionsIcon().getWidth() - BUFFER;
    final Integer top = BUFFER;

    container.setWidgetPosition(this, left, top);
  }