Package org.pentaho.reporting.designer.core.model.lineal

Examples of org.pentaho.reporting.designer.core.model.lineal.LinealModel.addGuidLine()


      final double position = Math.min((double) pageHeight, Math.max((double) 0, scaledHeight));
      final GuideLine guideLine = new GuideLine(position, e.getButton() == MouseEvent.BUTTON1);

      final UndoManager undo = getRenderContext().getUndo();
      undo.addChange(new AddVerticalGuidelineUndoEntry(guideLine, getInstanceID()));
      linealModel.addGuidLine(guideLine);
    }

    public void mousePressed(final MouseEvent e)
    {
      final int padding = (int) getPadding();
View Full Code Here


  public void undo(final ReportRenderContext renderContext)
  {
    final AbstractReportDefinition abstractReportDefinition = renderContext.getReportDefinition();
    final LinealModel linealModel = ModelUtility.getHorizontalLinealModel(abstractReportDefinition);
    linealModel.addGuidLine(guideLine);
  }

  public void redo(final ReportRenderContext renderContext)
  {
    final AbstractReportDefinition abstractReportDefinition = renderContext.getReportDefinition();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.