|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiouml.workbench.diagram.DiagramEditorHelper
This class is used to provide all neccessary changes and validations in diagram model.
| Field Summary | |
protected Diagram |
diagram
|
protected DataCollectionUndoListener |
diagramChangeListener
|
protected static org.apache.log4j.Category |
log
|
protected SemanticController |
semanticController
|
protected ViewEditorPane |
viewEditor
|
| Constructor Summary | |
DiagramEditorHelper(Diagram diagram)
|
|
| Method Summary | |
View |
add(java.lang.Object obj,
java.awt.Point location)
Should provides necessary changes in view and model if the view can be resized. |
boolean |
addEdit(javax.swing.undo.UndoableEdit ue)
|
boolean |
canAccept(CompositeView composite,
View view)
|
void |
completeTransaction()
|
java.lang.Object |
createObject(java.lang.Class type,
java.awt.Point pt)
|
javax.swing.Action[] |
getActions()
we can use different selections for different viewes |
protected DataCollection |
getOrigin(java.awt.Point pt)
|
boolean |
isResizable(View view)
|
java.awt.Dimension |
moveView(View view,
java.awt.Dimension offset)
Should provides necessary changes in view and model if the view can be moved on the specified offset. |
void |
register(ViewEditorPane viewEditor)
register this ViewEditorHelper for the specified ViewEditorPane. |
boolean |
removeView(View view)
Should provides necessary changes in view and model if the view can removed. |
java.awt.Dimension |
resizeView(View view,
java.awt.Dimension size)
Should provides necessary changes in view and model if the view can be resized. |
void |
startTransaction(com.beanexplorer.undo.TransactionEvent te)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.apache.log4j.Category log
protected Diagram diagram
protected SemanticController semanticController
protected ViewEditorPane viewEditor
protected DataCollectionUndoListener diagramChangeListener
| Constructor Detail |
public DiagramEditorHelper(Diagram diagram)
| Method Detail |
public void register(ViewEditorPane viewEditor)
ViewEditorHelper
register in interface ViewEditorHelperpublic void startTransaction(com.beanexplorer.undo.TransactionEvent te)
startTransaction in interface com.beanexplorer.undo.TransactionListenerpublic void completeTransaction()
completeTransaction in interface com.beanexplorer.undo.TransactionListener
public java.awt.Dimension moveView(View view,
java.awt.Dimension offset)
moveView in interface ViewEditorHelper
public java.awt.Dimension resizeView(View view,
java.awt.Dimension size)
resizeView in interface ViewEditorHelper
public boolean canAccept(CompositeView composite,
View view)
canAccept in interface ViewEditorHelperpublic boolean isResizable(View view)
isResizable in interface ViewEditorHelperpublic boolean removeView(View view)
removeView in interface ViewEditorHelper
public View add(java.lang.Object obj,
java.awt.Point location)
add in interface ViewEditorHelperpublic boolean addEdit(javax.swing.undo.UndoableEdit ue)
addEdit in interface com.beanexplorer.undo.TransactionListenerprotected DataCollection getOrigin(java.awt.Point pt)
public java.lang.Object createObject(java.lang.Class type,
java.awt.Point pt)
createObject in interface ViewEditorHelperpublic javax.swing.Action[] getActions()
ViewEditorHelper
getActions in interface ViewEditorHelper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||