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

📄 sunitsymbol.java

📁 openmap java写的开源数字地图程序. 用applet实现,可以像google map 那样放大缩小地图.
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
// **********************************************************************// // <copyright>// //  BBN Technologies//  10 Moulton Street//  Cambridge, MA 02138//  (617) 873-8000// //  Copyright (C) BBNT Solutions LLC. All rights reserved.// // </copyright>// **********************************************************************// // $Source: /cvs/distapps/openmap/src/corba/com/bbn/openmap/layer/specialist/SUnitSymbol.java,v $// $RCSfile: SUnitSymbol.java,v $// $Revision: 1.2.2.1 $// $Date: 2004/10/14 18:26:32 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.layer.specialist;import com.bbn.openmap.CSpecialist.*;import com.bbn.openmap.CSpecialist.GraphicPackage.*;import com.bbn.openmap.CSpecialist.UnitSymbolPackage.*;/** FM101 Unit Symbols are part of a Goverment standard for icons. */public class SUnitSymbol extends SGraphic /*used to be _UnitSymbolImplBase*/ {    protected XYPoint p1_;    protected LLPoint ll1_;    protected String group_ = new String();    protected String symbol_ = new String();    protected String echelon_ = new String();    protected String left1_ = new String();    protected String left2_ = new String();    protected String left3_ = new String();    protected String left4_ = new String();    protected String right1_ = new String();    protected String right2_ = new String();    protected String right3_ = new String();    protected String right4_ = new String();    protected String top1_ = new String();    protected String bottom1_ = new String();    protected short nom_size_ = 30;     // nominal size is in pixels    protected short min_size_ = 5;      // minimal size is in pixels    protected short max_size_ = 1000;   // maximum size is in pixels    protected int scale_ = 3200;        // scale at which size is nom_size    protected boolean is_hq_ = false;   // Headquarters mark display    protected float rotate_ = (float)0.0;               // rotate unit 0.0 -> 180.0 degrees    public SUnitSymbol() {        super(GraphicType.GT_UnitSymbol, RenderType.RT_Unknown,               LineType.LT_Unknown, DeclutterType.DC_None);        p1_ = new XYPoint((short)0, (short)0);        ll1_ = new LLPoint(0f, 0f);    }    public SUnitSymbol(LLPoint ll1,                       String group,                       String symbol,                       String echelon,                       String bottom) {        super(GraphicType.GT_UnitSymbol, RenderType.RT_LatLon,               LineType.LT_Unknown, DeclutterType.DC_None);        p1_ = new XYPoint((short)0, (short)0);        ll1_ = ll1;        group_ = group;        symbol_ = symbol;        echelon_ = echelon;        bottom1_ = bottom;    }    public SUnitSymbol(short x1, short y1,                       String group,                       String symbol,                       String echelon,                       String bottom1) {        super(GraphicType.GT_UnitSymbol, RenderType.RT_XY,               LineType.LT_Unknown, DeclutterType.DC_None);        p1_ = new XYPoint(x1, y1);        ll1_ = new LLPoint(0f, 0f);        group_ = group;        symbol_ = symbol;        echelon_ = echelon;        bottom1_ = bottom1;    }    public SUnitSymbol(LLPoint  ll1,                                   String   group,                                 String   symbol,                                String   echelon,                               String   left1,                                 String   left2,                                 String   left3,                                 String   left4,                                 String   right1,                                String   right2,                                String   right3,                                String   right4,                                String   top1,                                  String   bottom1,                               short    nom_size,                          short    min_size,                          short    max_size,                          int      scale,                             boolean  is_hq,                                 float    rotate) {        super(GraphicType.GT_UnitSymbol, RenderType.RT_LatLon,               LineType.LT_Unknown, DeclutterType.DC_None);        p1_ = new XYPoint((short)0, (short)0);        ll1_     = ll1;        group_   = group;        symbol_  = symbol;        echelon_ = echelon;        left1_   = left1;        left2_   = left2;        left3_   = left3;        left4_   = left4;        right1_  = right1;        right2_  = right2;        right3_  = right3;        right4_  = right4;        top1_    = top1;        bottom1_ = bottom1;        nom_size_= nom_size;        min_size_= min_size;        max_size_= max_size;        scale_   = scale;        is_hq_   = is_hq;        rotate_  = rotate;    }    public SUnitSymbol(short x1, short y1,                       String   group,                                 String   symbol,                                String   echelon,                               String   left1,                                 String   left2,                                 String   left3,                                 String   left4,                                 String   right1,                                String   right2,                                String   right3,                                String   right4,                                String   top1,                                  String   bottom1,                               short    nom_size,                        short    min_size,                        short    max_size,                        int      scale,                            boolean  is_hq,                                 float    rotate) {        super(GraphicType.GT_UnitSymbol, RenderType.RT_XY,               LineType.LT_Unknown, DeclutterType.DC_None);        p1_ = new XYPoint(x1, y1);        ll1_ = new LLPoint(0f, 0f);        group_   = group;        symbol_  = symbol;        echelon_ = echelon;        left1_   = left1;        left2_   = left2;        left3_   = left3;        left4_   = left4;        right1_  = right1;        right2_  = right2;        right3_  = right3;        right4_  = right4;        top1_    = top1;        bottom1_ = bottom1;        nom_size_= nom_size;        min_size_= min_size;        max_size_= max_size;        scale_   = scale;        is_hq_   = is_hq;        rotate_  = rotate;    }      // Object methods    public void p1(com.bbn.openmap.CSpecialist.XYPoint p1) {        p1_ = p1;    }    public com.bbn.openmap.CSpecialist.XYPoint p1() {        return p1_;    }    public void ll1(com.bbn.openmap.CSpecialist.LLPoint ll1) {        ll1_ = ll1;    }    public com.bbn.openmap.CSpecialist.LLPoint ll1() {        return ll1_;    }    public void group(String group) { group_ = group; }    public String group() { return group_; }    public void symbol(String symbol) { symbol_ = symbol; }    public String symbol() { return symbol_;}    public void echelon(String echelon) { echelon_ = echelon;}    public String echelon() { return echelon_;}    public void left1(String left1) {left1_ = left1; }    public String left1() { return left1_ ; }    public void left2(String left2) {left2_ = left2; }    public String left2() { return left2_ ; }    public void left3(String left3) {left3_ = left3; }    public String left3() { return left3_ ; }    public void left4(String left4) {left4_ = left4; }    public String left4() { return left4_ ; }    public void right1(String right1) {right1_ = right1; }    public String right1() { return right1_ ; }    public void right2(String right2) {right2_ = right2; }

⌨️ 快捷键说明

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