Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
;ELC
;;; Compiled by leavens@CMC3251632-A on Thu Sep 04 23:07:36 2003
;;; from file d:/emacs/eieio/chart.el
;;; in Emacs version 21.2.1
;;; with bytecomp version 2.85.4.1
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
(< (aref emacs-version (1- (length emacs-version))) ?A)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19.29")))
(error "`chart.el' was compiled for Emacs 19.29 or later"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'eieio)
#@28 Keymap used in chart mode.
(defvar chart-map nil (#$ . 609))
(byte-code "\204 \301 \301\207" [chart-map make-sparse-keymap] 1)
#@63 Local variable containing the locally displayed chart object.
(defvar chart-local-object nil (#$ . 745))
(make-variable-buffer-local 'chart-local-object)
#@139 Faces used to colorize charts.
List is limited currently, which is ok since you really can't display
too much in text characters anyways.
(defvar chart-face-list nil (#$ . 906))
#@87 Colors to use when generating `chart-face-list'.
Colors will be the background color.
(defvar chart-face-color-list '("red" "green" "blue" "cyan" "yellow" "purple") (#$ . 1090))
#@102 If pixmaps are allowed, display these background pixmaps.
Useful if new Emacs is used on B&W display
(defvar chart-face-pixmap-list (byte-code "\300\301!\205\f \301 \205\f \302\207" [fboundp display-graphic-p ("dimple1" "scales" "dot" "cross_weave" "boxes" "dimple3")] 2) (#$ . 1275))
#@71 *Non-nil to use fancy pixmaps in the background of chart face colors.
(custom-declare-variable 'chart-face-use-pixmaps 'nil '(#$ . -1566) :group 'eieio :type 'boolean)
(byte-code "\306\307!\203 \307 \202\f \203k \204k \n\310\203j \311\312\313@\314
@R!!\310\315\316\217\203= \317\f@\"\210\202B \317\f\320\"\210\321\f\322\"\210\203[
\203[ \306\323!\203[ \310\324\325\217\210\f BA
A\202 +\310\207" [window-system chart-face-list chart-face-color-list chart-face-pixmap-list nf pl fboundp display-color-p nil make-face intern "chart-" "-" (byte-code "\300 \301V\207" [x-display-color-cells 4] 2) ((error t)) set-face-background "white" set-face-foreground "black" set-face-background-pixmap (byte-code "\302 @\"\207" [nf pl set-face-background-pixmap] 3) ((error (byte-code "\301\302@\"\207" [pl message "Cannot set background pixmap %s"] 3))) cl chart-face-use-pixmaps] 6)
#@48 Define a mode in Emacs for displaying a chart.
(defalias 'chart-mode #[nil "\303 \210\304!\210\305\306\307\310!\207" [chart-map major-mode mode-name kill-all-local-variables use-local-map chart-mode "CHART" run-hooks chart-mode-hook] 2 (#$ . 2469)])
#@96 Create a new buffer NAME in which the chart OBJ is displayed.
Returns the newly created buffer
(defalias 'chart-new-buffer #[(obj) "\212\302\303\304\305\306\"\"!q\210\307 \210p)\207" [obj chart-local-object get-buffer-create format "*%s*" eieio-oref title chart-mode] 6 (#$ . 2728)])
(eieio-defclass 'chart nil '((title :initarg :title :initform "Emacs Chart") (title-face :initarg :title-face :initform 'bold-italic) (x-axis :initarg :x-axis :initform nil) (x-margin :initarg :x-margin :initform 5) (x-width :initarg :x-width) (y-axis :initarg :y-axis :initform nil) (y-margin :initarg :y-margin :initform 5) (y-width :initarg :y-width) (key-label :initarg :key-label :initform "Key") (sequences :initarg :sequences :initform nil)) '("Superclass for all charts to be displayed in an emacs buffer"))
(eieio-defmethod 'initialize-instance '(:AFTER ((obj chart) &rest fields) #[(obj &rest fields) "\301\302\303 \304Z#\210\301\305\306 \307Z#\207" [obj eieio-oset x-width window-width 10 y-width window-height 12] 5 "Initialize the chart OBJ being created with FIELDS.
Make sure the width/height is correct."]))
(byte-code "\300\301\302\303\304$\210\300\305\306\307\310$\210\300\311\312\313\314$\210\300\315\302\316\317$\210\300\320\321\322\323$\207" [eieio-defclass chart-axis nil ((name :initarg :name :initform "Generic Axis") (loweredge :initarg :loweredge :initform t) (name-face :initarg :name-face :initform 'bold) (labels-face :initarg :lables-face :initform 'italic) (chart :initarg :chart :initform nil)) ("Superclass used for display of an axis.") chart-axis-range (chart-axis) ((bounds :initarg :bounds :initform '(0.0 . 50.0))) ("Class used to display an axis defined by a range of values") chart-axis-names (chart-axis) ((items :initarg :items :initform nil)) ("Class used to display an axis which represents different named items") chart-sequece ((data :initarg :data :initform nil) (name :initarg :name :initform "Data")) ("Class used for all data in different charts") chart-bar (chart) ((direction :initarg :direction :initform vertical)) ("Subclass for bar charts. (Vertical or horizontal)")] 5)
(eieio-defmethod 'chart-draw '(((c chart) &optional buff) #[(c &optional buff) "\212\203 q\210\302 \210\303\304\305\"c\210\306 !\210\307 !\210\310\311!\210\312\313!\210\314 !\210\310\315!)\207" [buff c erase-buffer make-string 100 10 chart-draw-axis chart-draw-title message "Rendering chart..." sit-for 0 chart-draw-data "Rendering chart...done"] 3 "Start drawing a chart object C in optional BUFF.
Erases current contents of buffer"]))
(eieio-defmethod 'chart-draw-title '(((c chart)) #[(c) "\301\302\303\"\304\305\211\306 \302\307\"&\207" [c chart-display-label eieio-oref title horizontal 0 window-width title-face] 9 "Draw a title upon the chart.
Argument C is the chart object."]))
(eieio-defmethod 'chart-size-in-dir '(((c chart) dir) #[(c dir) "\302=\203 \303 \304\"\207\303 \305\"\207" [dir c vertical eieio-oref y-width x-width] 3 "Return the physical size of chart C in direction DIR."]))
(eieio-defmethod 'chart-draw-axis '(((c chart)) #[(c) "\305\306\"\305\307\"\305\310\"\305\311\"\312\305\313\"\314\305\211\313\"\315\"?\205' \211
\\&\210\312\305\316\"\317\305\211\316\"\315\"?\205A
\211 \\&,\207" [c xlen ylen xmarg ymarg eieio-oref y-margin x-margin y-width x-width chart-axis-draw y-axis vertical loweredge x-axis horizontal] 8 "Draw axis into the current buffer defined by chart C."]))
(eieio-defmethod 'chart-axis-draw '(((a chart-axis) &optional dir margin zone start end) #[(a &optional dir margin zone start end) "\306
\203
\202 \307\\$\210\310\311
\312\"
\203#
\\\313\\\202. \314=\203- \315\202. \307\311
\316\"&\207" [dir margin zone start end a chart-draw-line 0 chart-display-label eieio-oref name 3 horizontal 1 name-face] 9 "Draw some axis for A in direction DIR at with MARGIN in boundry.
ZONE is a zone specification.
START and END represent the boundary."]))
(eieio-defmethod 'chart-translate-xpos '(((c chart) x) #[(c x) "\303\211\304\"\305\"\303\306\"\307\310
@Z!\310\303\311\"!\310 A @Z!\245_!\\)\207" [c range x eieio-oref x-axis bounds x-margin round float x-width] 7 "Translate in chart C the coordinate X into a screen column."]))
(eieio-defmethod 'chart-translate-ypos '(((c chart) y) #[(c y) "\303\211\304\"\305\"\303\306\"\303\307\"\310\311
@Z!\311\303\307\"!\311 A @Z!\245_!Z\\)\207" [c range y eieio-oref y-axis bounds x-margin y-width round float] 8 "Translate in chart C the coordinate Y into a screen row."]))
(eieio-defmethod 'chart-axis-draw '(((a chart-axis-range) &optional dir margin zone start end) #[(a &optional dir margin zone start end) "\306 \210\307\310\"@\307\310\"A\203 \202 \311\312
Z\211!\313\307\314\"\"\"\315\245\245#\312$#\311U\203; \316#
X\205\323 \317V\203P \320\321 \322\245\"\202c \323V\203_ \320\324 \325\245\"\202c \320\326 \"\"\327=\203\231 %\\\307\330\"\203|
G[\202} \316\\\211&\316W\203\211 \316&\331&\332\307\314\" \"\"\210)\202\264 \331\333\307\314\" \"%\\\307\330\"\203\260 \334\202\261 \316\\\"\210`$
c\210\335
G!\210\336$`\337\307\340\"$\210 #\\\211\202<