亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hqapplet.java

?? 一份java寫的期貨交易程序
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   HQApplet.java

package gnnt.MEBS.HQApplet;

import gnnt.MEBS.hq.ProductDataVO;
import gnnt.MEBS.hq.TradeTimeVO;
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.io.IOException;
import java.io.PrintStream;
import java.net.Socket;
import java.net.URL;
import java.util.*;

// Referenced classes of package gnnt.MEBS.HQApplet:
//            ProductData, HttpThread, SendThread, ReceiveThread, 
//            RHColor, Page_Bottom, InputDialog, Page_KLine, 
//            Draw_KLine, Page_Main, Common, Page_MarketStatus, 
//            Page_MultiQuote, CodeTable, Page_MinLine, AboutDialog, 
//            Page_Bill, Page_History

public class HQApplet extends Applet
    implements FocusListener
{

    private static final long serialVersionUID = 0x5ba23793a3c0f861L;
    private boolean isStandalone;
    static final int PAGE_MULTIQUOTE = 0;
    static final int PAGE_MINLINE = 1;
    static final int PAGE_KLINE = 2;
    static final int PAGE_F10 = 3;
    static final int PAGE_BILL = 4;
    static final int PAGE_MARKETSTATUS = 5;
    static final int PAGE_HISTORY = 6;
    int iCurrentPage;
    public String strCurrentCode;
    String indexMainCode;
    int m_iKLineCycle;
    String m_strIndicator;
    int m_iCodeDate;
    int m_iCodeTime;
    int m_iDate;
    int m_iTime;
    TradeTimeVO m_timeRange[];
    int m_iMinLineInterval;
    Vector m_codeList;
    Hashtable m_htProduct;
    Vector vProductData;
    ProductDataVO m_quoteList[];
    private Rectangle m_rcMain;
    private Rectangle m_rcBottom;
    Page_Main mainGraph;
    Page_Bottom bottomGraph;
    public static RHColor rhColor = null;
    String strSocketIP;
    int iSocketPort;
    String strURLPath;
    Socket socket;
    SendThread sendThread;
    ReceiveThread receiveThread;
    HttpThread httpThread;
    boolean bRunning;
    PopupMenu popupMenu;
    static int bDebug = 0;
    int iShowBuySellPrice;
    String m_strMarketName;
    int m_bShowIndexAtBottom;
    int m_bShowIndexKLine;
    int m_iPrecision;
    int m_iPrecisionIndex;
    ResourceBundle m_resourceBundle;
    String strLanguageName;
    boolean bInputDlgShow;
    boolean bAboutDlgShow;
    private boolean m_bEndPaint;
    private Image m_img;

    public String getParameter(String key, String def)
    {
        return isStandalone ? System.getProperty(key, def) : getParameter(key) == null ? def : getParameter(key);
    }

    public static void main(String args[])
    {
        final HQApplet applet = new HQApplet();
        applet.isStandalone = true;
        Frame frame = new Frame() {

            private static final long serialVersionUID = 0x5ee6fe2cdea8105dL;

            protected void processWindowEvent(WindowEvent e)
            {
                super.processWindowEvent(e);
                if(e.getID() == 201)
                {
                    applet.destroy();
                    System.exit(0);
                }
            }

            public synchronized void setTitle(String title)
            {
                super.setTitle(title);
                enableEvents(64L);
            }

        };
        frame.setTitle("Applet Frame");
        frame.add(applet, "Center");
        frame.setSize(800, 600);
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
        frame.setVisible(true);
        applet.init();
        applet.start();
    }

    ProductData GetProductData(String code)
    {
        for(int i = 0; i < vProductData.size(); i++)
            if(((ProductData)vProductData.elementAt(i)).sCode.equals(code))
                return (ProductData)vProductData.elementAt(i);

        return null;
    }

    public HQApplet()
    {
        isStandalone = false;
        iCurrentPage = -1;
        strCurrentCode = "";
        indexMainCode = "";
        m_iKLineCycle = 1;
        m_strIndicator = "ORDER";
        m_iDate = 0;
        m_iTime = 0;
        m_timeRange = null;
        m_iMinLineInterval = 60;
        m_codeList = new Vector();
        m_htProduct = new Hashtable();
        vProductData = new Vector();
        m_quoteList = new ProductDataVO[0];
        m_rcMain = null;
        m_rcBottom = null;
        mainGraph = null;
        bottomGraph = null;
        socket = null;
        bRunning = true;
        popupMenu = new PopupMenu();
        m_strMarketName = "";
        m_bShowIndexAtBottom = 1;
        m_bShowIndexKLine = 0;
        m_iPrecision = 0;
        m_iPrecisionIndex = 2;
        strLanguageName = "zh";
        bInputDlgShow = false;
        bAboutDlgShow = false;
        System.out.println("new HQApplet ");
    }

    public void init()
    {
        bRunning = true;
        try
        {
            jbInit();
        }
        catch(Exception e)
        {
            if(bDebug != 0)
                e.printStackTrace();
        }
        if(bDebug != 0)
            System.out.println("init HQApplet ");
    }

    private void jbInit()
        throws Exception
    {
        if(isStandalone)
        {
            strSocketIP = "172.16.2.214";
            iSocketPort = 8002;
            strURLPath = "http://" + strSocketIP + ":80/hqApplet/";
            iShowBuySellPrice = 3;
        } else
        {
            URL url = getDocumentBase();
            strSocketIP = url.getHost();
            iSocketPort = Integer.parseInt(getParameter("Port", "888"));
            strURLPath = url.toString();
            strURLPath = strURLPath.substring(0, strURLPath.lastIndexOf(47) + 1);
            bDebug = Integer.parseInt(getParameter("Debug", "0"));
            iShowBuySellPrice = Integer.parseInt(getParameter("ShowBuySell", "3"));
            if(iShowBuySellPrice > 5 || iShowBuySellPrice <= 0)
                iShowBuySellPrice = 3;
            m_strMarketName = getParameter("MarketName", "");
            m_bShowIndexAtBottom = Integer.parseInt(getParameter("ShowIndexAtBottom", "1"));
            strLanguageName = getParameter("Language", "zh");
            m_iPrecision = Integer.parseInt(getParameter("Precision", "0"));
            m_iPrecisionIndex = Integer.parseInt(getParameter("IndexPrecision", "2"));
            m_bShowIndexKLine = Integer.parseInt(getParameter("ShowIndexKLine", "0"));
        }
        try
        {
            m_resourceBundle = ResourceBundle.getBundle("rc/string", new Locale(strLanguageName, ""));
        }
        catch(Exception e)
        {
            System.out.println("Language resource loaded failed !");
            e.printStackTrace();
        }
        m_rcMain = null;
        (new HttpThread(0, this)).start();
        sendThread = new SendThread(this);
        sendThread.start();
        receiveThread = new ReceiveThread(this);
        receiveThread.start();
        httpThread = new HttpThread(1, this);
        httpThread.start();
        String strColorStyle = getParameter("ColorStyle", "0");
        rhColor = new RHColor(Integer.parseInt(strColorStyle));
        setBackground(rhColor.clBackGround);
        addComponentListener(new ComponentAdapter() {

            public void componentResized(ComponentEvent e)
            {
                this_componentResized(e);
            }

        });
        addKeyListener(new KeyAdapter() {

            public void keyPressed(KeyEvent e)
            {
                int iKey = e.getKeyCode();
                if(iKey != 33 && iKey != 34)
                    this_keyPressed(e);
            }

            public void keyReleased(KeyEvent e)
            {
                int iKey = e.getKeyCode();
                if(iKey == 33 || iKey == 34)
                    this_keyPressed(e);
            }

        });
        addMouseListener(new MouseAdapter() {

            public void mousePressed(MouseEvent e)
            {
                if(e.getModifiers() != 4 && e.getClickCount() == 1)
                    this_mouseLeftPressed(e);
            }

            public void mouseReleased(MouseEvent e)
            {
                if(e.getModifiers() == 4)
                    this_mouseRightReleased(e);
            }

            public void mouseClicked(MouseEvent e)
            {
                if(e.getModifiers() != 4 && e.getClickCount() > 1)
                    this_mouseLeftDblClicked(e);
            }

        });
        addMouseMotionListener(new MouseMotionAdapter() {

            public void mouseMoved(MouseEvent e)
            {
                this_mouseMoved(e);
            }

            public void mouseDragged(MouseEvent e)
            {
                if(e.getModifiers() != 4)
                    this_mouseDragged(e);
            }

        });
        addFocusListener(this);
        this_componentResized(null);
        bottomGraph = new Page_Bottom(getGraphics(), m_rcBottom, this);
        requestFocus();
        add(popupMenu);
        popupMenu.addActionListener(mainGraph);
        strCurrentCode = getParameter("CurrentCode", "");
        if(strCurrentCode.length() == 0)
        {
            UserCommand("60");
        } else
        {
            String strPage = getParameter("CurrentPage", "MinLinePage");
            if(strPage.equalsIgnoreCase("MinLine"))
                showPageMinLine();
            else
            if(strPage.equalsIgnoreCase("KLine"))
            {
                showPageMinLine();
                try
                {
                    Thread.sleep(1000L);
                }
                catch(InterruptedException interruptedexception) { }
                showPageKLine();
            } else
            {
                UserCommand("60");
            }
        }
    }

    public String getAppletInfo()
    {
        return "Applet Information 金網安泰";
    }

    public String[][] getParameterInfo()
    {
        return null;
    }

    public Frame getParentFrame(Component c)
    {
        Frame mainFrame = null;
        Container dad;
        for(dad = c.getParent(); !(dad instanceof Frame) && dad != null; dad = dad.getParent());
        if(dad instanceof Frame)
            mainFrame = (Frame)dad;
        return mainFrame;
    }

    void this_keyPressed(KeyEvent e)
    {
        if(bInputDlgShow)
            return;
        char ch = e.getKeyChar();
        if(Character.isLetterOrDigit(ch))
        {
            Frame f = getParentFrame(this);
            Rectangle rc = getBounds();
            Point p = getLocationOnScreen();
            int x = (p.x + rc.width) - 125;
            int y = (p.y + rc.height) - 160;
            InputDialog dlg = new InputDialog(f, ch, this);
            dlg.setBounds(x, y, 125, 160);
            bInputDlgShow = true;
            dlg.show();
            bInputDlgShow = false;
            String str = dlg.strCmd;
            if(str == null || str.length() == 0)
                return;
            switch(str.charAt(0))
            {
            case 65: // 'A'
                UserCommand(str.substring(1));
                break;

            case 84: // 'T'
                m_strIndicator = str.substring(1);
                ((Page_KLine)mainGraph).draw_KLine.CreateIndicator();
                repaint();
                break;

            case 67: // 'C'
                rhColor = new RHColor(str.charAt(1) - 48);
                setBackground(rhColor.clBackGround);
                break;

            case 80: // 'P'
                QueryStock(str.substring(1));
                break;
            }
            repaint();
            return;
        }
        boolean bNeedRepaint = true;
        int iKey = e.getKeyCode();
        switch(iKey)
        {
        case 27: // '\033'
            if(mainGraph != null)
            {
                bNeedRepaint = mainGraph.KeyPressed(e);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲日本一区二区| 91精品国产全国免费观看| 久久精品国产99国产精品| 亚洲精品一二三四区| 欧美国产欧美综合| 欧美国产日韩一二三区| 国产精品免费久久| 亚洲国产高清aⅴ视频| 久久久亚洲精品石原莉奈| 欧美成人官网二区| 久久久99精品久久| 国产精品色噜噜| 一二三区精品福利视频| 亚洲国产精品久久艾草纯爱| 日韩激情av在线| 久久91精品久久久久久秒播| 国产一区二区免费在线| 国产伦精一区二区三区| 成人黄色网址在线观看| 成人app下载| 欧洲一区二区三区在线| 欧美日韩aaa| 久久在线观看免费| 中文字幕一区二区三区不卡| 中文字幕在线视频一区| 91视频在线看| 欧美一级在线观看| 国产欧美日韩精品一区| 亚洲桃色在线一区| 亚洲成人在线观看视频| 九九热在线视频观看这里只有精品| 久久99九九99精品| 盗摄精品av一区二区三区| 91成人在线精品| 日韩欧美国产一区二区三区| √…a在线天堂一区| 亚洲一区二区3| 国产麻豆视频精品| 色综合色狠狠天天综合色| 精品久久久网站| 亚洲男人天堂av| 国内久久婷婷综合| 欧美日韩一区国产| 国产三级精品视频| 午夜精品一区在线观看| 成人午夜大片免费观看| 欧美一级二级三级蜜桃| 中文字幕亚洲精品在线观看| 狠狠色综合日日| 欧美性猛交xxxx乱大交退制版| 久久精品视频网| 丝袜美腿高跟呻吟高潮一区| 成人av在线影院| 精品av久久707| 亚洲国产中文字幕在线视频综合 | 日韩av一区二区三区| 丁香六月综合激情| 精品成人一区二区| 午夜精品久久久久久久久久久 | 日韩一区二区高清| 依依成人综合视频| 国产成人在线视频免费播放| 制服丝袜激情欧洲亚洲| 亚洲伊人伊色伊影伊综合网| 国产成人精品一区二区三区四区 | 亚洲成人黄色影院| 99久久久久久99| 欧美国产1区2区| 国产麻豆91精品| 91精品国产一区二区人妖| 亚洲免费观看高清| 99精品视频在线播放观看| 国产欧美日韩在线视频| 国产精品888| 精品三级av在线| 美女一区二区三区| 91精品欧美久久久久久动漫| 婷婷丁香久久五月婷婷| 欧美日韩国产高清一区| 亚洲国产精品嫩草影院| 欧美人动与zoxxxx乱| 亚洲1区2区3区4区| 在线播放日韩导航| 美脚の诱脚舐め脚责91| 337p日本欧洲亚洲大胆精品| 国产米奇在线777精品观看| 久久九九久久九九| 不卡电影免费在线播放一区| 国产精品国产三级国产普通话三级 | 一区二区在线看| 在线精品视频小说1| 日韩影院在线观看| 精品国一区二区三区| 国产成人免费视| 亚洲乱码日产精品bd| 欧美日韩在线观看一区二区 | 国产精品色一区二区三区| eeuss国产一区二区三区| 一区二区三区高清在线| 88在线观看91蜜桃国自产| 蜜桃av一区二区| 欧美国产一区视频在线观看| 在线一区二区三区四区五区| 免费日本视频一区| 欧美国产精品专区| 91麻豆高清视频| 一区二区视频在线| 51精品国自产在线| 国产91富婆露脸刺激对白| 亚洲欧洲另类国产综合| 7777精品伊人久久久大香线蕉| 国产综合久久久久久鬼色 | 亚洲电影激情视频网站| 精品国产一区二区三区不卡| 色综合天天视频在线观看 | 卡一卡二国产精品| 1区2区3区国产精品| 884aa四虎影成人精品一区| 豆国产96在线|亚洲| 午夜精品影院在线观看| 国产精品久线观看视频| 欧美一级艳片视频免费观看| 99久久精品99国产精品 | caoporen国产精品视频| 日韩在线播放一区二区| 亚洲欧美日韩国产手机在线| 欧美精品一区二区在线观看| 在线国产电影不卡| 国产成人精品一区二| 秋霞午夜鲁丝一区二区老狼| 亚洲女同一区二区| 国产日产亚洲精品系列| 91精品国产色综合久久久蜜香臀| 97aⅴ精品视频一二三区| 激情综合色丁香一区二区| 午夜一区二区三区视频| 亚洲女厕所小便bbb| 国产精品午夜免费| 精品久久国产97色综合| 91精品国产综合久久久久久久久久| 色女孩综合影院| 色综合天天综合网天天看片| 成人高清免费观看| 国产成人综合在线| 国产精品996| 国产裸体歌舞团一区二区| 黑人巨大精品欧美一区| 奇米精品一区二区三区在线观看一| 亚洲在线免费播放| 亚洲综合图片区| 亚洲在线中文字幕| 午夜视频一区二区| 日韩中文字幕区一区有砖一区| 亚洲不卡av一区二区三区| 亚洲成人在线免费| 日韩高清电影一区| 日本不卡高清视频| 蜜桃视频一区二区| 国产乱国产乱300精品| 国产成人免费视频网站高清观看视频| 麻豆精品蜜桃视频网站| 国产在线精品不卡| 懂色av一区二区夜夜嗨| 99re这里都是精品| 色狠狠桃花综合| 欧美精品久久天天躁| 在线综合视频播放| 欧美变态tickle挠乳网站| 精品国产a毛片| 国产精品家庭影院| 亚洲国产一二三| 麻豆成人久久精品二区三区红 | 狠狠v欧美v日韩v亚洲ⅴ| 国产精品主播直播| 91在线porny国产在线看| 欧美在线免费播放| 精品国免费一区二区三区| 欧美激情综合网| 亚洲一二三区视频在线观看| 麻豆视频观看网址久久| 成人黄色一级视频| 在线成人小视频| 欧美国产日韩在线观看| 一区二区三区不卡在线观看| 日韩成人精品在线观看| 国产成人精品亚洲日本在线桃色| 99麻豆久久久国产精品免费 | 久久久久久电影| 一区二区三区欧美日韩| 麻豆成人91精品二区三区| 不卡电影一区二区三区| 日韩一区二区免费视频| 亚洲日本va午夜在线电影| 奇米亚洲午夜久久精品| 99麻豆久久久国产精品免费| 日韩网站在线看片你懂的| 亚洲女子a中天字幕| 国产资源在线一区| 欧美色涩在线第一页| 国产精品乱码人人做人人爱|