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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? acltextarea.java

?? JADE(JAVA Agent開發(fā)框架)是一個(gè)完全由JAVA語言開發(fā)的軟件,它簡化了多Agent系統(tǒng)的實(shí)現(xiàn)。
?? JAVA
?? 第 1 頁 / 共 5 頁
字號(hào):
/******************************************************************
 * JADE - Java Agent DEvelopment Framework is a framework to develop
 * multi-agent systems in compliance with the FIPA specifications.
 * Copyright (C) 2002 TILAB S.p.A.
 *
 * This file is donated by Acklin B.V. to the JADE project.
 *
 *
 * GNU Lesser General Public License
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation,
 * version 2.1 of the License.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA  02111-1307, USA.
 * ***************************************************************/
package jade.tools.gui;

import java.awt.*;
import java.awt.Component;
import java.awt.Toolkit;
import java.awt.datatransfer.*;
import java.awt.event.*;
import java.awt.event.*;
import java.awt.event.*;
import java.awt.event.ActionListener;
import java.awt.event.KeyListener;
import java.lang.*;
import java.lang.reflect.*;
import java.util.EventObject;
import java.util.Hashtable;
import java.util.StringTokenizer;
import javax.swing.*;
import javax.swing.*;
import javax.swing.JPopupMenu;
import javax.swing.KeyStroke;

import javax.swing.border.EtchedBorder;
import javax.swing.event.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.text.*;

import jade.lang.acl.ACLMessage;
import jade.tools.sl.SLFormatter;

/**
 *  jEdit's text area component. The original file is written by Slava Pestov
 *  and altered to fit ACL/SL
 *
 * @author     Slava Pestov
 * @created    June 8, 2002
 * @version    $Id: ACLTextArea.java 5581 2005-02-23 08:59:06Z caire $
 */
public class ACLTextArea extends JComponent {
  /**
   *  Creates a new JEditTextArea with the default settings.
   */
  public ACLTextArea() {
    // Enable the necessary events
    enableEvents(AWTEvent.KEY_EVENT_MASK);

    // Initialize some misc. stuff
    painter = new ACLTextAreaPainter(this);
    AutoScroll scroller = new AutoScroll();
    scrollTimer = new Timer(200, scroller);
    documentHandler = new DocumentHandler();
    listenerList = new EventListenerList();
    caretEvent = new MutableCaretEvent();
    lineSegment = new Segment();
    bracketLine = bracketPosition = -1;
    blink = true;
    caretTimer = new Timer(500, new CaretBlinker());
    caretTimer.setInitialDelay(500);
    caretTimer.start();

    // Initialize the GUI
    setBorder(new EtchedBorder(EtchedBorder.LOWERED));
    setLayout(new java.awt.BorderLayout());

    add(painter, BorderLayout.CENTER);

    add(vertical = new JScrollBar(JScrollBar.VERTICAL), BorderLayout.EAST);
    add(horizontal = new JScrollBar(JScrollBar.HORIZONTAL), BorderLayout.SOUTH);
//    vertical.setVisibleAmount(20);
//    horizontal.setVisibleAmount(50);
    // Add some event listeners
    vertical.addAdjustmentListener(new AdjustHandler());
    horizontal.addAdjustmentListener(new AdjustHandler());
    painter.addComponentListener(new ComponentHandler());
    painter.addMouseListener(new MouseHandler());
    painter.addMouseMotionListener(scroller);
    addFocusListener(new FocusHandler());

    // Load the defaults
    InputHandler DEFAULT_INPUT_HANDLER = new InputHandler();
    DEFAULT_INPUT_HANDLER.addDefaultKeyBindings();

    setInputHandler(DEFAULT_INPUT_HANDLER);
    setDocument(new ACLSyntaxDocument());
    editable = true;
    caretVisible = true;
    caretBlinks = true;
    electricScroll = 3;

    // We don't seem to get the initial focus event?
    focusedComponent = this;

    //set tokenMarker
    setTokenMarker(new ACLSLTokenMarker());
  }


  /**
   *  Returns if this component can be traversed by pressing the Tab key. This
   *  returns false.
   *
   * @return    The ManagingFocus value
   */
  public final boolean isManagingFocus() {
    return true;
  }


  /**
   *  Returns the object responsible for painting this text area.
   *
   * @return    The Painter value
   */
  public final ACLTextAreaPainter getPainter() {
    return painter;
  }


  /**
   *  Returns the input handler.
   *
   * @return    The InputHandler value
   */
  public final InputHandler getInputHandler() {
    return inputHandler;
  }


  /**
   *  Returns true if the caret is blinking, false otherwise.
   *
   * @return    The CaretBlinkEnabled value
   */
  public final boolean isCaretBlinkEnabled() {
    return caretBlinks;
  }


