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; |
} |
} |
} |
} |
g.setColor(Color.red); |
g.setColor(Color.red); |
for(i=0;i<len;i++){ |
Outline[] outlines=skel.makeOutline(renderer); |
Outline[] outlines=renderer.elementRenderer(points,elements[i]); |
for(i=0;i<outlines.length;i++){ |
showOutline(g,outlines[0]); |
showOutline(g,outlines[i]); |
showOutline(g,outlines[1]); |
} |
} |
} |
} |
} |
public static void main(String[] args) throws IOException,LispException{ |
public static void main(String[] args) throws IOException,LispException{ |
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(); |