|
|||||||||
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 Astah diagram view. This class can be used with plugin only.
Field Summary | |
---|---|
static String |
BACKGROUND_COLOR
Property key for color that highlights background. |
static String |
BORDER_COLOR
Property key for color that highlights border. |
static String |
LINE_COLOR
Property key for color that highlights line. |
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. |
IDiagram |
autoCreateClassDiagram(IClass clazz)
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 selected diagram in the 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 View Property. |
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 |
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> properties)
Set properties of Views. |
abstract void |
setViewProperty(IPresentation presentation,
String key,
Object value)
Set View Property for Presentation. |
abstract void |
showInDiagramEditor(IPresentation presentation)
Show and select the presentation in the center of the Diagram Editor. |
abstract double |
toDeviceCoordX(double xInWorldCoord)
Convert a X value of the world(Model) coordinate system to the X value of the device(GUI) coordinate system. |
abstract double |
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(double xInDeviceCoord)
Convert a X value of the device(GUI) coordinate system to the X value of the world(Model) coordinate system. |
abstract double |
toWorldCoordY(double 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
- Valueabstract void setViewProperties(IPresentation[] presentations, Map<String,Object> properties)
presentations
- The array of Presentationsproperties
- Properties
InvalidUsingException
setViewProperty(IPresentation, String, Object)
abstract Object getViewProperty(IPresentation presentation, String key)
presentation
- Presentationkey
- Key
abstract Map<String,Object> getViewProperties(IPresentation presentation)
presentation
- Presentation
InvalidUsingException
abstract void clearAllViewProperties(IPresentation presentation)
presentation
- Presentation to set propertiesabstract void clearAllViewProperties(IDiagram dgm)
dgm
- the target Diagram
InvalidUsingException
- InvalidUsingException occurs.abstract void showInDiagramEditor(IPresentation presentation)
presentation
- Presentationabstract IDiagram getCurrentDiagram()
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 layoutAll()
abstract void layoutSelected()
IDiagram autoCreateClassDiagram(IClass clazz)
clazz
- auto create class.
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(double xInDeviceCoord)
xInDeviceCoord
- X value of the device(GUI) coordinate system
abstract double toWorldCoordY(double yInDeviceCoord)
yInDeviceCoord
- Y value of the device(GUI) coordinate system
abstract double toDeviceCoordX(double xInWorldCoord)
xInWorldCoord
- X value of the world(Model) coordinate system
abstract double 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 Rectangle2D getCurrentDiagramEditorBoundsRect()
abstract Point2D toWorldCoord(int x, int y)
abstract 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 |