JAVA,ÈçºÎÅжϵãÊÇ·ñÔÚÃæÄÚ£¿
Ê×ÏÈÃæÒ²ÊÇÓÉһϵÁеĵã×é³É£¬±ÈÈ磬һ¸öÕý·½ÐΡ£ÎÒÃÇ¿ÉÒÔ°ÑËüµ±³ÉËĸö×ø±êµãÈ»ºóÖ±ÏßÁ¬½Ó¶ø³É¡£
java.awt.geom.GeneralPathΪÎÒÃÇʵÏÖµÄÕâ¸ö»ÏߵŦÄÜ¡£
ÏÂÃæÓÃÒ»¸ö¼òµ¥µÄÀý×ÓÀ´»Ò»¸öÃæ
/**
* ½«¾Î³¶Èµã¼¯ºÏת»»ÎªGeneralPath¶ÔÏó
*
* @param points µã¼¯ºÏ(ÓÐÐò)
*
* @return GeneralPath¶ÔÏó
*/
public static GeneralPath genGeneralPath(ArrayList<Point2D.Double> points) {
GeneralPath path = new GeneralPath();
if (points.size() < 3) {
return null;
}
path.moveTo((float) points.get(0).getX(), (float) points.get(0).getY());
for (Iterator<Point2D.Double> it = points.iterator(); it.hasNext();) {
Point2D.Double point = (Point2D.Double) it.next();
path.lineTo((float) point.getX(), (float) point.getY());
}
path.closePath();
return path;
}
ÆäÖС£pointsÊÇһϵÁÐ×ø±êµãµÄ¼¯ºÏ¡£ÎÒÃÇ¿ÉÒÔÓÃ
Point2D.Double point= new Point2D.Double(x,y);Éú³ÉеÄ×ø±êµã
moveTo·½·¨£ºÍ¨¹ýÒÆ¶¯µ½Ö¸¶¨µÄ×ø±êÔÚ·¾¶ÖÐÌí¼Óµã
Ö±½ÓÓÃ
lineTo:ͨ¹ý»æÖÆÒ»Ìõ´Óµ±Ç°×ø±êµ½ÐÂÖ¸¶¨×ø±êµÄÖ±ÏßÔÚ·¾¶ÖÐÌí¼Óµã¡£
ÕâÑùÿ¼ÓÒ»¸öµã¡£ÎÒÃǾÍÓÃÉÏÒ»¸öµãµ½Õâ¸öµã»ÌõÖ±Ïß¡£ÕâÑù¾Í³É¹¦µÄ»ºÃÁËÒ»¸öÃæÁË¡£
È»ºó£¬ÎÒÃÇÅжÁµãÊÇ·ñÔÚ¸ÃÃæÖÐ
GeneralPathÀàµÄcontains·½·¨¾Í¿ÉÒÔÁË¡£ÕæµÄ·Ç³£·½±ã
Ïà¹ØÎĵµ£º
ÓÃjava´´½¨XmlµÄ4´óÀࣺ
Element£º½ÚµãÀà
AttributeÊôÐÔÀà
Document£ºÖ¸µÄ¾ÍÊÇÎĵµÀà
XMLOutput£ºÊä³öÀà
´ËÀàÊÇÓÃjava½¨Á¢Ò»¸öxmlÎļþ
public class TestJdom {
//´´½¨XML£¨Ä£ÐÍ£©dom
public static void main(String[] args) {
  ......
¡¡¡¡inkfish·Ò룬ÇëÎðÉÌÒµÐÔÖÊ×ªÔØ£¬×ªÔØÇë×¢Ã÷À´Ô´£¨http://blog.csdn.net/inkfish
£©¡£±¾ÎÄÊÇÎÒѧϰJUELͬʱ£¬¶ÔÔÍøÕ¾½øÐеļòµ¥µÄ·Ò룬ÔÍøÕ¾µØÖ·£ºhttp://juel.sourceforge.net/guide/basic/factory.html
¡£ËµÊµ»°£¬ÕâÆª·ÒëµÄµÄÈ·²»ÔõÑù¡£
±í´ïʽ¹¤³§£¨Expression Factory£©
¡¡¡¡Èç¹ûҪʹÓÃEL
£¬¾Í±ØÐëÒªÓÐÒ ......
ÔÒòÓкܶàÖÖ£¬±ÈÈ磺
1.Êý¾ÝÁ¿¹ýÓÚÅÓ´ó£»ËÀÑ»· £»¾²Ì¬±äÁ¿ºÍ¾²Ì¬·½·¨¹ý¶à£»µÝ¹é£»ÎÞ·¨È·¶¨ÊÇ·ñ±»ÒýÓõĶÔÏó£»
2.ÐéÄâ»ú²»»ØÊÕÄڴ棨ÄÚ´æÐ¹Â©£©£»
˵°×Á˾ÍÊdzÌÐòÔËÐÐÒªÓõ½µÄÄÚ´æ´óÓÚÐéÄâ»úÄÜÌṩµÄ×î´óÄÚ´æ¾Í·¢ÉúÄÚ´æÒç³öÁË¡£ ÄÚ´æÒç³öµÄÎÊÌâÒª¿´ÒµÎñºÍϵͳ´óС¶ø¶¨£¬¶ÔÓÚijЩϵͳ¿ÉÄÜÄÚ´æ ......
±¾ÎİüÀ¨:
A: servletÔ´ÂëʵÀý
B: servlet²¿Êð
C: ¿Í»§¶ËÔ¶³Ìµ÷ÓÃ
D: servlet¿ª·¢µ÷Óù¤¾ß
A: servletÔ´ÂëʵÀý
package com.viewlinecn.userlogin.www.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http ......