Examples of Line


Examples of org.pdfclown.documents.interaction.annotations.Line

   
    // Arrow line.
    composer.showText("Line annotation:", new Point(35,185));
    composer.setFont(font,10);
    composer.showText("Arrow:", new Point(50,200));
    Line line = new Line(
      page,
      new Point(50, 260),
      new Point(200,210)
      );
    line.setFillColor(new DeviceRGBColor(1,0,0));
    line.setStartStyle(Line.LineEndStyleEnum.Circle);
    line.setEndStyle(Line.LineEndStyleEnum.ClosedArrow);
    line.setText("Arrow line annotation");
    line.setCaptionVisible(true);

    // Dimension line.
    composer.showText("Dimension:", new Point(300,200));
    line = new Line(
      page,
      new Point(300,220),
      new Point(500,220)
      );
    line.setLeaderLineLength(20);
    line.setLeaderLineExtensionLength(10);
    line.setText("Dimension line annotation");
    line.setCaptionVisible(true);
   
    composer.end();

    // Scribble.
    composer.showText("Scribble annotation:", new Point(35,285));
View Full Code Here

Examples of org.plutext.jaxb.svg11.Line

        "position: absolute; width:100%; height:100%; left:0px; top:0px;");   
    Node n = document.appendChild(xhtmlDiv);
     
      // Convert the object itself to SVG
    Svg svg = oFactory.createSvg();
      Line line = oFactory.createLine();
      svg.getSVGDescriptionClassOrSVGAnimationClassOrSVGStructureClass().add(line);
     
      line.setX1(b.getOffset().getXAsString() );
      line.setY1(b.getOffset().getYAsString() );
     
      Point otherEnd = b.getOtherCorner();
     
      line.setX2( otherEnd.getXAsString() );
      line.setY2( otherEnd.getYAsString() );

      line.setStyle("stroke:rgb(99,99,99)");
      // You can't see the line in Midori, unless you specify the color.
      // width eg stroke-width:2 is optional
     
      Document d2 = XmlUtils.marshaltoW3CDomDocument(svg, jcSVG);  
      XmlUtils.treeCopy(d2, n);
View Full Code Here

Examples of org.telehash.model.Line

  }
 
  @Override
  public void sessionCreated(IoSession session) throws Exception {
    super.sessionCreated(session);
    Line line = state.getOrCreateLine((InetSocketAddress)session.getRemoteAddress());
    session.setAttribute("line", line);
    logger.debug("Session[{}] created", session.getId());
  }
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.Line

        normalRange = new Rectangle(0, 0, graphWidth, graphHeight);
        normalRange.setFillColor(normalRangeColor);
        normalRange.setStrokeOpacity(0);
        canvas.add(normalRange);

        average = new Line(0, 0, 0, 0);
        average.setStrokeWidth(pathWidth);
        average.setStrokeColor(averageColor);
        canvas.add(average);

        minDot = new Circle(0, 0, 1);
View Full Code Here

Examples of org.waveprotocol.wave.client.editor.content.paragraph.Line

        int num = event.getKeyCode() - '1' + 1;
        if (num >= 1 && num <= 6) {
          if (num == 5) {
            final String listStyle;

            Line l = Paragraph.getFirstLine(mapper(), mapper().getLocation(start));
            if (Paragraph.LIST_TYPE.equals(l.getAttribute(Paragraph.SUBTYPE_ATTR)) &&
                !Paragraph.LIST_STYLE_DECIMAL.equals(l.getAttribute(Paragraph.LIST_STYLE_ATTR))) {
              listStyle = Paragraph.LIST_STYLE_DECIMAL;
            } else {
              listStyle = null; // default style
            }
            Paragraph.apply(mapper(), startLoc, endLoc, Paragraph.listStyle(listStyle), true);
View Full Code Here

Examples of state.objects.Line

  @Override
  public void moveTo(Point p) {
    if (MouseButton == "DOWN") {

      //Draw
      Line l = new Line(LastMousePosition, p, group);
      int size = drawingBoard.getChildrenSize();
      if(size != 0) {
       
        Object temp = (Object) drawingBoard.getGraphicObjectByIndex(size-1);
        if( temp.getGroup() == group) {
View Full Code Here

Examples of urban.kappa.Line

        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case KappaPackage.LINE:
      {
        Line line = (Line)theEObject;
        T result = caseLine(line);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case KappaPackage.COMMENT_LINE:
View Full Code Here

Examples of urban.urban.Line

        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.LINE:
      {
        Line line = (Line)theEObject;
        T result = caseLine(line);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.IMPORTS:
View Full Code Here

Examples of window.graphic.Line

   * @param y1 Coordinates of first point of the line
   * @param x2 Coordinates of second point of the line
   * @param y2 Coordinates of second point of the line
   */
  public void buildLine(int x1, int y1, int x2, int y2) {
    Line line1 = new Line(x1, y1, x2, y2, new Color(200, 0, 0));
   
    content.setLayout(null);
    line1.setVisible(true);
    line1.setBounds(x1, y1, Math.abs(x2-x1), Math.abs(y2-y1));
    line1.setLayout(null);
    line1.setBorder(null);
    line1.displayLine(0, 0, 0, 0);
    this.setLine(line1);
    content.add(line1);
  }
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.