Package jimm.datavision.field

Examples of jimm.datavision.field.Rectangle


}

protected Rectangle initialFieldBounds() {
    ImageIcon imageIcon = ((ImageField)fw.getField()).getImageIcon();
    return new Rectangle(insertLoc.x, insertLoc.y, imageIcon.getIconWidth(),
       imageIcon.getIconHeight());
}
View Full Code Here


protected Rectangle newBounds;

public BoundsCommand(Field f, Rectangle bounds) {
    super(I18N.get("BoundsCommand.name"));
    field = f;
    origBounds = new Rectangle(field.getBounds());
    newBounds = bounds;
}
View Full Code Here

public FieldMoveCommand(FieldWidget fw, SectionWidget sw) {
    super(I18N.get("FieldMoveCommand.name"));

    this.fw = fw;
    preMoveInfo = fw.getPreMoveInfo();
    newBounds = new Rectangle(fw.getField().getBounds()); // Make a copy
    newSectionWidget = sw;
    sectionResizeCommand = new SectionResizeCommand(sw);
}
View Full Code Here

    super(I18N.get("FieldAlignCommand.name"));

    this.fw = fw;
    this.which = which;
    this.prototype = prototype;
    origBounds = new Rectangle(fw.getField().getBounds()); // Make a copy
}
View Full Code Here

    subreport.read(f);
    subreport.addAllJoins(newJoins);
}

protected Rectangle initialFieldBounds() {
    return new Rectangle(insertLoc.getX(),
       insertLoc.getY() - (int)(Field.DEFAULT_HEIGHT / 2),
       (double)(Field.DEFAULT_WIDTH * 4),
       (double)Field.DEFAULT_HEIGHT);
}
View Full Code Here

    // field type string is drop string
    return Field.createFromDragString(sw.getReport(), fieldType);
}

protected Rectangle initialFieldBounds() {
    return new Rectangle(insertLoc.getX(), insertLoc.getY(),
       Field.DEFAULT_WIDTH, Field.DEFAULT_HEIGHT);
}
View Full Code Here

    super.perform();
    ((TextFieldWidget)fw).startEditing(); // Selects the widget, too
}

protected Rectangle initialFieldBounds() {
    return new Rectangle(insertLoc.getX(),
       insertLoc.getY() - (int)(Field.DEFAULT_HEIGHT / 2),
       (double)Field.DEFAULT_WIDTH,
       (double)Field.DEFAULT_HEIGHT);
}
View Full Code Here

    this.origBounds = origBounds;
}

public void perform() {
    // Remember the field's new bounds.
    newBounds = new Rectangle(fw.getField().getBounds()); // Make a copy
}
View Full Code Here

    this.fw = fw;
    this.origHeight = origHeight;
    sw = fw.getSectionWidget();

    oldText = (String)fw.getField().getValue();
    oldBounds = new Rectangle(fw.getField().getBounds()); // Make a copy
    sectionResizeCommand = new SectionResizeCommand(sw);
}
View Full Code Here

  newText = textPane.getText();

  textPane.setEditable(false);
  textPane.getCaret().setVisible(false);

  newBounds = new Rectangle(textPane.getBounds());
  if (newBounds.height != origHeight)
      fw.getField().getBounds().setBounds(newBounds);

  // Set text after settings bounds because setting the text triggers
  // an update which in turn re-sets the field's bounds, erasing any
View Full Code Here

TOP

Related Classes of jimm.datavision.field.Rectangle

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.