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(); |
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; |
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); |
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(); |