Examples of WhiteboardPoint


Examples of net.java.sip.communicator.service.protocol.WhiteboardPoint

                String stroke = e.getAttribute ("stroke");
                String stroke_width = e.getAttribute ("stroke-width");
                String fill = e.getAttribute ("fill");
               
                this.setID (id);
                this.setWhiteboardPoint (new WhiteboardPoint (x, y));
                this.setWidth (width);
                this.setHeight (height);
                this.setFill (!fill.equals ("none"));
                this.setThickness (Integer.parseInt (stroke_width));
                this.setColor (Color.decode (stroke).getRGB ());
View Full Code Here

Examples of net.java.sip.communicator.service.protocol.WhiteboardPoint

          "fill=\"#f\" stroke=\"#s\" stroke-width=\"#ow\"/>";
       
        s = s.replaceAll ("#i", getID ());
        s = s.replaceAll ("#s",  colorToHex (getColor ()));
        s = s.replaceAll ("#ow", ""+getThickness ());
        WhiteboardPoint p = getWhiteboardPoint ();
        s = s.replaceAll ("#x", ""+p.getX ());
        s = s.replaceAll ("#y", ""+p.getY ());
        s = s.replaceAll ("#w", ""+getWidth ());
        s = s.replaceAll ("#h", ""+getHeight ());
        s = s.replaceAll ("#f", ((isFill ())?(""+getColor ()):"none"));
       
        return s;
View Full Code Here

Examples of net.java.sip.communicator.service.protocol.WhiteboardPoint

                double width = Double.parseDouble (e.getAttribute ("width"));
                double height = Double.parseDouble (e.getAttribute ("height"));
                String img = e.getTextContent ();
               
                this.setID (id);
                this.setWhiteboardPoint (new WhiteboardPoint (x, y));
                this.setWidth (width);
                this.setHeight (height);
                this.setBackgroundImage(Base64.decode(img));
            }
        }
View Full Code Here

Examples of net.java.sip.communicator.service.protocol.WhiteboardPoint

        String s
            = "<image id=\"#id\" x=\"#x\" y=\"#y\" width=\"#w\" height=\"#h\">"
                + "#img</image>";

        s = s.replaceAll ("#id", getID ());
        WhiteboardPoint p =  getWhiteboardPoint ();
        s = s.replaceAll ("#x", ""+p.getX ());
        s = s.replaceAll ("#y", ""+p.getY ());
        s = s.replaceAll ("#w", ""+getWidth ());
        s = s.replaceAll ("#h", ""+getHeight ());
        String img = new String (Base64.encode (getBackgroundImage ()));
        s = s.replaceAll ("#img", img);
       
View Full Code Here

Examples of net.java.sip.communicator.service.protocol.WhiteboardPoint

                String stroke_width = e.getAttribute ("stroke-width");
               
                this.setID (id);
                this.setThickness (Integer.parseInt (stroke_width));
                this.setColor (Color.decode (stroke).getRGB ());
                this.setWhiteboardPointStart (new WhiteboardPoint (x1,y1));
                this.setWhiteboardPointEnd (new WhiteboardPoint (x2,y2));
            }
        }
        catch (ParserConfigurationException ex)
        {
            if (logger.isDebugEnabled())
View Full Code Here

Examples of net.java.sip.communicator.service.protocol.WhiteboardPoint

                + "stroke=\"#s\" stroke-width=\"#w\"/> ";

        s = s.replaceAll ("#i", getID ());
        s = s.replaceAll ("#s",  colorToHex (getColor ()));
        s = s.replaceAll ("#w", ""+getThickness ());
        WhiteboardPoint p1 = getWhiteboardPointStart ();
        WhiteboardPoint p2 = getWhiteboardPointEnd ();

        s = s.replaceAll ("#x1", "" + p1.getX ());
        s = s.replaceAll ("#y1", "" + p1.getY ());

        s = s.replaceAll ("#x2", "" + p2.getX ());
        s = s.replaceAll ("#y2", "" + p2.getY ());

        return s;
    }
View Full Code Here

Examples of net.java.sip.communicator.service.protocol.WhiteboardPoint

                String stroke = e.getAttribute ("stroke");
                String stroke_width = e.getAttribute ("stroke-width");
                String fill = e.getAttribute ("fill");
               
                this.setID (id);
                this.setWhiteboardPoint (new WhiteboardPoint (cx,cy));
                this.setRadius (r);
                this.setFill (!fill.equals ("none"));
                this.setThickness (Integer.parseInt (stroke_width));
                this.setColor (Color.decode (stroke).getRGB ());
            }
View Full Code Here

Examples of net.java.sip.communicator.service.protocol.WhiteboardPoint

          "fill=\"#f\" stroke=\"#s\" stroke-width=\"#ow\" />";

        s = s.replaceAll ("#i", getID ());
        s = s.replaceAll ("#s",  colorToHex (getColor ()));
        s = s.replaceAll ("#ow", ""+getThickness ());
        WhiteboardPoint p = getWhiteboardPoint ();
        s = s.replaceAll ("#cx", ""+p.getX ());
        s = s.replaceAll ("#cy", ""+p.getY ());
        s = s.replaceAll ("#r", ""+getRadius ());
        s = s.replaceAll ("#f", ((fill)?colorToHex (getColor ()):"none"));

        return s;
    }
View Full Code Here

Examples of net.java.sip.communicator.service.protocol.WhiteboardPoint

     */
    public WhiteboardObjectTextJabberImpl ()
    {
        super ();

        this.setWhiteboardPoint (new WhiteboardPoint (0, 0));
        this.setFontName (fontName);
        this.setFontSize (fontSize);
        this.setText (text);
    }
View Full Code Here

Examples of net.java.sip.communicator.service.protocol.WhiteboardPoint

                String fontFamily = e.getAttribute ("font-family");
                int fontSize = Integer.parseInt (e.getAttribute ("font-size"));
                String text = e.getTextContent ();
               
                this.setID (id);
                this.setWhiteboardPoint (new WhiteboardPoint (x, y));
                this.setFontName (fontFamily);
                this.setFontSize (fontSize);
                this.setText (text);
                this.setColor (Color.decode (fill).getRGB ());
               
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.