Examples of difference()


Examples of ch.njol.skript.util.Date.difference()

    }
   
    if (i.files == 0)
      Skript.warning(m_no_scripts.toString());
    if (Skript.logNormal() && i.files > 0)
      Skript.info(m_scripts_loaded.toString(i.files, i.triggers, i.commands, start.difference(new Date())));
   
    SkriptEventHandler.registerBukkitEvents();
   
    return i;
  }
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.difference()

    if (!m1.isIsomorphicWith(m2)) {  
      if ( true || m1.size() == m2.size()) {
        System.err.println("GRDDL\n=====");
        m1.difference(m2).write(System.err, "N3-TRIPLES");
        System.err.println("RDF/XML\n=======");
        m2.difference(m1).write(System.err, "N3-TRIPLES");
      }

      String fn = shorten(input);
      if (fn.indexOf('/') == -1) {
        FileOutputStream fos = new FileOutputStream("C:/temp/" + fn
View Full Code Here

Examples of com.lowagie.text.rtf.style.RtfFont.difference()

            this.paragraphStyle.setKeepTogether(paragraph.getKeepTogether());
        }       
        for(int i = 0; i < paragraph.size(); i++) {
            LwgElement chunk = (LwgElement) paragraph.get(i);
            if(chunk instanceof Chunk) {
                ((Chunk) chunk).setFont(baseFont.difference(((Chunk) chunk).getFont()));
            } else if(chunk instanceof RtfImage) {
                ((RtfImage) chunks.get(i)).setAlignment(this.paragraphStyle.getAlignment());
            }
            try {
                RtfBasicElement[] rtfElements = doc.getMapper().mapElement(chunk);
View Full Code Here

Examples of com.lowagie.text.rtf.style.RtfFont.difference()

       
        RtfFont phraseFont = new RtfFont(null, phrase.getFont());
        for(int i = 0; i < phrase.size(); i++) {
            LwgElement chunk = (LwgElement) phrase.get(i);
            if(chunk instanceof Chunk) {
                ((Chunk) chunk).setFont(phraseFont.difference(((Chunk) chunk).getFont()));
            }
            try {
                RtfBasicElement[] rtfElements = doc.getMapper().mapElement(chunk);
                for(int j = 0; j < rtfElements.length; j++) {
                    chunks.add(rtfElements[j]);
View Full Code Here

Examples of com.lowagie.text.rtf.style.RtfFont.difference()

            this.paragraphStyle.setKeepTogether(paragraph.getKeepTogether());
        }       
        for(int i = 0; i < paragraph.size(); i++) {
            Element chunk = (Element) paragraph.get(i);
            if(chunk instanceof Chunk) {
                ((Chunk) chunk).setFont(baseFont.difference(((Chunk) chunk).getFont()));
            } else if(chunk instanceof RtfImage) {
                ((RtfImage) chunks.get(i)).setAlignment(this.paragraphStyle.getAlignment());
            }
            try {
                RtfBasicElement[] rtfElements = doc.getMapper().mapElement(chunk);
View Full Code Here

Examples of com.lowagie.text.rtf.style.RtfFont.difference()

       
        RtfFont phraseFont = new RtfFont(null, phrase.getFont());
        for(int i = 0; i < phrase.size(); i++) {
            Element chunk = (Element) phrase.get(i);
            if(chunk instanceof Chunk) {
                ((Chunk) chunk).setFont(phraseFont.difference(((Chunk) chunk).getFont()));
            }
            try {
                RtfBasicElement[] rtfElements = doc.getMapper().mapElement(chunk);
                for(int j = 0; j < rtfElements.length; j++) {
                    chunks.add(rtfElements[j]);
View Full Code Here

Examples of com.lowagie.text.rtf.style.RtfFont.difference()

            this.paragraphStyle.setKeepTogether(paragraph.getKeepTogether());
        }       
        for(int i = 0; i < paragraph.size(); i++) {
            Element chunk = (Element) paragraph.get(i);
            if(chunk instanceof Chunk) {
                ((Chunk) chunk).setFont(baseFont.difference(((Chunk) chunk).getFont()));
            } else if(chunk instanceof RtfImage) {
                ((RtfImage) chunks.get(i)).setAlignment(this.paragraphStyle.getAlignment());
            }
            try {
                chunks.add(doc.getMapper().mapElement(chunk));
View Full Code Here

Examples of com.lowagie.text.rtf.style.RtfFont.difference()

       
        RtfFont phraseFont = new RtfFont(null, phrase.getFont());
        for(int i = 0; i < phrase.size(); i++) {
            Element chunk = (Element) phrase.get(i);
            if(chunk instanceof Chunk) {
                ((Chunk) chunk).setFont(phraseFont.difference(((Chunk) chunk).getFont()));
            }
            try {
                chunks.add(doc.getMapper().mapElement(chunk));
            } catch(DocumentException de) {
            }
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.difference()

    List<Geometry> segmentsToAdd = new LinkedList<Geometry>();
    // apply the difference operation.
    Geometry result = this.line;
    for (Geometry ring : ringList) {

      result = result.difference(ring);
    }
    // union for nodded multilineStrings.
    result = SplitUtil.buildLineUnion(result);
    // seek for overlapped segments.
    for (int i = 0; i < originalCoord.length - 1; i++) {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.difference()

      // the original feature + apply all the differences with a ring =
      // result feature

      // each ring, if it lays entirely inside the polygon = one new piece
      Polygon polygonArea = gf.createPolygon((LinearRing) ring, null);
      result = result.difference(polygonArea);
      Geometry areaIntersection = polygonArea.intersection(polygon);
      for (int i = 0; i < areaIntersection.getNumGeometries(); i++) {
        piecesFrom.add(areaIntersection.getGeometryN(i));
      }
    }
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.