Examples of calculateBounds()


Examples of com.positive.charts.util.TextBlock.calculateBounds()

        final Point anchorPoint = RectangleAnchor.coordinates(area,
            position.getCategoryAnchor());
        final TextBlock block = tick.getLabel();
        block.draw(g2, anchorPoint.x, anchorPoint.y, position
            .getLabelAnchor(), 0, 0, position.getAngle());
        final Rectangle bounds = block.calculateBounds(g2,
            anchorPoint.x, anchorPoint.y,
            position.getLabelAnchor(), anchorPoint.x,
            anchorPoint.y, position.getAngle());

        if ((plotState != null) && (plotState.getOwner() != null)) {
View Full Code Here

Examples of org.gvt.model.CompoundModel.calculateBounds()

  {
    CompoundModel rootModel = (CompoundModel) ((ChsRootEditPart) viewer.
      getRootEditPart().getChildren().get(0)).getModel();

    org.eclipse.draw2d.geometry.Rectangle bounds
      = rootModel.calculateBounds();
    org.eclipse.draw2d.geometry.Rectangle boundsRoot = f.getBounds();

    boundsRoot.setSize(bounds.x + bounds.width + CompoundModel.MARGIN_SIZE,
      bounds.y + bounds.height + CompoundModel.MARGIN_SIZE);
View Full Code Here

Examples of org.gvt.model.CompoundModel.calculateBounds()

      // Calculate the marque zoom rectangle to zoom.
      CompoundModel root = (CompoundModel)
        ((ChsRootEditPart)this.main.getViewer().getRootEditPart().
          getChildren().get(0)).getModel();
      Rectangle r = root.calculateBounds();

      // Graph Margins are added
      r.expand(LGraph.getGraphMargin(), LGraph.getGraphMargin());

      // Zoom to rectangle to fit in window
View Full Code Here

Examples of org.gvt.model.CompoundModel.calculateBounds()

  {
    CompoundModel rootModel = (CompoundModel) ((ChsRootEditPart) viewer.
      getRootEditPart().getChildren().get(0)).getModel();

    org.eclipse.draw2d.geometry.Rectangle bounds
      = rootModel.calculateBounds();
    org.eclipse.draw2d.geometry.Rectangle boundsRoot = f.getBounds();

    boundsRoot.setSize(bounds.x + bounds.width + CompoundModel.MARGIN_SIZE,
      bounds.y + bounds.height + CompoundModel.MARGIN_SIZE);
View Full Code Here

Examples of org.gvt.model.CompoundModel.calculateBounds()

  {
    CompoundModel rootModel = (CompoundModel) ((ChsRootEditPart) viewer.
      getRootEditPart().getChildren().get(0)).getModel();

    org.eclipse.draw2d.geometry.Rectangle bounds
      = rootModel.calculateBounds();
    org.eclipse.draw2d.geometry.Rectangle boundsRoot = f.getBounds();

    boundsRoot.setSize(bounds.x + bounds.width + CompoundModel.MARGIN_SIZE,
      bounds.y + bounds.height + CompoundModel.MARGIN_SIZE);
View Full Code Here

Examples of org.gvt.model.CompoundModel.calculateBounds()

  {
    CompoundModel rootModel = (CompoundModel) ((ChsRootEditPart) viewer.
      getRootEditPart().getChildren().get(0)).getModel();

    org.eclipse.draw2d.geometry.Rectangle bounds
      = rootModel.calculateBounds();
    org.eclipse.draw2d.geometry.Rectangle boundsRoot = f.getBounds();

    boundsRoot.setSize((int) (bounds.x + ((bounds.width + CompoundModel.MARGIN_SIZE) * zoom)),
      (int) (bounds.y + ((bounds.height + CompoundModel.MARGIN_SIZE) * zoom)));

 
View Full Code Here

Examples of org.gvt.model.CompoundModel.calculateBounds()

  {
    CompoundModel rootModel = (CompoundModel) ((ChsRootEditPart) viewer.
      getRootEditPart().getChildren().get(0)).getModel();

    org.eclipse.draw2d.geometry.Rectangle bounds
      = rootModel.calculateBounds();
    org.eclipse.draw2d.geometry.Rectangle boundsRoot = f.getBounds();

    boundsRoot.setSize((int) (bounds.x + ((bounds.width + CompoundModel.MARGIN_SIZE) * zoom)),
      (int) (bounds.y + ((bounds.height + CompoundModel.MARGIN_SIZE) * zoom)));

 
View Full Code Here

Examples of org.jfree.chart.text.TextBlock.calculateBounds()

            TextBlock block = tick.getLabel();
            block.draw(g2, (float) anchorPoint.getX(),
                    (float) anchorPoint.getY(), position.getLabelAnchor(),
                    (float) anchorPoint.getX(), (float) anchorPoint.getY(),
                    position.getAngle());
            Shape bounds = block.calculateBounds(g2,
                    (float) anchorPoint.getX(), (float) anchorPoint.getY(),
                    position.getLabelAnchor(), (float) anchorPoint.getX(),
                    (float) anchorPoint.getY(), position.getAngle());
            if (plotState != null && plotState.getOwner() != null) {
                EntityCollection entities
View Full Code Here

Examples of org.jfree.text.TextBlock.calculateBounds()

                    TextBlock block = tick.getLabel();
                    block.draw(g2, (float) anchorPoint.getX(),
                            (float) anchorPoint.getY(), position.getLabelAnchor(),
                            (float) anchorPoint.getX(), (float) anchorPoint.getY(),
                            position.getAngle());
                    Shape bounds = block.calculateBounds(g2,
                            (float) anchorPoint.getX(), (float) anchorPoint.getY(),
                            position.getLabelAnchor(), (float) anchorPoint.getX(),
                            (float) anchorPoint.getY(), position.getAngle());
                    if (plotState != null && plotState.getOwner() != null) {
                        EntityCollection entities
View Full Code Here

Examples of org.jfree.text.TextBlock.calculateBounds()

                TextBlock block = tick.getLabel();
                block.draw(g2, (float) anchorPoint.getX(),
                        (float) anchorPoint.getY(), position.getLabelAnchor(),
                        (float) anchorPoint.getX(), (float) anchorPoint.getY(),
                        position.getAngle());
                Shape bounds = block.calculateBounds(g2,
                        (float) anchorPoint.getX(), (float) anchorPoint.getY(),
                        position.getLabelAnchor(), (float) anchorPoint.getX(),
                        (float) anchorPoint.getY(), position.getAngle());
                if (plotState != null && plotState.getOwner() != null) {
                    EntityCollection entities
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.