Package com.sun.star.drawing

Examples of com.sun.star.drawing.PolyPolygonBezierCoords


            flags[1] = PolygonFlags.NORMAL;

            PolygonFlags[][] the_flags = new PolygonFlags[1][2];
            the_flags[0] = flags;

            PolyPolygonBezierCoords coords = new PolyPolygonBezierCoords();
            coords.Coordinates=the_points;
            coords.Flags = the_flags;

            DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape);
View Full Code Here


            flags[1] = PolygonFlags.NORMAL;

            PolygonFlags[][] the_flags = new PolygonFlags[1][2];
            the_flags[0] = flags;

            PolyPolygonBezierCoords coords = new PolyPolygonBezierCoords();
            coords.Coordinates=the_points;
            coords.Flags = the_flags;

            DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape);
View Full Code Here

      XPropertySet xPageProperties = (XPropertySet)
        UnoRuntime.queryInterface( XPropertySet.class, xDrawPage );
      int nPageWidth = ((Integer)xPageProperties.getPropertyValue( "Width" )).intValue() / 2;
      int nPageHeight = ((Integer)xPageProperties.getPropertyValue( "Height" )).intValue() / 2;

      PolyPolygonBezierCoords aCoords = new PolyPolygonBezierCoords();
      // allocating the outer sequence
      int nPolygonCount = 50;
      aCoords.Coordinates = new Point[ nPolygonCount ][ ]
      aCoords.Flags = new PolygonFlags[ nPolygonCount ][ ];
      int i, n, nY;
View Full Code Here

      XPropertySet xPageProperties = (XPropertySet)
        UnoRuntime.queryInterface( XPropertySet.class, xDrawPage );
      int nPageWidth = ((Integer)xPageProperties.getPropertyValue( "Width" )).intValue() / 2;
      int nPageHeight = ((Integer)xPageProperties.getPropertyValue( "Height" )).intValue() / 2;

      PolyPolygonBezierCoords aCoords = new PolyPolygonBezierCoords();
      // allocating the outer sequence
      int nPolygonCount = 50;
      aCoords.Coordinates = new Point[ nPolygonCount ][ ]
      aCoords.Flags = new PolygonFlags[ nPolygonCount ][ ];
      int i, n, nY;
View Full Code Here

            flags[1] = PolygonFlags.NORMAL;

            PolygonFlags[][] the_flags = new PolygonFlags[1][2];
            the_flags[0] = flags;

            PolyPolygonBezierCoords coords = new PolyPolygonBezierCoords();
            coords.Coordinates=the_points;
            coords.Flags = the_flags;

            DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape);
View Full Code Here

    // need to pass bezierShape and its 9 points
    public void setBezierShapeSize(XShape xBezierShape, Point point1, Point point2, Point point3, Point point4, Point point5, Point point6, Point point7, Point point8, Point point9 ){
        try {

            PolyPolygonBezierCoords aCoords = new PolyPolygonBezierCoords();

            Point[] pointCoords = new Point[11];
            pointCoords[0] = point1;
            pointCoords[1] = point2;
            pointCoords[2] = point2;
View Full Code Here

  public List<Polygon> getPolygons() {
    return polygons;
  }

  public PolyPolygonBezierCoords getCoords() {
    PolyPolygonBezierCoords coords = new PolyPolygonBezierCoords();
    coords.Coordinates = new Point[polygons.size()][];
    coords.Flags = new PolygonFlags[polygons.size()][];

    for (int i = 0; i < polygons.size(); i++) {
      coords.Coordinates[i] = polygons.get(i).getPoints();
View Full Code Here

  @Override
  public void setStartArrow(Arrow arrow) {
    if (arrow == null)
      return;
    PolyPolygonBezierCoords coords = arrow.getPolyPolygon().getCoords();
    if (coords == null)
      return;
    shape.setProperty(ILineProperties.START, coords);
  }
View Full Code Here

  @Override
  public void setEndArrow(Arrow arrow) {
    if (arrow == null)
      return;
    PolyPolygonBezierCoords coords = arrow.getPolyPolygon().getCoords();
    if (coords == null)
      return;
    shape.setProperty(ILineProperties.END, coords);
  }
View Full Code Here

      XPropertySet xPageProperties = (XPropertySet)
        UnoRuntime.queryInterface( XPropertySet.class, xDrawPage );
      int nPageWidth = ((Integer)xPageProperties.getPropertyValue( "Width" )).intValue() / 2;
      int nPageHeight = ((Integer)xPageProperties.getPropertyValue( "Height" )).intValue() / 2;

      PolyPolygonBezierCoords aCoords = new PolyPolygonBezierCoords();
      // allocating the outer sequence
      int nPolygonCount = 50;
      aCoords.Coordinates = new Point[ nPolygonCount ][ ]
      aCoords.Flags = new PolygonFlags[ nPolygonCount ][ ];
      int i, n, nY;
View Full Code Here

TOP

Related Classes of com.sun.star.drawing.PolyPolygonBezierCoords

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.