V
- the type of verticesE
- the type of edgespublic class CompleteBipartiteGraphToolBarExtension<V extends Vertex,E extends Edge> extends ToolBarExtension
CompleteBipartiteGraphToolBarExtension(PluginHost, GraphView, LanguageFile, String)
to specify a language file from which
labels, tooltips and messages are read by the given language id. The following language labels are available:
Constructor and Description |
---|
CompleteBipartiteGraphToolBarExtension(PluginHost host,
GraphView<V,E> graphView)
Creates a new complete bipartite graph toolbar extension.
|
CompleteBipartiteGraphToolBarExtension(PluginHost host,
GraphView<V,E> graphView,
LanguageFile langFile,
java.lang.String langID)
Creates a new complete bipartite graph toolbar extension.
|
CompleteBipartiteGraphToolBarExtension(PluginHost host,
GraphView<V,E> graphView,
LanguageFile langFile,
java.lang.String langID,
boolean startsWithSeparator)
Creates a new complete bipartite graph toolbar extension.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
getMenuOptionIcon()
Gets the icon of the menu option.
|
java.lang.String |
getMenuOptionText()
Gets the text of the option that is shown in the menu of the host application.
|
boolean |
getShowInMenu()
Indicates whether the toolbar extension should be shown in the menu of the host application.
|
void |
showMenuOption()
Invokes the option that is shown in the menu of the host application.
|
addButton, addSeparator, apply, isEnabled, remove, setEnabled
public CompleteBipartiteGraphToolBarExtension(PluginHost host, GraphView<V,E> graphView) throws java.lang.IllegalArgumentException
host
- the host that is used to center the dialog to create complete bipartite graphs in the application or null
(centers the dialog in the screen)graphView
- the graph view on which the extension is appliedjava.lang.IllegalArgumentException
- public CompleteBipartiteGraphToolBarExtension(PluginHost host, GraphView<V,E> graphView, LanguageFile langFile, java.lang.String langID) throws java.lang.IllegalArgumentException
LanguageFile
and a language id to display language dependent
messages or tooltips. The following language labels are available:
host
- the host that is used to center the dialog to create complete bipartite graphs in the application or null
(centers the dialog in the screen)graphView
- the graph view on which the extension is appliedlangFile
- the language file with labels for the tooltips of the toolbar buttonslangID
- the language idjava.lang.IllegalArgumentException
- public CompleteBipartiteGraphToolBarExtension(PluginHost host, GraphView<V,E> graphView, LanguageFile langFile, java.lang.String langID, boolean startsWithSeparator) throws java.lang.IllegalArgumentException
LanguageFile
and a language id to display language dependent
messages or tooltips. The following language labels are available:
host
- the host that is used to center the dialog to create complete bipartite graphs in the application or null
(centers the dialog in the screen)graphView
- the graph view on which the extension is appliedlangFile
- the language file with labels for the tooltips of the toolbar buttonslangID
- the language idstartsWithSeparator
- true
if the extension should be separated from the other elements in the toolbar otherwise false
java.lang.IllegalArgumentException
- public boolean getShowInMenu()
ToolBarExtension
getShowInMenu
in class ToolBarExtension
true
if the extension or one of its options should be shown in the menu otherwise false
ToolBarExtension.getMenuOptionText()
,
ToolBarExtension.showMenuOption()
public java.lang.String getMenuOptionText()
ToolBarExtension
getMenuOptionText
in class ToolBarExtension
ToolBarExtension.getShowInMenu()
,
ToolBarExtension.showMenuOption()
public javax.swing.Icon getMenuOptionIcon()
ToolBarExtension
getMenuOptionIcon
in class ToolBarExtension
null
if there is no iconpublic void showMenuOption()
ToolBarExtension
showMenuOption
in class ToolBarExtension
ToolBarExtension.getShowInMenu()
,
ToolBarExtension.getMenuOptionText()