public class EdbPicturePane extends EdbEditorObject implements EdbUndo.Undoable, FocusListener, ImageObserver, ClipboardOwner, DragGestureListener, EdbDnDAnyDropTarget, Transferable
Modifier and Type | Field and Description |
---|---|
protected EdbLabel |
descriptionBox |
protected boolean |
editable |
protected Image |
myPicture |
protected String |
myText |
protected EdbPanel |
panel |
protected EdbLabel |
pictureBox |
protected int |
pictureBytes |
protected EdbPanel |
picturePanel |
protected int |
pictureXsize |
protected int |
pictureYsize |
protected String |
postfix |
protected EdbLabel |
postfixLabel |
protected String |
prefix |
protected EdbLabel |
prefixLabel |
protected MLText |
title |
protected EdbLabel |
titleLabel |
editorOwner, s_changeListeners
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
EdbPicturePane(EdbEditorOwner eo,
MLText tit,
String pre,
String text,
String post) |
Modifier and Type | Method and Description |
---|---|
void |
addMouseListener(MouseListener ml)
このペインからマウスイベントを受け取るために,指定されたマウスリスナーを追加します.
|
void |
copy() |
void |
cut() |
void |
delete() |
void |
dragGestureRecognized(DragGestureEvent dge)
このペインで,ドラック開始ジェスチャーを認識したときに呼び出されます.
|
boolean |
edbDnDDrop(DropTargetDropEvent dtde)
ドロップターゲット領域内でドロップしたときに呼び出されます.
|
boolean |
edbDnDDropAcceptable(DropTargetDragEvent dtde)
受け入れ可能なFlavorか?
|
boolean |
edbDnDDropTargetIsReady()
ドロップターゲットのReady状態の取得.
|
void |
edbDnDDropTargetSelected(boolean sel)
ドロップターゲット領域内でドラッグのEnter/Exit時に呼び出されます.
|
void |
edit()
編集開始のリクエスト.
|
boolean |
endEdit() |
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
EdbPanel |
getPanel() |
String |
getText()
画像データを取得します.
|
Object |
getTransferData(DataFlavor flavor)
転送されるデータを表すオブジェクトを返します.返されるオブジェクトのクラスは,フレーバの表現クラスで定義されます.
|
DataFlavor[] |
getTransferDataFlavors()
データを提供することができるフレーバを示す
DataFlavor オブジェクトの配列を返します. |
boolean |
imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
このメソッドの呼び出しにより,過去に非同期インタフェースを使って要求したイメージに関する情報を利用できます.
|
boolean |
isDataFlavorSupported(DataFlavor flavor)
指定されたデータフレーバが,このオブジェクトに対してサポートされているかどうかを返します.
|
boolean |
isEditable() |
void |
lostOwnership(Clipboard cb,
Transferable tr)
クリップボードの内容のオーナではなくなったことを,このオブジェクトに通知します.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
protected boolean |
mousePopupShow(MouseEvent e)
Popupメニューを表示する.
|
boolean |
pastable() |
void |
paste() |
void |
registProxyDragGestureRecognizer(int act,
DragGestureListener lis)
Register Drag Gesture Recognizer for parent object (proxy).
|
void |
setEditable(boolean e) |
void |
setFgc(Color c)
前景色を設定します.
|
void |
setFont(Font f) |
void |
setLabelFgc(Color c)
画像ラベルの背景色を設定します.
|
void |
setLabelFont(Font f)
画像ラベルのフォントを設定します.
|
void |
setSubFgc(Color c) |
void |
setSubFont(Font f) |
boolean |
setText(String t) |
boolean |
setText(String t,
boolean undoable)
画像データを設定します.
|
void |
setTitleFont(Font f)
タイトルラベルのフォントを設定します.
|
void |
setToolTipText(String t) |
void |
show() |
boolean |
startEdit() |
(package private) Image |
text2image(String text) |
boolean |
undo(Object o) |
actionPerformed, createMenuItem_Edit, createMenuItem_Edit, dragDropEnd, dragEnter, dragExit, dragOver, dropActionChanged, getWidth, isVisible, setVisible
addChangeListener, createAction_EndOfEdit, createAction_RotateFocus, editorObjectInnovateEditor, editorObjectNotifyChanged, editorObjectNotifyWillChange, editorObjectRequestDuplicate, editorObjectRequestInsert, editorObjectRequestRemove, editorObjectRequestReplace, editorObjectRequestVisible, editorObjectRotateFocus, editorObjectUndoPush, editorOwnerDuplicateObject, editorOwnerInsertObject, editorOwnerIsEditable, editorOwnerObjectChanged, editorOwnerObjectVisibleRequested, editorOwnerObjectWillChange, editorOwnerRemoveObject, editorOwnerReplaceObject, editorOwnerRotateFocus, getBrowser, getEDB, getEditor, getTracePrintWriter, isSimpleButton1Click, isSimpleButton1Click2, lockBrowser, mousePressed, mouseReleased, unlockBrowser
protected String myText
protected Image myPicture
protected boolean editable
protected int pictureXsize
protected int pictureYsize
protected int pictureBytes
protected EdbPanel panel
protected EdbPanel picturePanel
protected MLText title
protected String prefix
protected String postfix
protected EdbLabel titleLabel
protected EdbLabel prefixLabel
protected EdbLabel postfixLabel
protected EdbLabel pictureBox
protected EdbLabel descriptionBox
public EdbPicturePane(EdbEditorOwner eo, MLText tit, String pre, String text, String post)
public EdbPanel getPanel()
getPanel
in class EdbEditorObject
public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
imageUpdate
in interface ImageObserver
img
- 表示されるイメージinfoflags
- フラグの WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR および ABORT のビット単位の論理和x
- x 座標y
- y 座標width
- 幅height
- 高さinfoflags
が示す場合は true
,そうでない場合は false
public void registProxyDragGestureRecognizer(int act, DragGestureListener lis)
registProxyDragGestureRecognizer
in class EdbEditorObject
act
- drag actionlis
- drag gesture listenerpublic void addMouseListener(MouseListener ml)
addMouseListener
in class EdbEditorObject
ml
- マウスリスナpublic void setToolTipText(String t)
setToolTipText
in class EdbEditorObject
public void setLabelFont(Font f)
f
- フォントpublic void setSubFont(Font f)
setSubFont
in class EdbEditorObject
public void setTitleFont(Font f)
f
- フォントpublic void setFont(Font f)
setFont
in class EdbEditorObject
public void setLabelFgc(Color c)
c
- 背景色public void setSubFgc(Color c)
setSubFgc
in class EdbEditorObject
public void setFgc(Color c)
setFgc
in class EdbEditorObject
c
- 前景色.public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
mouseClicked
in class EdbEditorUnit
protected boolean mousePopupShow(MouseEvent e)
mousePopupShow
in class EdbEditorUnit
e
- Mouse Event.public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
mouseEntered
in class EdbEditorUnit
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class EdbEditorUnit
public void show()
show
in class EdbEditorObject
public boolean setText(String t, boolean undoable)
t
- base64 でエンコードされている画像データundoable
- アンドゥ可能性.public boolean setText(String t)
setText
in class EdbEditorObject
public boolean undo(Object o)
undo
in interface EdbUndo.Undoable
public String getText()
getText
in class EdbEditorObject
public void setEditable(boolean e)
setEditable
in class EdbEditorObject
public boolean isEditable()
isEditable
in class EdbEditorObject
public boolean startEdit()
startEdit
in class EdbEditorObject
public boolean endEdit()
endEdit
in class EdbEditorObject
public void edit()
edit
in class EdbEditorObject
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
flavor
- データに対して要求されたフレーバpublic Object getTransferData(DataFlavor flavor)
getTransferData
in interface Transferable
flavor
- データに対して要求されたフレーバpublic DataFlavor[] getTransferDataFlavors()
DataFlavor
オブジェクトの配列を返します.getTransferDataFlavors
in interface Transferable
public void dragGestureRecognized(DragGestureEvent dge)
dragGestureRecognized
in interface DragGestureListener
dge
- ジェスチャーを記述するイベントpublic boolean edbDnDDropTargetIsReady()
edbDnDDropTargetIsReady
in interface EdbDnDDropTarget
public void edbDnDDropTargetSelected(boolean sel)
edbDnDDropTargetSelected
in interface EdbDnDDropTarget
sel
- セレクション状態.public boolean edbDnDDropAcceptable(DropTargetDragEvent dtde)
edbDnDDropAcceptable
in interface EdbDnDAnyDropTarget
dtde
- DropTargetDragEventpublic boolean edbDnDDrop(DropTargetDropEvent dtde) throws Exception
edbDnDDrop
in interface EdbDnDAnyDropTarget
dtde
- DropTargetDropEventException
- Exceptionpublic void cut()
public void copy()
public boolean pastable()
public void paste()
public void delete()
public void lostOwnership(Clipboard cb, Transferable tr)
lostOwnership
in interface ClipboardOwner
cb
- もう所有されていないクリップボードtr
- このオーナが所有していたクリップボード上の内容EDB Working Group at Tue Jun 10 17:08:59 JST 2025