  /**
   *  Returns true if the caret is visible, false otherwise.
   *
   * @return    The CaretVisible value
   */
  public final boolean isCaretVisible() {
    return (!caretBlinks || blink) && caretVisible;
  }


  /**
   *  Returns the number of lines from the top and button of the text area
   *  that are always visible.
   *
   * @return    The ElectricScroll value
   */
  public final int getElectricScroll() {
    return electricScroll;
  }


  /**
   *  Returns the line displayed at the text area's origin.
   *
   * @return    The FirstLine value
   */
  public final int getFirstLine() {
    return firstLine;
  }


  /**
   *  Returns the number of lines visible in this text area.
   *
   * @return    The VisibleLines value
   */
  public final int getVisibleLines() {
    return visibleLines;
  }


  /**
   *  Returns the horizontal offset of drawn lines.
   *
   * @return    The HorizontalOffset value
   */
  public final int getHorizontalOffset() {
    return horizontalOffset;
  }


  /**
   *  Returns the document this text area is editing.
   *
   * @return    The Document value
   */
  public final ACLSyntaxDocument getDocument() {
    return document;
  }


  /**
   *  Returns the document's token marker. Equivalent to calling <code>getDocument().getTokenMarker()</code>
   *  .
   *
   * @return    The TokenMarker value
   */
  public final ACLSLTokenMarker getTokenMarker() {
    return document.getTokenMarker();
  }


  /**
   *  Returns the length of the document. Equivalent to calling <code>getDocument().getLength()</code>
   *  .
   *
   * @return    The DocumentLength value
   */
  public final int getDocumentLength() {
    return document.getLength();
  }


  /**
   *  Returns the number of lines in the document.
   *
   * @return    The LineCount value
   */
  public final int getLineCount() {
    return document.getDefaultRootElement().getElementCount();
  }


  /**
   *  Returns the line containing the specified offset.
   *
   * @param  offset  The offset
   * @return         The LineOfOffset value
   */
  public final int getLineOfOffset(int offset) {
    return document.getDefaultRootElement().getElementIndex(offset);
  }


  /**
   *  Returns the specified substring of the document.
   *
   * @param  start  The start offset
   * @param  len    The length of the substring
   * @return        The substring, or null if the offsets are invalid
   */
  public final String getText(int start, int len) {
    try {
      return document.getText(start, len);
    }
    catch (BadLocationException bl) {
      return null;
    }
  }


  /**
   *  Copies the specified substring of the document into a segment. If the
   *  offsets are invalid, the segment will contain a null string.
   *
   * @param  start    The start offset
   * @param  len      The length of the substring
   * @param  segment  The segment
   */
  public final void getText(int start, int len, Segment segment) {
    try {
      document.getText(start, len, segment);
    }
    catch (BadLocationException bl) {
      segment.offset = segment.count = 0;
    }
  }


  /**
   *  Returns the text on the specified line.
   *
   * @param  lineIndex  The line
   * @return            The text, or null if the line is invalid
   */
  public final String getLineText(int lineIndex) {
    int start = getLineStartOffset(lineIndex);
    return getText(start, getLineEndOffset(lineIndex) - start - 1);
  }


  /**
   *  Copies the text on the specified line into a segment. If the line is
   *  invalid, the segment will contain a null string.
   *
   * @param  lineIndex  The line
   * @param  segment    Description of Parameter
   */
  public final void getLineText(int lineIndex, Segment segment) {
    int start = getLineStartOffset(lineIndex);
    getText(start, getLineEndOffset(lineIndex) - start - 1, segment);
  }


  /**
   *  Returns the selection start offset.
   *
   * @return    The SelectionStart value
   */
  public final int getSelectionStart() {
    return selectionStart;
  }


  /**
   *  Returns the selection start line.
   *
   * @return    The SelectionStartLine value
   */
  public final int getSelectionStartLine() {
    return selectionStartLine;
  }


  /**
   *  Returns the selection end offset.
   *
   * @return    The SelectionEnd value
   */
  public final int getSelectionEnd() {
    return selectionEnd;
  }


  /**
   *  Returns the selection end line.
   *
   * @return    The SelectionEndLine value
   */
  public final int getSelectionEndLine() {
    return selectionEndLine;
  }


  /**
   *  Returns the caret position. This will either be the selection start or
   *  the selection end, depending on which direction the selection was made
   *  in.
   *
   * @return    The CaretPosition value
   */
  public final int getCaretPosition() {
    return (biasLeft ? selectionStart : selectionEnd);
  }


  /**
   *  Returns the caret line.
   *
   * @return    The CaretLine value
   */
  public final int getCaretLine() {
    return (biasLeft ? selectionStartLine : selectionEndLine);
  }


