[wadalabfont-kit] / java / Skeleton.java  

Diff of /java/Skeleton.java

Parent Directory | Revision Log

version 1.1.1.1, Thu Dec 28 08:54:22 2000 UTC version 1.2, Thu Jan 4 10:23:56 2001 UTC
Line 1 
Line 1 
   import java.util.*;
   
 public class Skeleton {  public class Skeleton {
   Point[] points;    Point[] points;
Line 11 
Line 12 
   public Point[] getPoints(){ return points;}    public Point[] getPoints(){ return points;}
   public Element[] getElements(){ return elements;}    public Element[] getElements(){ return elements;}
   public Annotation[] getAnnotations(){ return annotations;}    public Annotation[] getAnnotations(){ return annotations;}
     // まずは腕だめしに単純なやつをやってみる
     public Outline[] makeOutline(Renderer renderer){
       Vector v=new Vector();
       for(int i=0;i<elements.length;i++){
         Outline[] outlines=renderer.elementRenderer(points,elements[i]);
         if(outlines!=null){
           v.add(outlines[0]);
           v.add(outlines[1]);
         }
       }
       Outline[] ret=new Outline[v.size()];
       v.toArray(ret);
       return ret;
     }
   public String toString(){    public String toString(){
     String ret="Skeleton(";      String ret="Skeleton(";
     int i,len=points.length;      int i,len=points.length;


Generate output suitable for use with a patch program
Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help