本文整理匯總了Java中com.bbn.openmap.gui.ToolPanel類的典型用法代碼示例。如果您正苦於以下問題:Java ToolPanel類的具體用法?Java ToolPanel怎麽用?Java ToolPanel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ToolPanel類屬於com.bbn.openmap.gui包,在下文中一共展示了ToolPanel類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: ExampleApplication
import com.bbn.openmap.gui.ToolPanel; //導入依賴的package包/類
public ExampleApplication() {
_mapBean = new MapBean();
_menuBar = new JMenuBar();
_toolPanel = new ToolPanel();
_omts = new OMToolSet();
_omts.findAndInit(_mapBean);
_mouseDelegator = new MouseDelegator(_mapBean);
_mouseModePanel = new MouseModePanel(_mouseDelegator);
NavMouseMode nmm = new NavMouseMode();
SelectMouseMode smm = new SelectMouseMode();
_mouseDelegator.addMouseMode(nmm);
_mouseDelegator.addMouseMode(smm);
setupUI();
}
示例2: setI18NLabels
import com.bbn.openmap.gui.ToolPanel; //導入依賴的package包/類
protected void setI18NLabels(ToolPanel tp) {
I18n i18n = Environment.getI18n();
String name = DefaultToolPanelName;
if (tp != null) {
name = tp.getName();
}
String interString = i18n.get(ToolPanelToggleMenuItem.class,
HideLabelProperty,
I18n.TOOLTIP,
hideLabel);
hideLabel = interString + " " + name;
interString = i18n.get(ToolPanelToggleMenuItem.class,
DisplayLabelProperty,
I18n.TOOLTIP,
displayLabel);
displayLabel = interString + " " + name;
}
示例3: ExampleApplet
import com.bbn.openmap.gui.ToolPanel; //導入依賴的package包/類
public ExampleApplet() {
_mapBean = new MapBean();
_toolPanel = new ToolPanel();
_omts = new OMToolSet();
_omts.findAndInit(_mapBean);
_mouseDelegator = new MouseDelegator(_mapBean);
NavMouseMode nmm = new NavMouseMode();
SelectMouseMode smm = new SelectMouseMode();
_mouseDelegator.addMouseMode(nmm);
_mouseDelegator.addMouseMode(smm);
setupUI();
}
示例4: setToolPanel
import com.bbn.openmap.gui.ToolPanel; //導入依賴的package包/類
public void setToolPanel(ToolPanel tp) {
if (toolPanel != null) {
toolPanel.removeComponentListener(this);
toolPanel.removePropertyChangeListener(this);
}
toolPanel = tp;
this.setVisible(toolPanel != null);
if (toolPanel != null) {
toolPanel.addComponentListener(this);
toolPanel.addPropertyChangeListener(this);
stateCheck();
}
}
示例5: propertyChange
import com.bbn.openmap.gui.ToolPanel; //導入依賴的package包/類
public void propertyChange(PropertyChangeEvent evt) {
String propertyName = evt.getPropertyName();
if (propertyName.equals(ToolPanel.MembershipProperty)) {
stateCheck();
}
}
示例6: ToolPanelToggleMenuItem
import com.bbn.openmap.gui.ToolPanel; //導入依賴的package包/類
public ToolPanelToggleMenuItem(ToolPanel tp) {
super(tp.isVisible() ? DefaultHideLabel : DefaultDisplayLabel);
init(tp);
}
示例7: init
import com.bbn.openmap.gui.ToolPanel; //導入依賴的package包/類
public void init(ToolPanel tp) {
setI18NLabels(tp);
setToolPanel(tp);
addActionListener(this);
}
示例8: getToolPanel
import com.bbn.openmap.gui.ToolPanel; //導入依賴的package包/類
public ToolPanel getToolPanel() {
return toolPanel;
}
示例9: forToolPanel
import com.bbn.openmap.gui.ToolPanel; //導入依賴的package包/類
public boolean forToolPanel(ToolPanel tp) {
return (tp == toolPanel);
}