Ejemplo n.º 1
0
  @Override
  public void show() {
    super.show();
    SE = new ArrayList<SelectorPanel>();
    for (TextSelectorClient TS : annotation.getTextSelectors()) {

      SelectorPanel SEE =
          new SelectorPanel(
              TS.getX().intValue(),
              TS.getY().intValue(),
              image.getAbsoluteLeft(),
              image.getAbsoluteTop(),
              TS.getWidth().intValue(),
              TS.getHeight().intValue());
      SEE.show();
      SE.add(SEE);
    }
  }
Ejemplo n.º 2
0
  @Override
  protected void continueDragging(MouseMoveEvent event) {

    super.continueDragging(event);
    if (SE != null)
      for (SelectorPanel SEE : SE) {
        SEE.hide();
      }
    SE = new ArrayList<SelectorPanel>();
    for (TextSelectorClient TS : annotation.getTextSelectors()) {

      SelectorPanel SEE =
          new SelectorPanel(
              TS.getX().intValue(),
              TS.getY().intValue(),
              image.getAbsoluteLeft(),
              image.getAbsoluteTop(),
              TS.getWidth().intValue(),
              TS.getHeight().intValue());
      SEE.show();
      SE.add(SEE);
    }
  }