  /**
   *  Returns the mark position. This will be the opposite selection bound to
   *  the caret position.
   *
   * @return    The MarkPosition value
   * @see       #getCaretPosition()
   */
  public final int getMarkPosition() {
    return (biasLeft ? selectionEnd : selectionStart);
  }


  /**
   *  Returns the mark line.
   *
   * @return    The MarkLine value
   */
  public final int getMarkLine() {
    return (biasLeft ? selectionEndLine : selectionStartLine);
  }


  /**
   *  Returns the selected text, or null if no selection is active.
   *
   * @return    The SelectedText value
   */
  public final String getSelectedText() {
    if (selectionStart == selectionEnd) {
      return null;
    }
    return getText(selectionStart,
      selectionEnd - selectionStart);
  }


  /**
   *  Returns true if this text area is editable, false otherwise.
   *
   * @return    The Editable value
   */
  public final boolean isEditable() {
    return editable;
  }


  /**
   *  Returns the right click popup menu.
   *
   * @return    The RightClickPopup value
   */
  public final JPopupMenu getRightClickPopup() {
    return popup;
  }


  /**
   *  Returns the `magic' caret position. This can be used to preserve the
   *  column position when moving up and down lines.
   *
   * @return    The MagicCaretPosition value
   */
  public final int getMagicCaretPosition() {
    return magicCaret;
  }


  /**
   *  Returns true if overwrite mode is enabled, false otherwise.
   *
   * @return    The OverwriteEnabled value
   */
  public final boolean isOverwriteEnabled() {
    return overwrite;
  }


  /**
   *  Returns the position of the highlighted bracket (the bracket matching
   *  the one before the caret)
   *
   * @return    The BracketPosition value
   */
  public final int getBracketPosition() {
    return bracketPosition;
  }


  /**
   *  Returns the line of the highlighted bracket (the bracket matching the
   *  one before the caret)
   *
   * @return    The BracketLine value
   */
  public final int getBracketLine() {
    return bracketLine;
  }


  /**
   *  Sets the number of lines from the top and bottom of the text area that
   *  are always visible
   *
   * @param  electricScroll  The number of lines always visible from the top
   *      or bottom
   */
  public final void setElectricScroll(int electricScroll) {
    this.electricScroll = electricScroll;
  }


