|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.change_vision.jude.api.inf.view.IDiagramViewManager
public abstract IDiagramViewManager
Interface to manage view related to diagrams. This class can be used with Plug-in only.
Field Summary | |
---|---|
static String |
BACKGROUND_COLOR
Property key for background color. |
static String |
BORDER_COLOR
Property key for rect's line color. |
static String |
LINE_COLOR
Property key for line color. |
static String |
USER_ICON
Property key for user icon. |
Method Summary | |
---|---|
abstract void |
addDiagramEditorSelectionListener(IDiagramEditorSelectionListener listener)
Add IDiagramEditorSelectionListener to receive the event. |
abstract void |
addDropTargetListener(DiagramDropTargetListener listener)
Add DiagramDropTargetListener when models are dropped on the diagram. |
abstract void |
addEntitySelectionListener(IEntitySelectionListener listener)
Add IEntitySelectionListener to receive the event. |
abstract IDiagram |
autoCreateClassDiagram(IClass clazz,
boolean isDetail)
Deprecated. |
abstract void |
clearAllViewProperties(IPresentation presentation)
Clear all View Properties. |
abstract void |
clearAllViewProperties(IDiagram dgm)
Clear all View Properties. |
abstract void |
close(IDiagram diagram)
Close the specified diagram. |
abstract void |
closeAll()
Close all Diagram Editors. |
abstract void |
closeCurrentDiagramEditor()
Close the current diagram editor. |
abstract IDiagram |
getCurrentDiagram()
Get the diagram in the selected Diagram Editor. |
abstract Rectangle2D |
getCurrentDiagramEditorBoundsRect()
Get the Rectangle2D of the selected Diagram Editor. |
abstract IDiagram[] |
getOpenDiagrams()
Get the diagrams opened in editors. |
abstract IElement[] |
getSelectedElements()
Get the selected models on the current Diagram Editor. |
abstract IPresentation[] |
getSelectedPresentations()
Get the selected presentations on the current Diagram Editor. |
abstract Map<String,Object> |
getViewProperties(IPresentation presentation)
Get View Properties. |
abstract Object |
getViewProperty(IPresentation presentation,
String key)
Get a property of a Presentation. |
abstract double |
getZoomFactor()
Get the zoom factor of the Diagram Editor. |
abstract void |
layoutAll()
Deprecated. |
abstract void |
layoutSelected()
Deprecated. |
abstract void |
open(IDiagram diagram)
Open specified diagram in Diagram Editor. |
abstract void |
pan(double vectorX,
double vectorY)
Move the display position in the Diagram Editor. |
abstract void |
removeDiagramEditorSelectionListener(IDiagramEditorSelectionListener listener)
Remove IDiagramEditorSelectionListener to receive the event. |
abstract void |
removeDropTargetListener(DiagramDropTargetListener listener)
Remove DropTargetListener. |
abstract void |
removeEntitySelectionListener(IEntitySelectionListener listener)
Remove IEntitySelectionListener. |
abstract void |
select(IPresentation presentation)
Select the specified presentation in current Diagram Editor. |
abstract void |
select(IPresentation[] presentations)
Select the specified presentations in current Diagram Editor. |
abstract void |
selectAll()
Select all presentations in current Diagram Editor. |
abstract void |
setViewProperties(IPresentation[] presentations,
Map<String,Object> property)
Set properties of Views. |
abstract void |
setViewProperty(IPresentation presentation,
String key,
Object value)
Set a property of a Presentation. |
abstract void |
showInDiagramEditor(IPresentation presentation)
Show and select the presentation in the center of the Diagram Editor. |
abstract int |
toDeviceCoordX(double xInWorldCoord)
Convert a X value of the world(Model) coordinate system to the X value of the device(GUI) coordinate system. |
abstract int |
toDeviceCoordY(double yInWorldCoord)
Convert a Y value of the world(Model) coordinate system to the Y value of the device(GUI) coordinate system. |
abstract Point2D |
toWorldCoord(int x,
int y)
Get the model (WorldCoord) position from absolute position on a screen. |
abstract double |
toWorldCoordX(int xInDeviceCoord)
Convert a X value of the device(GUI) coordinate system to the X value of the world(Model) coordinate system. |
abstract double |
toWorldCoordY(int yInDeviceCoord)
Convert a Y value of the device(GUI) coordinate system to the Y value of the world(Model) coordinate system. |
abstract void |
unselectAll()
Unselect all presentations in current Diagram Editor. |
abstract void |
zoom(double zoomFactor,
boolean keepCenter)
Set the zoom factor to the Diagram Editor. |
Field Detail |
---|
static final String BACKGROUND_COLOR
static final String BORDER_COLOR
static final String LINE_COLOR
static final String USER_ICON
Method Detail |
---|
abstract void setViewProperty(IPresentation presentation, String key, Object value)
presentation
- Presentationkey
- Keyvalue
- Value
InvalidUsingException
BACKGROUND_COLOR
,
BORDER_COLOR
,
LINE_COLOR
,
USER_ICON
abstract void setViewProperties(IPresentation[] presentations, Map<String,Object> property)
presentations
- The array of Presentationsproperties
- Properties
InvalidUsingException
setViewProperty(IPresentation, String, Object)
abstract Object getViewProperty(IPresentation presentation, String key)
presentation
- Presentationkey
- Key
InvalidUsingException
abstract Map<String,Object> getViewProperties(IPresentation presentation)
presentation
- Presentation
InvalidUsingException
abstract void clearAllViewProperties(IPresentation presentation)
presentation
- the target Presentation
InvalidUsingException
abstract void clearAllViewProperties(IDiagram dgm)
dgm
- the target Diagram
InvalidUsingException
- InvalidUsingException occurs.abstract void showInDiagramEditor(IPresentation presentation)
presentation
- Presentationabstract IDiagram getCurrentDiagram()
abstract Rectangle2D getCurrentDiagramEditorBoundsRect()
abstract IPresentation[] getSelectedPresentations()
abstract IElement[] getSelectedElements()
abstract void addEntitySelectionListener(IEntitySelectionListener listener)
listener
- Listener of the IEntitySelectionEventabstract void removeEntitySelectionListener(IEntitySelectionListener listener)
listener
- Listener of the IEntitySelectionEventabstract void addDropTargetListener(DiagramDropTargetListener listener)
listener
- Listener for the drop event on the diagramabstract void removeDropTargetListener(DiagramDropTargetListener listener)
listener
- Listener for the drop event on the diagramabstract void layoutAll()
abstract void layoutSelected()
abstract IDiagram autoCreateClassDiagram(IClass clazz, boolean isDetail)
clazz
- auto create class.isDetail
- Output detail is true.
InvalidEditingException
- InvalidEditingException occurs.abstract IDiagram[] getOpenDiagrams()
abstract void open(IDiagram diagram)
diagram
- Diagram to be openedabstract void closeCurrentDiagramEditor()
abstract void close(IDiagram diagram)
diagram
- Diagram to be closedabstract void closeAll()
abstract void select(IPresentation presentation)
presentation
- Presentation to be selectedabstract void select(IPresentation[] presentations)
presentations
- Presentations to be selectedabstract void selectAll()
abstract void unselectAll()
abstract double toWorldCoordX(int xInDeviceCoord)
xInDeviceCoord
- X value of the device(GUI) coordinate system
abstract double toWorldCoordY(int yInDeviceCoord)
yInDeviceCoord
- Y value of the GUI coordinate system
abstract Point2D toWorldCoord(int x, int y)
abstract int toDeviceCoordX(double xInWorldCoord)
xInWorldCoord
- X value of the world(Model) coordinate system
abstract int toDeviceCoordY(double yInWorldCoord)
yInWorldCoord
- Y value of the world(Model) coordinate system
abstract void addDiagramEditorSelectionListener(IDiagramEditorSelectionListener listener)
listener
- Listener of the IDiagramEditorSelectionEventabstract void removeDiagramEditorSelectionListener(IDiagramEditorSelectionListener listener)
listener
- Listener of the IDiagramEditorSelectionEventabstract void pan(double vectorX, double vectorY)
vectorX
- vector XvectorY
- vector Yabstract void zoom(double zoomFactor, boolean keepCenter)
zoomFactor
- Zoom Factor (4.0 - 0.05)keepCenter
- true to keep the center position of the diagram.abstract double getZoomFactor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |