Package com.tinyline.tiny2d

Examples of com.tinyline.tiny2d.TinyString


            return font;

        /* Create TinyFont object. */
        font = new TinyFont();
        font.horizAdvX = 904;
        font.fontFamily = new TinyString("MyArial".toCharArray());
        font.unitsPerEm = 2048;
        font.ascent = 1854;
        font.descent = -434;
        font.baseline = 0;

View Full Code Here


 
  public void doLink(SVGNode linkNode)
  {
    SVGEvent event;
    String url;
    TinyString xlink_href = ((SVGGroupElem)linkNode).xlink_href;
    if(xlink_href == null) return;
    // System.out.println("linkEvent: " + xlink_href);
    // If its a local link
    int hashIndex = xlink_href.indexOf('#',0);
    if(hashIndex != -1)
    {
      //local link
      // Go thru all animations. For each anim with id equals
      // the local_link and which begin equals 'indefinite':
      // change the begin onto the current time an fire event.
      TinyString id = xlink_href.substring(hashIndex + 1);
      SVGDocument document =  canvas.raster.document;
      if(document.resolveLinkBased(id))
      {
        event = new SVGEvent(SVGEvent.EVENT_ANIMATE,null);
        canvas.postEvent(event);
View Full Code Here

       
      case SVGEvent.EVENT_BEGIN:
      case SVGEvent.EVENT_END:
      case SVGEvent.EVENT_REPEAT:
        document =  canvas.raster.document;
        TinyString smilEvent =  (TinyString)theEvent.data;
        if(document.resolveEventBased(smilEvent))
        {
          event = new SVGEvent(SVGEvent.EVENT_ANIMATE,null);
          canvas.postEvent(event);
        }
View Full Code Here

TOP

Related Classes of com.tinyline.tiny2d.TinyString

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.