  /**
   *  Sets the document's token marker. Equivalent to caling <code>getDocument().setTokenMarker()</code>
   *  .
   *
   * @param  tokenMarker  The token marker

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产乱码| 一区二区三区在线视频播放| 日本vs亚洲vs韩国一区三区二区| 成人永久免费视频| 国产精品视频看| 成人深夜福利app| 综合久久给合久久狠狠狠97色 | 蜜臀久久99精品久久久画质超高清 | 精品国精品自拍自在线| 蜜臀久久99精品久久久久久9| 欧美婷婷六月丁香综合色| 一区二区三区电影在线播| 在线观看日韩精品| 日韩成人av影视| 久久午夜色播影院免费高清 | 蜜臀av性久久久久av蜜臀妖精| 欧美男男青年gay1069videost| 日韩精彩视频在线观看| 欧美变态tickling挠脚心| 美女一区二区在线观看| 欧美国产成人精品| 欧美影片第一页| 久久不见久久见免费视频1| 国产亚洲精品7777| 色天使色偷偷av一区二区| 捆绑紧缚一区二区三区视频 | 久久精品人人做人人综合| 色综合亚洲欧洲| 激情综合色丁香一区二区| 国产精品毛片久久久久久| 88在线观看91蜜桃国自产| 粉嫩av亚洲一区二区图片| 亚洲高清三级视频| 中文字幕 久热精品 视频在线| 欧美久久久久久久久中文字幕| 国产福利一区二区| 日韩精品一二三区| 日韩毛片视频在线看| 精品国产99国产精品| 欧美日韩国产免费一区二区 | 欧美色图激情小说| 白白色 亚洲乱淫| 国产一区二区三区久久悠悠色av| 一级日本不卡的影视| 欧美国产1区2区| 久久综合久久综合久久| 欧美精品久久天天躁| 国产不卡在线视频| 国产一区二区三区四区在线观看| 亚洲chinese男男1069| 一区二区久久久久久| 亚洲精品美国一| 亚洲欧美国产毛片在线| 亚洲欧美韩国综合色| 亚洲精品国产第一综合99久久 | 欧美日韩国产欧美日美国产精品| 色婷婷激情综合| 欧美乱妇15p| 91精品国产入口在线| 精品久久99ma| 国产精品国产三级国产普通话三级| 中文成人av在线| 午夜精品久久久久久久久| 免费美女久久99| 99久久亚洲一区二区三区青草| 色婷婷综合激情| 欧美videofree性高清杂交| 欧美国产乱子伦| 亚洲成人综合在线| 国产成人欧美日韩在线电影| 91麻豆精品在线观看| 91精品一区二区三区久久久久久 | 国产呦精品一区二区三区网站| 成人va在线观看| 日韩免费高清av| 亚洲一区二区三区影院| 国产在线精品免费| 欧美精品乱码久久久久久按摩| 中文字幕欧美日本乱码一线二线| 亚洲aⅴ怡春院| 国产精品一区二区你懂的| 色噜噜狠狠成人中文综合| 精品美女在线播放| 亚洲bdsm女犯bdsm网站| 欧美曰成人黄网| 综合电影一区二区三区| 波多野结衣视频一区| 久久这里只精品最新地址| 欧美aaa在线| 337p亚洲精品色噜噜| 亚洲影院理伦片| 成人激情免费网站| 国产日韩精品一区二区三区在线| 男人的j进女人的j一区| 色婷婷久久一区二区三区麻豆| 欧美美女激情18p| 一区二区不卡在线播放| 丁香五精品蜜臀久久久久99网站| 欧美精品在线观看一区二区| 亚洲精品中文在线影院| 91在线一区二区| 国产精品二区一区二区aⅴ污介绍| 国产精品综合视频| 欧美成人精品二区三区99精品| 午夜精品成人在线视频| 欧美午夜电影在线播放| 亚洲v中文字幕| 欧美精品三级在线观看| 日韩av电影免费观看高清完整版| 欧美色电影在线| 石原莉奈在线亚洲三区| 日韩精品一区二区在线观看| 九九热在线视频观看这里只有精品| 欧美老肥妇做.爰bbww| 另类综合日韩欧美亚洲| 久久久国产精品麻豆| 91免费视频网址| 午夜一区二区三区视频| 制服丝袜亚洲精品中文字幕| 精品一区二区在线视频| 国产精品久久精品日日| 一本色道久久综合精品竹菊| 日韩国产一二三区| 久久精品欧美一区二区三区不卡 | 成人丝袜18视频在线观看| 亚洲成人激情综合网| 国产欧美日韩激情| 欧美成人精品福利| 欧美日韩中文一区| 一本一本久久a久久精品综合麻豆| 日本不卡中文字幕| 一区二区三区资源| 久久免费视频色| 欧美大片在线观看一区二区| 欧美日韩午夜精品| 99精品视频在线观看| 成人一级视频在线观看| 国精品**一区二区三区在线蜜桃| 蜜臀va亚洲va欧美va天堂| 欧美日韩欧美一区二区| 成人黄色777网| 国产真实乱子伦精品视频| 日韩影院精彩在线| 亚洲一二三四在线| 亚洲丝袜另类动漫二区| 国产精品久久99| 国产精品不卡在线| 亚洲婷婷国产精品电影人久久| 国产精品视频你懂的| 18涩涩午夜精品.www| 亚洲色图第一区| 一个色妞综合视频在线观看| 亚洲成人先锋电影| 毛片av一区二区| 国产精品一卡二卡在线观看| caoporn国产一区二区| 色美美综合视频| 欧美一区二区三区视频在线| 欧美精品一区二区久久久| 国产日产精品1区| 亚洲高清视频的网址| 韩国理伦片一区二区三区在线播放 | 欧美日韩在线亚洲一区蜜芽| 91精品福利在线一区二区三区| 久久久综合精品| 亚洲精品视频免费看| 男男视频亚洲欧美| 国模冰冰炮一区二区| 欧美日韩日本视频| 中文字幕高清不卡| 亚洲v精品v日韩v欧美v专区| 国产成人午夜视频| 欧美视频一区二区在线观看| 久久中文娱乐网| 亚洲一区在线看| 国产ts人妖一区二区| 欧美一级高清片| 亚洲电影在线免费观看| 国产精品一区免费视频| 91精品国产色综合久久ai换脸| 国产精品美女久久久久av爽李琼| 日本视频一区二区三区| 欧美日韩大陆一区二区| 欧美极品少妇xxxxⅹ高跟鞋| 日本午夜精品视频在线观看| 成人精品国产一区二区4080| 日韩一级片在线观看| 三级欧美在线一区| 91成人免费在线视频| 亚洲欧美色一区| 91捆绑美女网站| 玉足女爽爽91| 欧美日韩亚洲不卡| 香蕉av福利精品导航| 欧美日韩国产一级| 五月激情六月综合| 欧美一区二区三区在线看| 亚洲18女电影在线观看| 91精品国产综合久久香蕉的特点| 亚洲bt欧美bt精品|