public interface ViewManager
Modifier and Type | Method and Description |
---|---|
void |
clearMessages(java.lang.String id) |
BPMNIconRetriever |
createBPMNIconRetriever()
Get the BPMNIconRetriever.
|
javax.swing.JFileChooser |
createJFileChooser() |
java.awt.Dimension |
getDescaledDimension(java.awt.Dimension aDimension) |
double |
getDescaledDouble(double aDoubleValue) |
float |
getDescaledFloat(float aFloatValue) |
float |
getDescaledFontSize(float aFontSize) |
java.awt.Font |
getDescaledFontSize(java.awt.Font aFont) |
int |
getDescaledInt(int aIntValue) |
java.awt.Rectangle |
getDescaledRectangle(java.awt.Rectangle aBounds) |
javax.swing.ImageIcon |
getDiagramCollectionIconByDiagramType(java.lang.String diagramType,
boolean expanded)
Get icon by diagram type for Diagram Collection.
|
java.lang.String |
getDisplayDiagramType(java.lang.String diagramType)
Get the Display Text of the diagram type.
|
java.lang.String |
getDisplayDiagramTypeWithoutTranslateToUserLanguage(java.lang.String diagramType)
Get the Display Text of the diagram type.
|
java.lang.String |
getDisplayModelType(java.lang.String modelType)
Get the Display Text of the model type.
|
java.lang.String |
getDisplayModelType(java.lang.String modelType,
boolean uniqueTypeName)
Get the Display Text of the model type.
|
java.lang.String |
getDisplayModelTypeWithoutTranslateToUserLanguage(java.lang.String modelType)
Get the Display Text of the model type.
|
java.lang.String |
getDisplayModelTypeWithoutTranslateToUserLanguage(java.lang.String modelType,
boolean uniqueTypeName)
Get the Display Text of the model type.
|
java.lang.String |
getDisplayName(IModelElement aModelElement,
IDiagramElement aDiagramElement) |
java.lang.String |
getDisplayName(IProject aProject,
IModelElement aModelElement,
IDiagramElement aDiagramElement) |
java.io.InputStream |
getDocumentationImageInputStream(IProject project,
java.lang.String path)
Get the image input stream of a project (used for dependent projects)
|
java.io.InputStream |
getDocumentationImageInputStream(java.lang.String path)
Get the image input stream that can be used in description (documentation).
|
java.lang.String[] |
getDocumentationImagePaths()
Get the image paths can be used in description (documentation).
|
java.lang.String[] |
getDocumentationImagePaths(IProject project)
Get the image paths of a project (used for dependent projects)
|
javax.swing.ImageIcon |
getIconByDiagramType(java.lang.String diagramType)
Get icon by diagram type of a diagram.
|
javax.swing.ImageIcon |
getIconByModel(IModelElement modelElement)
Get icon by a model element.
|
javax.swing.ImageIcon |
getIconByModelType(java.lang.String modelType)
Get icon by model type of a model element.
|
javax.swing.ImageIcon |
getIconByShapeType(java.lang.String shapeType)
Get icon by shape type of a diagram element.
|
java.lang.String |
getIntPropertyDisplayValue(IDiagramProperty property) |
java.lang.String |
getIntPropertyDisplayValue(IModelProperty property) |
java.awt.Component |
getRootFrame()
Get the root component of this application.
|
java.awt.BasicStroke |
getScaledBasicStroke(java.awt.BasicStroke aBasicStroke) |
java.awt.Dimension |
getScaledDimension(java.awt.Dimension aDimension) |
double |
getScaledDouble(double aDoubleValue) |
float |
getScaledFloat(float aFloatValue) |
float |
getScaledFontSize(float aFontSize) |
java.awt.Font |
getScaledFontSize(java.awt.Font aFont) |
int |
getScaledInt(int aIntValue) |
java.awt.Rectangle |
getScaledRectangle(java.awt.Rectangle aBounds) |
java.lang.Object[] |
getSelectedObjectsFromClassRepository()
Get the selected objects (IProject, IModelElement) from Class Repository
|
java.lang.Object[] |
getSelectedObjectsFromDiagramNavigator()
Get the selected objects (IProject, IDiagramCategory, IDiagramCollection, IDiagramUIModel, IDiagramElement, IModelElement) from Diagram Navigator
|
java.lang.Object[] |
getSelectedObjectsFromLogicalView()
Get the selected objects (ILogicalView, ILogicalViewContainer, ILogicalViewElement) from Logical View
|
java.lang.Object[] |
getSelectedObjectsFromModelExplorer()
Get the selected objects (IProject, IModelElement, IDiagramUIModel) from Model Explorer
|
void |
openSpec(IModelElement model,
java.awt.Component component) |
void |
removeMessagePaneComponent(java.lang.String id) |
int |
showConfirmDialog(java.awt.Component component,
java.lang.Object msg) |
int |
showConfirmDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType) |
int |
showConfirmDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType,
int messageType) |
int |
showConfirmDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon) |
void |
showDialog(IDialogHandler dialogHandler)
Show the dialog based on the
IDialogHandler . |
void |
showDialog(IDialogHandler dialogHandler,
java.awt.Component base)
Show the dialog based on the
IDialogHandler . |
java.lang.String |
showInputDialog(java.awt.Component component,
java.lang.Object msg) |
java.lang.String |
showInputDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.Object initialSelectedValue) |
java.lang.String |
showInputDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType) |
java.lang.Object |
showInputDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int messageType,
javax.swing.Icon icon,
java.lang.Object[] selectionValues,
java.lang.Object initialSelectedValue) |
java.lang.String |
showInputDialog(java.lang.Object msg) |
java.lang.String |
showInputDialog(java.lang.Object msg,
java.lang.Object initialSelectedValue) |
int |
showInternalConfirmDialog(java.awt.Component component,
java.lang.Object msg) |
int |
showInternalConfirmDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType) |
int |
showInternalConfirmDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType,
int messageType) |
int |
showInternalConfirmDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon) |
java.lang.String |
showInternalInputDialog(java.awt.Component component,
java.lang.Object msg) |
java.lang.String |
showInternalInputDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType) |
java.lang.Object |
showInternalInputDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType,
javax.swing.Icon icon,
java.lang.Object[] selectionValues,
java.lang.Object initialSelectedValue) |
void |
showInternalMessageDialog(java.awt.Component component,
java.lang.Object msg) |
void |
showInternalMessageDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int messageType) |
void |
showInternalMessageDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int messageType,
javax.swing.Icon icon) |
int |
showInternalOptionDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon,
java.lang.Object[] selectionValues,
java.lang.Object initialSelectedValue) |
void |
showMessage(java.lang.String msg) |
void |
showMessage(java.lang.String msg,
java.lang.String id) |
void |
showMessageDialog(java.awt.Component component,
java.lang.Object msg)
Show message dialog.
|
void |
showMessageDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int msgType)
Show message dialog.
|
void |
showMessageDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int msgType,
javax.swing.Icon icon)
Show message dialog.
|
void |
showMessagePaneComponent(java.lang.String id) |
void |
showMessagePaneComponent(java.lang.String id,
java.lang.String title,
java.awt.Component messageComponent) |
int |
showOptionDialog(java.awt.Component component,
java.lang.Object msg,
java.lang.String title,
int optionType,
int msgType,
javax.swing.Icon icon,
java.lang.Object[] options,
java.lang.Object initialValue) |
java.lang.String |
translateToUserLanguage(java.lang.String text)
Translate the text to user language.
|
java.awt.Component getRootFrame()
void showDialog(IDialogHandler dialogHandler)
IDialogHandler
.dialogHandler
- the handler of the dialogvoid showDialog(IDialogHandler dialogHandler, java.awt.Component base)
IDialogHandler
.dialogHandler
- the handler of the dialogbase
- the parent component for showing the dialog. If it is Null, ViewManager
.getRootFrame() will be the parent component of the dialog.javax.swing.JFileChooser createJFileChooser()
int showConfirmDialog(java.awt.Component component, java.lang.Object msg)
int showConfirmDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType)
int showConfirmDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType, int messageType)
int showConfirmDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType, int messageType, javax.swing.Icon icon)
java.lang.String showInputDialog(java.lang.Object msg)
java.lang.String showInputDialog(java.lang.Object msg, java.lang.Object initialSelectedValue)
java.lang.String showInputDialog(java.awt.Component component, java.lang.Object msg)
java.lang.String showInputDialog(java.awt.Component component, java.lang.Object msg, java.lang.Object initialSelectedValue)
java.lang.Object showInputDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int messageType, javax.swing.Icon icon, java.lang.Object[] selectionValues, java.lang.Object initialSelectedValue)
java.lang.String showInputDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType)
int showInternalConfirmDialog(java.awt.Component component, java.lang.Object msg)
int showInternalConfirmDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType)
int showInternalConfirmDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType, int messageType)
int showInternalConfirmDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType, int messageType, javax.swing.Icon icon)
java.lang.String showInternalInputDialog(java.awt.Component component, java.lang.Object msg)
java.lang.String showInternalInputDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType)
java.lang.Object showInternalInputDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType, javax.swing.Icon icon, java.lang.Object[] selectionValues, java.lang.Object initialSelectedValue)
void showInternalMessageDialog(java.awt.Component component, java.lang.Object msg)
void showInternalMessageDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int messageType)
void showInternalMessageDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int messageType, javax.swing.Icon icon)
int showInternalOptionDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType, int messageType, javax.swing.Icon icon, java.lang.Object[] selectionValues, java.lang.Object initialSelectedValue)
void showMessageDialog(java.awt.Component component, java.lang.Object msg)
component
- parent component of the dialog. If NULL, ViewManager.getRootComponent() will be used.msg
- the message object of the message dialogvoid showMessageDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int msgType)
component
- parent component of the dialog. If NULL, ViewManager.getRootComponent() will be used.msg
- the message object of the message dialogtitle
- title of the message dialogmsgType
- message type of the message dialogvoid showMessageDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int msgType, javax.swing.Icon icon)
component
- parent component of the dialog. If NULL, ViewManager.getRootComponent() will be used.msg
- the message object of the message dialogtitle
- title of the message dialogmsgType
- message type of the message dialogicon
- icon of the message dialogint showOptionDialog(java.awt.Component component, java.lang.Object msg, java.lang.String title, int optionType, int msgType, javax.swing.Icon icon, java.lang.Object[] options, java.lang.Object initialValue)
void showMessagePaneComponent(java.lang.String id)
void showMessagePaneComponent(java.lang.String id, java.lang.String title, java.awt.Component messageComponent)
void removeMessagePaneComponent(java.lang.String id)
void showMessage(java.lang.String msg)
void showMessage(java.lang.String msg, java.lang.String id)
void clearMessages(java.lang.String id)
java.lang.String getDisplayModelType(java.lang.String modelType)
modelType
- the model type will be translatedgetDisplayModelType(String, boolean)
,
getDisplayModelTypeWithoutTranslateToUserLanguage(String)
,
getDisplayModelTypeWithoutTranslateToUserLanguage(String, boolean)
java.lang.String getDisplayModelType(java.lang.String modelType, boolean uniqueTypeName)
modelType
- the model type will be translateduniqueTypeName
- determine does the display name will be unique in different model types. e.g. Object Diagram's Link and Communication Diagram's Link will return different Display Name: "Link (Object)" and "Link (Communication)"getDisplayModelTypeWithoutTranslateToUserLanguage(String, boolean)
java.lang.String getDisplayDiagramType(java.lang.String diagramType)
diagramType
- the diagram type will be translatedgetDisplayDiagramTypeWithoutTranslateToUserLanguage(String)
java.lang.String translateToUserLanguage(java.lang.String text)
java.lang.String getDisplayModelTypeWithoutTranslateToUserLanguage(java.lang.String modelType)
modelType
- the model type will be translatedgetDisplayModelTypeWithoutTranslateToUserLanguage(String, boolean)
,
getDisplayModelType(String, boolean)
java.lang.String getDisplayModelTypeWithoutTranslateToUserLanguage(java.lang.String modelType, boolean uniqueTypeName)
modelType
- the model type will be translateduniqueTypeName
- determine does the display name will be unique in different model types. e.g. Object Diagram's Link and Communication Diagram's Link will return different Display Name: "Link (Object)" and "Link (Communication)"getDisplayModelType(String, boolean)
java.lang.String getDisplayDiagramTypeWithoutTranslateToUserLanguage(java.lang.String diagramType)
diagramType
- the diagram type will be translatedgetDisplayDiagramType(String)
java.lang.String getDisplayName(IModelElement aModelElement, IDiagramElement aDiagramElement)
java.lang.String getDisplayName(IProject aProject, IModelElement aModelElement, IDiagramElement aDiagramElement)
java.lang.String getIntPropertyDisplayValue(IModelProperty property)
java.lang.String getIntPropertyDisplayValue(IDiagramProperty property)
javax.swing.ImageIcon getIconByModelType(java.lang.String modelType)
modelType
- model type of a IModelElement
javax.swing.ImageIcon getIconByModel(IModelElement modelElement)
modelElement
- javax.swing.ImageIcon getIconByShapeType(java.lang.String shapeType)
shapeType
- shape type of a IDiagramElement
javax.swing.ImageIcon getIconByDiagramType(java.lang.String diagramType)
diagramType
- diagram type of a IDiagramUIModel
javax.swing.ImageIcon getDiagramCollectionIconByDiagramType(java.lang.String diagramType, boolean expanded)
diagramType
- diagram type of a IDiagramUIModel
expanded
- the icon will be shown for a 'expanded' or a 'collapsed' tree node?BPMNIconRetriever createBPMNIconRetriever()
java.lang.String[] getDocumentationImagePaths()
ProjectManager.addHtmlDocumentationImage(File)
,
ProjectManager.addHtmlDocumentationImage(InputStream)
java.lang.String[] getDocumentationImagePaths(IProject project)
getDocumentationImagePaths()
java.io.InputStream getDocumentationImageInputStream(java.lang.String path) throws java.lang.Exception
path
- Image Pathjava.lang.Exception
getDocumentationImagePaths()
,
ProjectManager.addHtmlDocumentationImage(File)
,
ProjectManager.addHtmlDocumentationImage(InputStream)
java.io.InputStream getDocumentationImageInputStream(IProject project, java.lang.String path) throws java.lang.Exception
java.lang.Exception
getDocumentationImageInputStream(String)
void openSpec(IModelElement model, java.awt.Component component)
java.lang.Object[] getSelectedObjectsFromDiagramNavigator()
java.lang.Object[] getSelectedObjectsFromModelExplorer()
java.lang.Object[] getSelectedObjectsFromClassRepository()
java.lang.Object[] getSelectedObjectsFromLogicalView()
int getScaledInt(int aIntValue)
int getDescaledInt(int aIntValue)
float getScaledFloat(float aFloatValue)
float getDescaledFloat(float aFloatValue)
double getScaledDouble(double aDoubleValue)
double getDescaledDouble(double aDoubleValue)
java.awt.Font getScaledFontSize(java.awt.Font aFont)
java.awt.Font getDescaledFontSize(java.awt.Font aFont)
float getScaledFontSize(float aFontSize)
float getDescaledFontSize(float aFontSize)
java.awt.Dimension getScaledDimension(java.awt.Dimension aDimension)
java.awt.Dimension getDescaledDimension(java.awt.Dimension aDimension)
java.awt.Rectangle getScaledRectangle(java.awt.Rectangle aBounds)
java.awt.Rectangle getDescaledRectangle(java.awt.Rectangle aBounds)
java.awt.BasicStroke getScaledBasicStroke(java.awt.BasicStroke aBasicStroke)