[wadalabfont-kit] / java / ShowSkeleton.java  

Diff of /java/ShowSkeleton.java

Parent Directory | Revision Log

version 1.1.1.1, Thu Dec 28 08:54:22 2000 UTC version 1.2, Wed Jan 3 02:46:31 2001 UTC
Line 11 
Line 11 
     addKeyListener(this);      addKeyListener(this);
     renderer=MinchoRenderer.chuuMincho;      renderer=MinchoRenderer.chuuMincho;
   }    }
   public void keyPressed(KeyEvent e){ System.exit(1);}    public void keyPressed(KeyEvent e){}
   public void keyReleased(KeyEvent e){ System.exit(1);}    public void keyReleased(KeyEvent e){}
   public void keyTyped(KeyEvent e){ System.exit(1);}    public void keyTyped(KeyEvent e){}
   public void showOutline(Graphics g,Outline outline){    public void showOutline(Graphics g,Outline outline){
     Vector ret=new Vector(10);      Vector ret=new Vector(10);
     OutlineComponent[] components=outline.getComponents();      OutlineComponent[] components=outline.getComponents();
Line 34 
Line 34 
     g.setColor(Color.white);      g.setColor(Color.white);
     g.fillRect(0,0,400,400);      g.fillRect(0,0,400,400);
     g.setColor(Color.black);      g.setColor(Color.black);
       if(skel!=null){
     Point[] points=skel.getPoints();      Point[] points=skel.getPoints();
     Element[] elements=skel.getElements();      Element[] elements=skel.getElements();
     int i,len=elements.length;      int i,len=elements.length;
Line 54 
Line 55 
       showOutline(g,outlines[1]);        showOutline(g,outlines[1]);
     }      }
   }    }
     }
   public static void main(String[] args) throws IOException,LispException{    public static void main(String[] args) throws IOException,LispException{
     ShowSkeleton window=new ShowSkeleton();      ShowSkeleton window=new ShowSkeleton();
     window.setSize(400,400);      window.setSize(400,400);
Line 63 
Line 65 
     BufferedReader br=new BufferedReader(new InputStreamReader(System.in));      BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
     LispObject lo=null;      LispObject lo=null;
     while((lo=lis.nextObject())!=null){      while((lo=lis.nextObject())!=null){
           System.out.println(lo);
       if(lo.getType()==LispObject.CONS && lo.car().getName().equals("setq")){        if(lo.getType()==LispObject.CONS && lo.car().getName().equals("setq")){
         window.skel=LispToSkeleton.lispToSkeleton(lo.cdr().cdr().car().cdr().car());          window.skel=LispToSkeleton.lispToSkeleton(lo.cdr().cdr().car().cdr().car());
         window.repaint();          window.repaint();


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