本文整理汇总了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);
}