资源简介
Thomas Brinkhoff移动对象生成器的修改,包括地图数据的写出控制,还有生成的移动对象的数据包含该对象所在路径id信息
代码片段和文件信息
package drawables;
import java.awt.*;
import java.io.*;
import util.*;
/**
* Basic class for drawable primitives.
*
* @version 3.41 20.08.2003 layers become byte use of MBR improved Rect removed
* @version 3.40 05.10.2002 interface SpatialSearchTreeEntry removed
* @version 3.30 20.02.2002 data output streams toString added
* @version 3.20 03.07.2001 getContainer added
* @version 3.10 25.08.2000 writeGML added
* @version 3.00 27.06.2000 implementation of spatial search tree objects support of presenation modes linked primitives
* @version 2.50 09.04.2000 intersects for drawable primitives added
* @version 2.40 26.03.2000 contains isContainedBy added; intersects renamed
* @version 2.30 31.01.2000 getobject isVisible computeDistance setMBR added
* @version 2.20 10.10.1999 write writeCoord added
* @version 2.10 14.08.1999 lazy loading of geometry
* @version 2.00 14.03.1999 changed from interface to class
* @author Thomas Brinkhoff
*/
public abstract class Drawable implements Serializable EntryReadable {
/**
* Standard layer for areal primitives.
*/
public static final byte AREAlayer = 0;
/**
* Standard layer for line primitives.
*/
public static final byte LINElayer = 1;
/**
* Standard layer for point primitives.
*/
public static final byte POINTlayer = 2;
/**
* Standard layer for text primitives.
*/
public static final byte TEXTlayer = 3;
/**
* Standard layer for (not scalable) bitmaps.
*/
public static final byte BITMAPlayer = 4;
/**
* Default for the least detailed scale.
*/
public static final int DEFMINSCALE = Integer.MAX_VALUE;
/**
* Default for the most detailed scale.
*/
public static final int DEFMAXSCALE = 0;
/**
* The minimum bounding rectangle.
*/
protected Rectangle mbr = null;
/**
* The least detailed scale for drawing.
*/
protected int minScale = DEFMINSCALE;
/**
* The most detailed scale for drawing.
*/
protected int maxScale = DEFMAXSCALE;
/**
* layer.
*/
protected byte layer = LINElayer;
/**
* Is the primitive selected?
*/
protected boolean selected = false;
/**
* The corresponding presentation object.
*/
protected DrawablePresentation pres = null;
/**
* The corresponding drawable object.
*/
protected Drawableobject obj = null;
/**
* Container of the primitive.
*/
protected Drawableobjects container = null;
/**
* Next primitive of the same layer.
*/
protected Drawable nextOflayer = null;
/**
* Computes the distance between two points.
* @return distance
* @param x1 x-coordinate of the 1st point
* @param y1 y-coordinate of the 1st point
* @param x2 x-coordinate of the 2nd point
* @param y2 y-coordinate of the 2nd point
*/
public static double computeDistance (int x1 int y1 int x2 int y2) {
long xDist = Math.abs(x1-x2);
long yDist = Math.abs(y1-y2);
return Math.sqrt(xDist*xDist + yDist*yDi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-10-25 10:33 CompleteSource21\
文件 394 2016-09-26 11:54 CompleteSource21\.classpath
文件 10244 2016-10-18 10:38 CompleteSource21\.DS_Store
目录 0 2016-10-28 10:37 __MACOSX\
目录 0 2016-10-28 10:37 __MACOSX\CompleteSource21\
文件 120 2016-10-18 10:38 __MACOSX\CompleteSource21\._.DS_Store
文件 211050 2016-06-05 08:17 CompleteSource21\.edge
文件 109890 2016-06-05 08:17 CompleteSource21\.node
文件 387 2005-02-14 15:23 CompleteSource21\.project
目录 0 2016-10-06 08:11 CompleteSource21\.settings\
文件 4021 2016-09-26 11:54 CompleteSource21\.settings\org.eclipse.jdt.core.prefs
文件 231797 2016-10-25 10:33 CompleteSource21\data_edge.txt
文件 112316 2016-10-25 10:33 CompleteSource21\data_node.txt
目录 0 2016-10-20 19:13 CompleteSource21\drawables\
文件 6148 2016-09-22 16:22 CompleteSource21\drawables\.DS_Store
目录 0 2016-10-28 10:37 __MACOSX\CompleteSource21\drawables\
文件 120 2016-09-22 16:22 __MACOSX\CompleteSource21\drawables\._.DS_Store
文件 9661 2016-10-20 19:13 CompleteSource21\drawables\Drawable.class
文件 14752 2003-08-20 16:51 CompleteSource21\drawables\Drawable.java
文件 3662 2016-10-20 19:13 CompleteSource21\drawables\DrawableBitmap.class
文件 4647 2003-08-12 13:39 CompleteSource21\drawables\DrawableBitmap.java
文件 3551 2016-10-20 19:13 CompleteSource21\drawables\DrawableCircle.class
文件 4065 2003-08-12 13:39 CompleteSource21\drawables\DrawableCircle.java
文件 7942 2016-10-20 19:13 CompleteSource21\drawables\DrawableLine.class
文件 11877 2003-08-19 19:55 CompleteSource21\drawables\DrawableLine.java
文件 6399 2016-10-20 19:13 CompleteSource21\drawables\Drawableob
文件 8773 2003-09-03 20:11 CompleteSource21\drawables\Drawableob
文件 8760 2016-10-20 19:13 CompleteSource21\drawables\Drawableob
文件 14266 2003-08-19 19:28 CompleteSource21\drawables\Drawableob
文件 5460 2016-10-20 19:13 CompleteSource21\drawables\Drawableob
文件 6859 2003-08-16 13:28 CompleteSource21\drawables\Drawableob
............此处省略217个文件信息
- 上一篇:TP-li
nk TL-WR842N V4 固件降级包合集 - 下一篇:彩票的选择
评论
共有 条评论