英特內軟體股份有限公司


jcx.servlet.common
Class stockServlet

jcx.servlet.Servlet
  |
  +--jcx.servlet.common.ImageServlet
        |
        +--jcx.servlet.common.EISServlet
              |
              +--jcx.servlet.common.stockServlet

public abstract class stockServlet
extends EISServlet

股票走勢圖,各類股票的資料可依此得到線圖,如 K-map, 針對股票分析程式可加以使用。


Fields inherited from class jcx.servlet.common.EISServlet
IS_BYTES_STRING, SHOW_TYPE, X_IS_LONG, X_VALUE, Y_IS_LONG
 
Fields inherited from class jcx.servlet.common.ImageServlet
GEN_FRAME, GEN_IMAGE
 
Fields inherited from class jcx.servlet.Servlet
files, req, resp
 
Constructor Summary
stockServlet()
           
 
Method Summary
 boolean checkData()
           資料檢查. 檢查是否有不合的資料 由stockServlet覆寫EISServlet的 checkData()功能
abstract  java.lang.Object getData()
           取得繪圖資料.
 boolean paint(java.awt.Graphics g)
           繪製股票圖 由stockServlet覆寫ImageServlet的 paint()功能
 
Methods inherited from class jcx.servlet.common.EISServlet
getBackColor, getFrontColor, getTitle, getXName, getYName, is_bytes_string, setBackColor, setEIS, setFrontColor, setOrderBy, setTitle, setXName, setYName
 
Methods inherited from class jcx.servlet.common.ImageServlet
getImageSize, run1, setOutputStream
 
Methods inherited from class jcx.servlet.Servlet
addCookie, checkClientTrusted, checkServerTrusted, decode, equals, fromEscapeCode, getAcceptedIssuers, getClientProperty, getCookies, getFileInputStream, getFormData, getHeader, getInputStream, getMemoryInputStream, getMethod, getOutputStream, getParameter, getPath, lzw_decompress, returnAuthenticateResponse, returnAuthenticateResponse, returnErrorResponse, returnNormalResponse, run, setHeader, ToHtml, ToSql, verify
 

Constructor Detail

stockServlet

public stockServlet()
Method Detail

checkData

public final boolean checkData()
	資料檢查.
	檢查是否有不合的資料
   由stockServlet覆寫EISServlet的
   checkData()功能
Overrides:
checkData in class EISServlet

getData

public abstract java.lang.Object getData()
	取得繪圖資料.
Overrides:
getData in class EISServlet
Returns:
String[][] 輸入一二維array,每一筆資料有5個元素, 依序是日期、最高價、最低價、開盤價、收盤價, 單位為元。 日期格式為民國年月日,ex:890713
	必須由繼承者覆寫

paint

public final boolean paint(java.awt.Graphics g)
   繪製股票圖
   由stockServlet覆寫ImageServlet的
   paint()功能
Overrides:
paint in class ImageServlet

英特內軟體股份有限公司