|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.carabiner.inkpod.pi.shape.handle.AbstractHandle<S>
public abstract class AbstractHandle<S extends PObjectShape>
| フィールドの概要 | |
|---|---|
protected static Handle[] |
EMPTY_CHILDREN
|
| コンストラクタの概要 | |
|---|---|
AbstractHandle(AbstractHandle parent,
S shape)
|
|
AbstractHandle(S shape)
|
|
| メソッドの概要 | |
|---|---|
void |
addHandleDragListener(HandleDragListener listener)
|
void |
addTextEditorListener(TextEditorListener listener)
|
void |
cancelDrag()
このハンドルのドラッグがキャンセルされたことを通知する。 |
boolean |
click(java.awt.geom.Point2D p,
java.awt.event.MouseEvent mouseEvent,
EditorViewConfiguration viewConfiguration)
このハンドルがクリックされたことを通知する。 |
protected AbstractTextEditor |
createTextEditor(S shape)
|
protected boolean |
delegate(AbstractHandle<S> targetHandle)
|
Handle |
drag(java.awt.geom.Point2D point,
java.awt.event.MouseEvent event,
EditorViewConfiguration configuration)
このハンドルがドラッグ中に呼び出される。 |
void |
endDrag(java.awt.event.MouseEvent event)
このハンドルのドラッグが終了したときに呼び出される。 |
protected void |
filter(java.awt.geom.Point2D point,
java.awt.event.MouseEvent event,
EditorViewConfiguration configuration)
|
protected void |
fireDragCanceledEvent(Handle source)
|
protected void |
fireDragEndedEvent(Handle source)
|
protected void |
fireDragRequestedEvent(Handle source)
|
protected void |
fireDragStartedEvent(Handle source)
|
protected void |
fireTextEditorEvent(TextEditorEvent event)
|
Handle[] |
getChildHandles()
このハンドルの子のハンドルを返す。 |
java.awt.Cursor |
getCursor()
|
protected java.awt.geom.Point2D |
getDragStartPoint()
|
protected java.awt.geom.Point2D |
getDragStartPointDelta(java.awt.geom.Point2D startPoint,
java.awt.geom.Point2D location)
|
java.awt.geom.Point2D |
getLastClickedPoint()
最後にクリックされた座標を返す。 |
java.awt.geom.Point2D |
getLocation()
このハンドルの位置を返す。 |
PMapObject |
getTargetObject()
|
S |
getTargetShape()
このハンドルの操作対象のシェイプを返す。 |
TextEditor |
getTextEditor()
このハンドルと結びついたテキストエディタを返す。 |
boolean |
isDragging()
このハンドルがドラッグ中であるかを返す。 |
boolean |
isFocused()
|
boolean |
isSelected()
|
boolean |
isSingleSelected()
|
boolean |
keyPressed(java.awt.event.KeyEvent ke,
EditorViewConfiguration screenConfigration)
キーが押されたことを通知する。 |
boolean |
keyReleased(java.awt.event.KeyEvent ke,
EditorViewConfiguration screenConfigration)
キーが離されたことを通知する。 |
boolean |
keyTyped(java.awt.event.KeyEvent ke,
EditorViewConfiguration screenConfigration)
キーがタイプされたことを通知する。 |
boolean |
readyDrag(java.awt.geom.Point2D startPoint,
java.awt.event.MouseEvent mouseEvent,
EditorViewConfiguration configuration)
このハンドルのドラッグの準備をしていることを通知する。 |
void |
removeHandleDragListener(HandleDragListener listener)
|
void |
removeTextEditorListener(TextEditorListener listener)
|
protected AbstractHandle |
requestDelegate(double x,
double y,
EditorViewConfiguration configuration)
|
void |
setLocation(java.awt.geom.Point2D newLocation,
java.awt.event.MouseEvent event,
EditorViewConfiguration configuration)
このハンドルの位置を変更する |
boolean |
startDrag(java.awt.geom.Point2D cursorLocation,
java.awt.event.MouseEvent mouseEvent,
EditorViewConfiguration configuration)
このハンドルのドラッグを開始したことを通知する。 |
void |
updateFocus(boolean focused)
|
void |
updateSelection(boolean selected,
boolean singleSelected)
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース jp.carabiner.inkpod.pi.shape.handle.Handle から継承されたメソッド |
|---|
drawHandle, getLocation, getName, isBodyHandle, isConstantVisible, isDraggable, isFocusable, isHit, isTopMost, isVisible, setLocation |
| フィールドの詳細 |
|---|
protected static final Handle[] EMPTY_CHILDREN
| コンストラクタの詳細 |
|---|
public AbstractHandle(S shape)
public AbstractHandle(AbstractHandle parent,
S shape)
| メソッドの詳細 |
|---|
public S getTargetShape()
Handle の記述:
Handle 内の getTargetShapepublic TextEditor getTextEditor()
Handle の記述:
Handle 内の getTextEditorprotected AbstractTextEditor createTextEditor(S shape)
public void addHandleDragListener(HandleDragListener listener)
Handle 内の addHandleDragListenerpublic void removeHandleDragListener(HandleDragListener listener)
Handle 内の removeHandleDragListenerpublic void addTextEditorListener(TextEditorListener listener)
Handle 内の addTextEditorListenerpublic void removeTextEditorListener(TextEditorListener listener)
Handle 内の removeTextEditorListenerprotected void fireDragRequestedEvent(Handle source)
protected void fireDragStartedEvent(Handle source)
protected void fireDragCanceledEvent(Handle source)
protected void fireDragEndedEvent(Handle source)
protected void fireTextEditorEvent(TextEditorEvent event)
public PMapObject getTargetObject()
Handle 内の getTargetObjectpublic Handle[] getChildHandles()
Handle の記述:
Handle 内の getChildHandles
public boolean click(java.awt.geom.Point2D p,
java.awt.event.MouseEvent mouseEvent,
EditorViewConfiguration viewConfiguration)
Handle の記述:
Handle 内の clickp - クリックされた座標(マップ上の座標系)mouseEvent - マウスイベントviewConfiguration - ビューの状態
public boolean keyPressed(java.awt.event.KeyEvent ke,
EditorViewConfiguration screenConfigration)
Handle の記述:
Handle 内の keyPressedke - キーイベントscreenConfigration - ビューの状態
public boolean keyReleased(java.awt.event.KeyEvent ke,
EditorViewConfiguration screenConfigration)
Handle の記述:
Handle 内の keyReleasedke - キーイベントscreenConfigration - ビューの状態
public boolean keyTyped(java.awt.event.KeyEvent ke,
EditorViewConfiguration screenConfigration)
Handle の記述:
Handle 内の keyTypedke - キーイベントscreenConfigration - ビューの状態
public java.awt.geom.Point2D getLastClickedPoint()
Handle の記述:
Handle 内の getLastClickedPointHandle.click(Point2D, MouseEvent, EditorViewConfiguration)public java.awt.geom.Point2D getLocation()
Handle の記述:
Handle 内の getLocation
public void setLocation(java.awt.geom.Point2D newLocation,
java.awt.event.MouseEvent event,
EditorViewConfiguration configuration)
Handle の記述:
Handle 内の setLocationnewLocation - 新しい座標(マップ上の座標系)event - ハンドル位置を変更するきっかけになったマウスイベントconfiguration - ビューの状態
public boolean readyDrag(java.awt.geom.Point2D startPoint,
java.awt.event.MouseEvent mouseEvent,
EditorViewConfiguration configuration)
Handle の記述:
Handle 内の readyDragstartPoint - 開始点の座標系mouseEvent - マウスイベントconfiguration - ビューの状態
protected java.awt.geom.Point2D getDragStartPointDelta(java.awt.geom.Point2D startPoint,
java.awt.geom.Point2D location)
public boolean startDrag(java.awt.geom.Point2D cursorLocation,
java.awt.event.MouseEvent mouseEvent,
EditorViewConfiguration configuration)
Handle の記述:
Handle 内の startDragcursorLocation - ハンドルの位置mouseEvent - マウスイベントconfiguration - ビューの状態
protected boolean delegate(AbstractHandle<S> targetHandle)
protected AbstractHandle requestDelegate(double x,
double y,
EditorViewConfiguration configuration)
protected java.awt.geom.Point2D getDragStartPoint()
protected void filter(java.awt.geom.Point2D point,
java.awt.event.MouseEvent event,
EditorViewConfiguration configuration)
public Handle drag(java.awt.geom.Point2D point,
java.awt.event.MouseEvent event,
EditorViewConfiguration configuration)
Handle の記述:
Handle 内の dragpoint - ハンドルの新しい座標event - マウスイベントconfiguration - ビューの状態
public boolean isDragging()
Handle の記述:
Handle 内の isDraggingpublic void cancelDrag()
Handle の記述:
Handle 内の cancelDragpublic void endDrag(java.awt.event.MouseEvent event)
Handle の記述:
Handle 内の endDragevent - ドラッグ終了時のマウスイベントpublic java.awt.Cursor getCursor()
Handle 内の getCursor
public void updateSelection(boolean selected,
boolean singleSelected)
Handle 内の updateSelectionpublic void updateFocus(boolean focused)
Handle 内の updateFocuspublic boolean isSelected()
public boolean isSingleSelected()
public boolean isFocused()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||