クラス BoxView
java.lang.ObjectSE
org.springframework.shell.component.view.control.AbstractControl
org.springframework.shell.component.view.control.AbstractView
org.springframework.shell.component.view.control.BoxView
- 既知の直属サブクラス
AppView、ButtonView、GridView、InputView、ListView、MenuBarView、MenuView、ProgressView、StatusBarView
BoxView は、空の背景とオプションの境界線とタイトルを備えた View です。すべての「ボックス化された」ビューは、サブクラス化またはラップすることによって、これを基本実装として使用できます。コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected voiddrawBackground(Screen screen) 背景の内部描画メソッド。protected voiddrawInternal(Screen screen) 場合によっては、ボックス上部の境界でこのビューとタイトルの周囲にボックスを描画します。protected StringSEprotected Rectangleこのビューの内側の長方形を取得します。boolean境界線が表示されているかどうかを返します。voidsetBackgroundColor(int backgroundColor) 背景色を設定します。setBorderPadding(int paddingTop, int paddingBottom, int paddingLeft, int paddingRight) このビューのパディングを設定します。voidsetFocusedTitleColor(int focusedTitleColor) フォーカスされたタイトルの色を設定します。voidsetFocusedTitleStyle(int focusedTitleStyle) フォーカスされたタイトルのスタイルを設定します。voidsetRect(int x, int y, int width, int height) このControlが動作する範囲を設定します。voidsetShowBorder(boolean showBorder) 境界線を表示するかどうかを定義します。voidタイトルを設定します。voidsetTitleAlign(HorizontalAlign titleAlign) タイトルの配置を設定します。voidsetTitleColor(int titleColor) タイトルの色を設定します。voidsetTitleStyle(int titleStyle) タイトルのスタイルを設定します。クラス org.springframework.shell.component.view.control.AbstractView から継承されたメソッド
destroy, dispatch, dispatchKeyRunCommand, dispatchMouseRunCommand, dispatchRunnable, draw, focus, getDrawFunction, getEventLoop, getHotKeyBindings, getHotKeyHandler, getKeyBindings, getKeyHandler, getLayer, getMouseBindings, getMouseHandler, getViewCommands, getViewService, hasFocus, init, initInternal, onDestroy, registerHotKeyBinding, registerHotKeyBinding, registerHotKeyBinding, registerKeyBinding, registerKeyBinding, registerKeyBinding, registerMouseBinding, registerMouseBinding, registerMouseBinding, registerViewCommand, runViewCommand, setDrawFunction, setEventLoop, setLayer, setViewService, shortcutクラス org.springframework.shell.component.view.control.AbstractControl から継承されたメソッド
getRect, getThemeName, getThemeResolver, resolveThemeBackground, resolveThemeForeground, resolveThemeSpinner, resolveThemeStyle, setThemeName, setThemeResolverクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.shell.component.view.control.Control から継承されたメソッド
getRect, setThemeName, setThemeResolver
コンストラクターの詳細
BoxView
public BoxView()
メソッドの詳細
setRect
public void setRect(int x, int y, int width, int height) インターフェースからコピーされた説明:ControlこのControlが動作する範囲を設定します。- 次で指定:
- インターフェース
ControlのsetRect - オーバーライド:
- クラス
AbstractControlのsetRect - パラメーター:
x- 境界ボックスの x 座標y- 有界ボックスの y 座標width- 境界ボックスの幅height- 境界ボックスの高さ
setBorderPadding
public BoxView setBorderPadding(int paddingTop, int paddingBottom, int paddingLeft, int paddingRight) このビューのパディングを設定します。- パラメーター:
paddingTop- 上部のパディングpaddingBottom- 底部のパディングpaddingLeft- 左側のパディングpaddingRight- 適切なパディング- 戻り値:
- チェーン用 BoxView
setShowBorder
public void setShowBorder(boolean showBorder) 境界線を表示するかどうかを定義します。- パラメーター:
showBorder- 国境を示す旗
isShowBorder
public boolean isShowBorder()境界線が表示されているかどうかを返します。- 戻り値:
- 境界線が表示される場合は true
setTitle
タイトルを設定します。titleはトップレベルのボーダー境界内に表示され、ボーダー自体が表示されない場合は表示されません。- パラメーター:
title- 境界線のタイトル
setBackgroundColor
public void setBackgroundColor(int backgroundColor) 背景色を設定します。色がnullに設定されている場合は、背景をemptyに設定する必要があることを示し、レイヤーが不透明になる可能性があります。- パラメーター:
backgroundColor- 背景色
setTitleColor
public void setTitleColor(int titleColor) タイトルの色を設定します。- パラメーター:
titleColor- タイトルの色
setTitleStyle
public void setTitleStyle(int titleStyle) タイトルのスタイルを設定します。- パラメーター:
titleStyle- タイトルのスタイル
setFocusedTitleColor
public void setFocusedTitleColor(int focusedTitleColor) フォーカスされたタイトルの色を設定します。setTitleColor(int)から設定されたものが優先されます。- パラメーター:
focusedTitleColor- タイトルの色
setFocusedTitleStyle
public void setFocusedTitleStyle(int focusedTitleStyle) フォーカスされたタイトルのスタイルを設定します。setTitleStyle(int)から設定されたものが優先されます。- パラメーター:
focusedTitleStyle- タイトルのスタイル
setTitleAlign
タイトルの配置を設定します。- パラメーター:
titleAlign- タイトルを揃える
getBackgroundStyle
drawBackground
クラスからコピーされた説明:AbstractView背景の内部描画メソッド。- オーバーライド:
- クラス
AbstractViewのdrawBackground - パラメーター:
screen- スクリーン
drawInternal
場合によっては、ボックス上部の境界でこのビューとタイトルの周囲にボックスを描画します。定義されている場合は、draw functionも呼び出します。- 次で指定:
- クラス
AbstractViewのdrawInternal - パラメーター:
screen- スクリーン
getInnerRect
このビューの内側の長方形を取得します。- 戻り値:
- このビューの内側の長方形