Package jimm.datavision

Examples of jimm.datavision.Point


public class NewImageFieldCommand extends InsertFieldCommand {

protected String imageURL;

public NewImageFieldCommand(SectionWidget sw, String url) {
    super(sw, "image", new Point(0, 0));
    imageURL = url;
}
View Full Code Here


public NewSubreportCommand(Designer designer, Report report, File f,
         Collection newJoins)
    throws Exception
{
    super(designer.findSectionWidgetFor(report.getFirstSectionByArea(SectionArea.DETAIL)),
    "subreport", new Point(0, report.getFirstSectionByArea(SectionArea.DETAIL).getMinHeight()));

    this.designer = designer;
    this.report = report;

    subreport = new Subreport(report, null);
View Full Code Here

protected SectionResizeCommand titleSectionResizeCommand;

public NewDraggedFieldCommand(SectionWidget sw, String dropString,
            DropTargetDropEvent e)
{
    super(sw, dropString, new Point(e.getLocation()));
}
View Full Code Here

* @author Jim Menard, <a href="mailto:jimm@io.com">jimm@io.com</a>
*/
public class NewTextFieldCommand extends InsertFieldCommand {

public NewTextFieldCommand(SectionWidget sw, MouseEvent e) {
    super(sw, "text", new Point(e.getPoint()));

    // Translate insertLoc's mouse coordinates to SectionFieldPanel
    // coordinates.
    Component c = e.getComponent();
    while (!(c instanceof SectionFieldPanel)) {
View Full Code Here

    Line line;

    edge = top;
    if (edge != null && edge.getThickness() > 0 && edge.getNumber() > 0) {
  line = new Line(null, section, edge.getThickness(),
      null, true, new Point(rect.x, rect.y),
      new Point(rect.x + rect.width, rect.y));
  for (int i = 0; i < edge.getNumber(); ++i) {
      ld.drawLine(line, arg);
      line.getPoint(0).y += BORDER_LINE_SPACE_MULT;
      line.getPoint(1).y += BORDER_LINE_SPACE_MULT;
  }
    }

    edge = bottom;
    if (edge != null && edge.getThickness() > 0 && edge.getNumber() > 0) {
  line = new Line(null, section, edge.getThickness(),
      null, true, new Point(rect.x, rect.y + rect.height),
      new Point(rect.x + rect.width, rect.y + rect.height));
  for (int i = 0; i < edge.getNumber(); ++i) {
      ld.drawLine(line, arg);
      line.getPoint(0).y -= BORDER_LINE_SPACE_MULT;
      line.getPoint(1).y -= BORDER_LINE_SPACE_MULT;
  }
    }

    edge = left;
    if (edge != null && edge.getThickness() > 0 && edge.getNumber() > 0) {
  line = new Line(null, section, edge.getThickness(),
      null, true, new Point(rect.x, rect.y),
      new Point(rect.x, rect.y + rect.height));
  for (int i = 0; i < edge.getNumber(); ++i) {
      ld.drawLine(line, arg);
      line.getPoint(0).x += BORDER_LINE_SPACE_MULT;
      line.getPoint(1).x += BORDER_LINE_SPACE_MULT;
  }
    }

    edge = right;
    if (edge != null && edge.getThickness() > 0 && edge.getNumber() > 0) {
  line = new Line(null, section, edge.getThickness(),
      null, true, new Point(rect.x + rect.width, rect.y),
      new Point(rect.x + rect.width, rect.y + rect.height));
  for (int i = 0; i < edge.getNumber(); ++i) {
      ld.drawLine(line, arg);
      line.getPoint(0).x -= BORDER_LINE_SPACE_MULT;
      line.getPoint(1).x -= BORDER_LINE_SPACE_MULT;
  }
View Full Code Here

TOP

Related Classes of jimm.datavision.Point

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.