Awt-overview

提供:Dev Guides
移動先:案内検索

AWT-概要

グラフィカル・ユーザー・インターフェース

グラフィカルユーザーインターフェイス(GUI)は、いくつかのグラフィカルコンポーネントを介したユーザーインタラクションを提供します。 たとえば、基盤となるオペレーティングシステムは、ウィンドウ、フレーム、パネル、ボタン、テキストフィールド、テキスト領域、リストボックス、コンボボックス、ラベル、チェックボックスなどを介してGUIも提供します。 これらはすべてコンポーネントと呼ばれます。 これらのコンポーネントを使用して、アプリケーションの対話型ユーザーインターフェイスを作成できます。

GUIは、発生したイベントへの応答としてエンドユーザーに結果を提供します。GUIは完全にベースのイベントです。 たとえば、ボタンをクリックする、ウィンドウを閉じる、ウィンドウを開く、テキストエリアに何かを入力するなど。 これらのアクティビティは、events.GUIと呼ばれ、エンドユーザーがアプリケーションを簡単に使用できるようにします。 また、それらは興味深いものになります。

基本的な用語

Term Description
Component Component is an object having a graphical representation that can be displayed on the screen and that can interact with the user. For examples buttons, checkboxes, list and scrollbars of a graphical user interface.
Container Container object is a component that can contain other components.Components added to a container are tracked in a list. The order of the list will define the components' front-to-back stacking order within the container. If no index is specified when adding a component to a container, it will be added to the end of the list.
Panel Panel provides space in which an application can attach any other components, including other panels.
Window Window is a rectangular area which is displayed on the screen. In different window we can execute different program and display different data. Window provide us with multitasking environment. A window must have either a frame, dialog, or another window defined as its owner when it’s constructed.
Frame A Frame is a top-level window with a title and a border. The size of the frame includes any area designated for the border. Frame encapsulates window. It and has a title bar, menu bar, borders, and resizing corners.
Canvas Canvas component represents a blank rectangular area of the screen onto which the application can draw. Application can also trap input events from the use from that blank area of Canvas component.

GUIベースのアプリケーションの例

以下に、GUIベースのアプリケーションの例をいくつか示します。

  • 自動預け払い機(ATM)
  • 航空券システム
  • 鉄道駅の情報キオスク
  • モバイルアプリケーション
  • ナビゲーションシステム

CUIに対するGUIの利点

  • GUIは対話するグラフィカルアイコンを提供し、CUI(文字ユーザーインターフェイス)はシンプルなテキストベースのインターフェイスを提供します。
  • 一方、GUIはアプリケーションをより面白く興味深いものにしますが、CUIはそうではありません。
  • GUIは、タスクのコマンドを入力する必要があるたびに、CUIでクリックおよび実行環境を提供します。
  • 新しいユーザーは視覚的なインジケータによってグラフィカルユーザーインターフェイスと簡単に対話できますが、キャラクターユーザーインターフェイスでは困難です。
  • GUIはファイルシステムとオペレーティングシステムの多くの制御を提供しますが、CUIでは覚えにくいコマンドを使用する必要があります。
  • GUIのWindowsコンセプトにより、ユーザーは一度に複数のアプリケーションを表示、操作、および制御できますが、CUIユーザーは一度に1つのタスクを制御できます。
  • GUIはマルチタスク環境を提供するため、CUIも同様ですが、CUIはGUIと同じような使いやすさを提供しません。
  • GUIを使用すると、オペレーティングシステムの制御と操作が簡単になり、コマンドユーザーインターフェイスが非常に遅くなります。 GUIは簡単にカスタマイズできます。