⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shapedecoration.java

📁 openmap java写的开源数字地图程序. 用applet实现,可以像google map 那样放大缩小地图.
💻 JAVA
字号:
package com.bbn.openmap.omGraphics.awt;import java.awt.Graphics;import java.awt.geom.Point2D;/** * A ShapeDecoration is a basic element to be drawn along a path by a * ShapeDecorator. The decoration length is measured along the path to * decorate,</LI> * the width, on a normal to the path.</LI> * The decoration may be on the left or on the right of the path. * </LI> *  * @author Eric LEPICIER * @version 26 juil. 2002 */public interface ShapeDecoration extends Revertable {    /**     * The right orientation constant     */    public static final int RIGHT = 1;    /**     * The left orientation constant     */    public static final int LEFT = 2;    /**     * Returns the length.     *      * @return float     */    public float getLength();    /**     * Returns the width.     *      * @return float     */    public float getWidth();    /**     * Returns the orientation.     *      * @return int     */    public int getOrientation();    /**     * Sets the orientation.     *      * @param orientation The orientation to set     */    public void setOrientation(int orientation);    /**     * reverts the orientation     */    public void revert();    /**     * Draws itself along the specified polyline Called by     * ShapeDecorator     *      * @see com.bbn.openmap.omGraphics.awt.ShapeDecorator#draw(Graphics, Point2D[])     * @param g     * @param points the polyline     * @param complete true if the polyline length equals the     *        decoration length     */    public void draw(Graphics g, Point2D[] points, boolean complete);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -