• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java JideSplitPane类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.jidesoft.swing.JideSplitPane的典型用法代码示例。如果您正苦于以下问题:Java JideSplitPane类的具体用法?Java JideSplitPane怎么用?Java JideSplitPane使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



JideSplitPane类属于com.jidesoft.swing包,在下文中一共展示了JideSplitPane类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: init

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
private void init()
    {
        setLayout( new MigLayout( "insets 0 0 0 0", "[grow,fill]", "[grow,fill]") );

        JideTabbedPane tabbedPane = new JideTabbedPane();
        tabbedPane.addTab("Details", mChannelDetailPanel);
        tabbedPane.addTab("Events", mCallEventPanel);
        tabbedPane.addTab("Messages", mMessageActivityPanel);
//        tabbedPane.addTab("Spectrum", mChannelSpectrumPanel);
        tabbedPane.setFont(this.getFont());
        tabbedPane.setForeground(Color.BLACK);

        JideSplitPane splitPane = new JideSplitPane(JideSplitPane.VERTICAL_SPLIT);
        splitPane.setShowGripper(true);
        splitPane.add(mChannelMetadataPanel);
        splitPane.add(tabbedPane);
        add(splitPane);

        mChannelMetadataPanel.addProcessingChainSelectionListener(mChannelDetailPanel);
        mChannelMetadataPanel.addProcessingChainSelectionListener(mCallEventPanel);
        mChannelMetadataPanel.addProcessingChainSelectionListener(mMessageActivityPanel);
    }
 
开发者ID:DSheirer,项目名称:sdrtrunk,代码行数:23,代码来源:ChannelMetadataViewer.java


示例2: CDataNodeComponent

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
/**
 * Creates a new data node component.
 * 
 * @param module Module whose data is shown in the component.
 * @param originContainer
 */
public CDataNodeComponent(final INaviModule module, final IViewContainer originContainer) {
  super(new BorderLayout());

  Preconditions.checkNotNull(module, "IE01960: Module argument can not be null");

  final JideSplitPane splitPane = new JideSplitPane(JideSplitPane.VERTICAL_SPLIT);

  splitPane.setDoubleBuffered(true);
  splitPane.setOneTouchExpandable(true);
  splitPane.setMinimumSize(new Dimension(0, 0));
  splitPane.setProportionalLayout(true);
  splitPane.setInitiallyEven(true);

  final JPanel panel = new JPanel(new BorderLayout());
  dataSectionComponent = new DataSectionComponent(module, originContainer);
  panel.add(dataSectionComponent);

  final JTabbedPane pane = new JTabbedPane();
  pane.addTab("Navigation", new CNavigationPanel(dataSectionComponent.getHexView()));

  splitPane.addPane(panel);
  splitPane.addPane(pane);
  add(splitPane);
}
 
开发者ID:google,项目名称:binnavi,代码行数:31,代码来源:CDataNodeComponent.java


示例3: createCentrePanel

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
private JPanel createCentrePanel() {
    final JideSplitPane splitPane1V = new JideSplitPane(JideSplitPane.VERTICAL_SPLIT);

    aoiTable = new JTable();
    aoiTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    aoiTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    aoiTable.addMouseListener(new MouseAdapter() {

        @Override
        public void mouseClicked(final MouseEvent e) {
            final int clickCount = e.getClickCount();
            if (clickCount == 2) {
                performOpenAction();
            } else if (clickCount == 1) {
                performSelectAction();
            }
        }
    });
    splitPane1V.add(new JScrollPane(aoiTable));

    worldMapUI = new WorldMapUI();
    splitPane1V.add(worldMapUI.getWorlMapPane());

    return splitPane1V;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:26,代码来源:AOIMonitoringToolView.java


示例4: CCombinedMemoryPanel

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
/**
 * Creates a new combined memory panel object.
 *
 * @param parent Parent window of the panel.
 * @param debugPerspectiveModel Describes the active debugger GUI options.
 */
public CCombinedMemoryPanel(
    final JFrame parent, final CDebugPerspectiveModel debugPerspectiveModel) {
  super(new BorderLayout());

  Preconditions.checkNotNull(parent, "IE01361: Parent argument can not be null");
  m_debugPerspectiveModel = Preconditions.checkNotNull(
      debugPerspectiveModel, "IE01362: Debug perspective model argument can not be null");

  m_debugPerspectiveModel.addListener(m_internalListener);

  final JideSplitPane pane = new JideSplitPane(JideSplitPane.HORIZONTAL_SPLIT) {
    private static final long serialVersionUID = -1326165812499630343L;

    // ESCA-JAVA0025: Workaround for Case 1168
    @Override
    public void updateUI() {
      // Workaround for Case 1168: The mere presence of a JIDE component
      // screws up the look and feel.
    }
  };

  pane.setDividerSize(3); // ATTENTION: Part of the Case 1168 workaround
  pane.setProportionalLayout(true);

  final CMemoryRefreshButtonPanel refreshPanel = new CMemoryRefreshButtonPanel(
      parent, debugPerspectiveModel, new InternalRangeProvider(),
      new InternalStackRangeProvider());

  m_memorySelectionPanel = new CMemorySelectionPanel(parent, debugPerspectiveModel, refreshPanel);

  // Create the GUI
  pane.addPane(m_memorySelectionPanel);

  m_stackPanel = new CStackView(debugPerspectiveModel);
  pane.addPane(m_stackPanel);

  add(pane);
}
 
开发者ID:google,项目名称:binnavi,代码行数:45,代码来源:CCombinedMemoryPanel.java


示例5: ValidationPanel

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
/**
 * Creates new form AttackSourcePanel
 */
ValidationPanel() {
    initComponents();
    jXCollapsiblePane1.setLayout(new BorderLayout());
    jXCollapsiblePane1.add(jInfoScrollPane, BorderLayout.CENTER);
    jInfoTextPane.setText(GENERAL_INFO);
    jideSplitPane1.setOrientation(JideSplitPane.VERTICAL_SPLIT);
    jideSplitPane1.setProportionalLayout(true);
    jideSplitPane1.setDividerSize(5);
    jideSplitPane1.setShowGripper(true);
    jideSplitPane1.setOneTouchExpandable(true);
    jideSplitPane1.setDividerStepSize(10);
    jideSplitPane1.setInitiallyEven(true);
    jideSplitPane1.add(jSourceValidationPanel, JideBoxLayout.FLEXIBLE);
    jideSplitPane1.add(jTargetValidationPanel, JideBoxLayout.VARY);
    jideSplitPane1.getDividerAt(0).addMouseListener(new MouseAdapter() {

        @Override
        public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() == 2) {
                jideSplitPane1.setProportions(new double[]{0.5});
            }
        }
    });
    sourceOverviewPanel = new VillageOverviewMapPanel();
    jPanel2.add(sourceOverviewPanel, BorderLayout.CENTER);
    targetOverviewPanel = new VillageOverviewMapPanel();
    jPanel3.add(targetOverviewPanel, BorderLayout.CENTER);
    jXTable1.setModel(new VillageUsageTableModel());
    jXTable2.setModel(new VillageUsageTableModel());
    jXTable1.setHighlighters(HighlighterFactory.createAlternateStriping(Constants.DS_ROW_A, Constants.DS_ROW_B));
    jXTable1.getTableHeader().setDefaultRenderer(new DefaultTableHeaderRenderer());
    jXTable2.setHighlighters(HighlighterFactory.createAlternateStriping(Constants.DS_ROW_A, Constants.DS_ROW_B));
    jXTable2.getTableHeader().setDefaultRenderer(new DefaultTableHeaderRenderer());
    jXTable1.setDefaultRenderer(Float.class, new PercentCellRenderer());
    jXTable2.setDefaultRenderer(Float.class, new PercentCellRenderer());
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:40,代码来源:ValidationPanel.java


示例6: createAggregatorsAndVariablesPanel

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
private JComponent createAggregatorsAndVariablesPanel() {
    JideSplitPane splitPane = new JideSplitPane(JideSplitPane.VERTICAL_SPLIT);
    splitPane.add(createAggregatorsPanel());
    splitPane.add(createVariablesPanel());
    splitPane.setShowGripper(true);
    splitPane.setProportionalLayout(true);
    splitPane.setProportions(new double[]{0.6});
    return splitPane;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:10,代码来源:BinningConfigurationPanel.java


示例7: getCenterSplitPane

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
public JideSplitPane getCenterSplitPane() {
    return centerSplitPane;
}
 
开发者ID:hyounesy,项目名称:ALEA,代码行数:4,代码来源:MainPanel.java


示例8: resetPanelHeights

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
/**
 * Recalculate and set heights of track panels, based on newly loaded tracks
 *
 * @param trackCountMap scrollpane -> number of tracks
 * @param panelSizeMap  scrollpane -> height in pixels
 */
public void resetPanelHeights(Map<TrackPanelScrollPane, Integer> trackCountMap, Map<TrackPanelScrollPane, Integer> panelSizeMap) {

    double totalHeight = 0;
    for (TrackPanel tp : getTrackPanels()) {
        TrackPanelScrollPane sp = tp.getScrollPane();
        if (trackCountMap.containsKey(sp)) {
            int prevTrackCount = trackCountMap.get(sp);
            if (prevTrackCount != sp.getDataPanel().getAllTracks().size()) {
                int scrollPosition = panelSizeMap.get(sp);
                if (prevTrackCount != 0 && sp.getVerticalScrollBar().isShowing()) {
                    sp.getVerticalScrollBar().setMaximum(sp.getDataPanel().getHeight());
                    sp.getVerticalScrollBar().setValue(scrollPosition);
                }
            }
        }
        // Give a maximum "weight" of 300 pixels to each panel.  If there are no tracks, give zero
        if (sp.getTrackPanel().getTracks().size() > 0)
            totalHeight += Math.min(300, sp.getTrackPanel().getPreferredPanelHeight());
    }

    // Adjust dividers for data panel.  The data panel divider can be
    // zero if there are no data tracks loaded.
    final JideSplitPane centerSplitPane = contentPane.getMainPanel().getCenterSplitPane();
    int htotal = centerSplitPane.getHeight();
    int y = 0;
    int i = 0;
    for (Component c : centerSplitPane.getComponents()) {
        if (c instanceof TrackPanelScrollPane) {
            final TrackPanel trackPanel = ((TrackPanelScrollPane) c).getTrackPanel();
            if (trackPanel.getTracks().size() > 0) {
                int panelWeight = Math.min(300, trackPanel.getPreferredPanelHeight());
                int dh = (int) ((panelWeight / totalHeight) * htotal);
                y += dh;
            }
            centerSplitPane.setDividerLocation(i, y);
            i++;
        }
    }

    contentPane.getMainPanel().invalidate();
}
 
开发者ID:hyounesy,项目名称:ALEA,代码行数:48,代码来源:IGV.java


示例9: init

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
private void init()
{
    setLayout(new MigLayout("insets 0 0 0 0",
        "[grow,fill]",
        "[grow,fill]"));

    //System Configuration View and Editor
    mAliasTable = new JTable(mAliasModel);
    mAliasTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    mAliasTable.getSelectionModel().addListSelectionListener(this);
    mAliasTable.setAutoCreateRowSorter(true);

    mAliasTable.getColumnModel().getColumn(AliasModel.COLUMN_COLOR)
        .setCellRenderer(new ColorCellRenderer());

    mAliasTable.getColumnModel().getColumn(AliasModel.COLUMN_ICON)
        .setCellRenderer(mIconCellRenderer);

    mTableFilterHeader = new TableFilterHeader(mAliasTable, AutoChoices.ENABLED);
    mTableFilterHeader.setFilterOnUpdates(true);

    JScrollPane tableScroller = new JScrollPane(mAliasTable);

    JPanel buttonsPanel = new JPanel();

    buttonsPanel.setLayout(
        new MigLayout("insets 0 0 0 0", "[grow,fill][grow,fill][grow,fill]", "[]"));

    mNewButton.addActionListener(this);
    mNewButton.setToolTipText("Adds a new alias");
    buttonsPanel.add(mNewButton);

    mCopyButton.addActionListener(this);
    mCopyButton.setEnabled(false);
    mCopyButton.setToolTipText("Creates a copy of the currently selected alias and adds it");
    buttonsPanel.add(mCopyButton);

    mDeleteButton.addActionListener(this);
    mDeleteButton.setEnabled(false);
    mDeleteButton.setToolTipText("Deletes the currently selected alias");
    buttonsPanel.add(mDeleteButton);

    JPanel listAndButtonsPanel = new JPanel();

    listAndButtonsPanel.setLayout(
        new MigLayout("insets 0 0 0 0", "[grow,fill]", "[grow,fill][]"));

    listAndButtonsPanel.add(tableScroller, "wrap");
    listAndButtonsPanel.add(buttonsPanel);

    mSplitPane = new JideSplitPane(JideSplitPane.HORIZONTAL_SPLIT);
    mSplitPane.setDividerSize(5);
    mSplitPane.setShowGripper(true);
    mSplitPane.add(listAndButtonsPanel);
    mSplitPane.add(mAliasEditor);

    add(mSplitPane);
}
 
开发者ID:DSheirer,项目名称:sdrtrunk,代码行数:59,代码来源:AliasController.java


示例10: init

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
private void init()
{
   	setLayout( new MigLayout( "", "[grow,fill]", "[grow,fill]") );

	//System Configuration View and Editor
   	mChannelTable = new JTable( mChannelModel );
   	mChannelTable.setDefaultRenderer( String.class, new ChannelTableCellRenderer() );
   	mChannelTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );
   	mChannelTable.getSelectionModel().addListSelectionListener( this );
   	mChannelTable.setAutoCreateRowSorter( true );
   	
   	mTableFilterHeader = new TableFilterHeader( mChannelTable, AutoChoices.ENABLED );
   	mTableFilterHeader.setFilterOnUpdates( true );
   	
   	JScrollPane channelScroller = new JScrollPane( mChannelTable );

   	JPanel buttonsPanel = new JPanel();
   	
   	buttonsPanel.setLayout( 
		new MigLayout( "insets 0 0 0 0", "[grow,fill][grow,fill][grow,fill]", "[]") );

   	mNewChannelButton.addActionListener( this );
   	mNewChannelButton.setToolTipText( "Create a new channel configuration" );
   	buttonsPanel.add( mNewChannelButton );
   	
   	mCopyChannelButton.addActionListener( this );
   	mCopyChannelButton.setEnabled( false );
   	mCopyChannelButton.setToolTipText( "Create a copy of the currently selected channel configuration" );
   	buttonsPanel.add( mCopyChannelButton );

   	mDeleteChannelButton.addActionListener( this );
   	mDeleteChannelButton.setEnabled( false );
   	mDeleteChannelButton.setToolTipText( "Delete the currently selected channel configuration" );
   	buttonsPanel.add( mDeleteChannelButton );
   	
   	JPanel listAndButtonsPanel = new JPanel();

   	listAndButtonsPanel.setLayout( 
		new MigLayout( "insets 0 0 0 0", "[grow,fill]", "[grow,fill][]") );

   	listAndButtonsPanel.add( channelScroller, "wrap" );
   	listAndButtonsPanel.add( buttonsPanel );
	
	JideSplitPane splitPane = new JideSplitPane( JideSplitPane.VERTICAL_SPLIT );
	splitPane.setDividerSize( 5 );
	splitPane.setShowGripper( true );

	//Shrink this guy so that he'll eventually be expanded to the scroller preferred size
	listAndButtonsPanel.setPreferredSize( new Dimension( 10, 10 ) );

	//Attempt to get a 60:40 vertical sizing preference
	JScrollPane listScroller = new JScrollPane( listAndButtonsPanel );
	listScroller.setPreferredSize( new Dimension( 800, 58 ) );
	
	JScrollPane editorScroller = new JScrollPane( mEditor );
	editorScroller.setPreferredSize( new Dimension( 800, 42 ) );

	splitPane.add( listScroller );
	splitPane.add( editorScroller );

	add( splitPane );
}
 
开发者ID:DSheirer,项目名称:sdrtrunk,代码行数:63,代码来源:ChannelController.java


示例11: init

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
private void init()
{
    setLayout(new MigLayout("insets 0 0 0 0", "[grow]", "[grow]"));

    /**
     * The layered pane holds the overlapping spectrum and channel panels
     * and manages the sizing of each panel with the resize listener
     */
    mLayeredPanel = new JLayeredPane();
    mLayeredPanel.addComponentListener(new ResizeListener());

    /**
     * Create a mouse adapter to handle mouse events over the spectrum
     * and waterfall panels
     */
    MouseEventProcessor mouser = new MouseEventProcessor();

    mOverlayPanel.addMouseListener(mouser);
    mOverlayPanel.addMouseMotionListener(mouser);
    mOverlayPanel.addMouseWheelListener(mouser);

    //Add the spectrum and channel panels to the layered panel
    mLayeredPanel.add(mSpectrumPanel, new Integer(0), 0);
    mLayeredPanel.add(mOverlayPanel, new Integer(1), 0);

    //Create the waterfall
    mWaterfallPanel.addMouseListener(mouser);
    mWaterfallPanel.addMouseMotionListener(mouser);
    mWaterfallPanel.addMouseWheelListener(mouser);

	/* Attempt to set a 50/50 split preferred size for the split pane */
    double totalHeight = mLayeredPanel.getPreferredSize().getHeight() +
        mWaterfallPanel.getPreferredSize().getHeight();

    mLayeredPanel.setPreferredSize(new Dimension((int) mLayeredPanel
        .getPreferredSize().getWidth(), (int) (totalHeight / 2.0d)));

    mWaterfallPanel.setPreferredSize(new Dimension((int) mWaterfallPanel
        .getPreferredSize().getWidth(), (int) (totalHeight / 2.0d)));

    //Create the split pane to hold the layered pane and the waterfall
    JideSplitPane splitPane = new JideSplitPane(JSplitPane.VERTICAL_SPLIT);
    splitPane.setDividerSize(5);
    splitPane.add(mLayeredPanel);
    splitPane.add(mWaterfallPanel);

    mScrollPane = new JScrollPane(splitPane);

    add(mScrollPane, "grow");

    /**
     * Setup DFTProcessor to process samples and register the waterfall and
     * spectrum panel to receive the processed dft results
     */
    mDFTProcessor = new DFTProcessor(SampleType.COMPLEX);
    mDFTConverter = new ComplexDecibelConverter();
    mDFTProcessor.addConverter(mDFTConverter);

    mDFTConverter.addListener((DFTResultsListener) mSpectrumPanel);
    mDFTConverter.addListener((DFTResultsListener) mWaterfallPanel);
}
 
开发者ID:DSheirer,项目名称:sdrtrunk,代码行数:62,代码来源:SpectralDisplayPanel.java


示例12: init

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
private void init()
{
    setLayout(new MigLayout("insets 0 0 0 0 ", "[grow,fill]", "[grow,fill]"));

    mBroadcastStatusPanel = new BroadcastStatusPanel(mBroadcastModel);

    mBroadcastStatusPanel.getTable().setAutoCreateRowSorter(true);
    mBroadcastStatusPanel.getTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    mBroadcastStatusPanel.getTable().getSelectionModel().addListSelectionListener(BroadcastPanel.this);

    JPanel buttonsPanel = new JPanel();
    buttonsPanel.setLayout(new MigLayout("insets 0 0 0 0", "[grow,fill][grow,fill][grow,fill]", "[]"));

    mNewButton = new JButton("New ...");
    mNewButton.setToolTipText("Create a new broadcast audio configuration");
    mNewButton.addMouseListener(new MouseAdapter()
    {
        @Override
        public void mouseClicked(MouseEvent e)
        {
            JPopupMenu menu = new JPopupMenu();

            menu.add(new AddBroadcastConfigurationItem(BroadcastServerType.BROADCASTIFY));
            menu.add(new AddBroadcastConfigurationItem(BroadcastServerType.ICECAST_TCP));
            menu.add(new AddBroadcastConfigurationItem(BroadcastServerType.ICECAST_HTTP));
            menu.add(new AddBroadcastConfigurationItem(BroadcastServerType.SHOUTCAST_V1));
            menu.add(new AddBroadcastConfigurationItem(BroadcastServerType.SHOUTCAST_V2));

            menu.show(e.getComponent(), e.getX(), e.getY());
        }
    });

    buttonsPanel.add(mNewButton);

    mCopyButton.addActionListener(this);
    mCopyButton.setEnabled(false);
    mCopyButton.setToolTipText("Creates a copy of the currently selected streaming configuration and adds it");
    buttonsPanel.add(mCopyButton);

    mDeleteButton.addActionListener(this);
    mDeleteButton.setEnabled(false);
    mDeleteButton.setToolTipText("Deletes the currently selected streaming configuration");
    buttonsPanel.add(mDeleteButton);

    JPanel listAndButtonsPanel = new JPanel();

    listAndButtonsPanel.setLayout(new MigLayout("insets 0 0 0 0", "[grow,fill]", "[grow,fill][]"));

    listAndButtonsPanel.add(mBroadcastStatusPanel, "wrap");
    listAndButtonsPanel.add(buttonsPanel);

    mSplitPane = new JideSplitPane(JideSplitPane.HORIZONTAL_SPLIT);
    mSplitPane.setDividerSize(5);
    mSplitPane.setShowGripper(true);
    mSplitPane.add(listAndButtonsPanel);

    mSplitPane.add(mEditor);

    add(mSplitPane);
}
 
开发者ID:DSheirer,项目名称:sdrtrunk,代码行数:61,代码来源:BroadcastPanel.java


示例13: createGui

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
/**
 * Sets up all the splitters and other minor GUI elements of the graph panel.
 */
private void createGui() {
  m_graphSplitter = new JideSplitPane() {
    private static final long serialVersionUID = -4363828908016863289L;

    // ESCA-JAVA0025: Workaround for Case 1168
    @Override
    public void updateUI() {
      // Workaround for Case 1168: The mere presence of a JIDE component
      // screws up the look and feel.
    }
  };

  m_graphSplitter.setOrientation(JideSplitPane.VERTICAL_SPLIT);

  m_graphSplitter.addPane(m_centerPanel);
  m_graphSplitter.addPane(m_bottomPanel);

  m_graphTaggingSplitter = new JideSplitPane() {
    private static final long serialVersionUID = -9037540212052390552L;

    // ESCA-JAVA0025: Workaround for Case 1168
    @Override
    public void updateUI() {
      // Workaround for Case 1168: The mere presence of a JIDE component
      // screws up the look and feel.
    }
  };

  m_graphTaggingSplitter.setOrientation(JideSplitPane.HORIZONTAL_SPLIT);
  m_graphTaggingSplitter.addPane(m_leftPanel);
  m_graphTaggingSplitter.addPane(m_graphSplitter);
  m_graphTaggingSplitter.addPane(m_rightPanel);

  m_graphTaggingSplitter.setDoubleBuffered(true);
  m_graphTaggingSplitter.setOneTouchExpandable(true);
  m_graphTaggingSplitter.setMinimumSize(new Dimension(0, 0));

  m_graphSplitter.setDoubleBuffered(true);
  m_graphSplitter.setOneTouchExpandable(true);
  m_graphSplitter.setMinimumSize(new Dimension(0, 0));

  add(m_graphTaggingSplitter);

  add(m_toolBar, BorderLayout.NORTH);
}
 
开发者ID:google,项目名称:binnavi,代码行数:49,代码来源:CGraphPanel.java


示例14: AttackTargetFilterPanel

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
/**
 * Creates new form AttackSourcePanel
 */
AttackTargetFilterPanel() {
    initComponents();
    jXCollapsiblePane1.setLayout(new BorderLayout());
    jXCollapsiblePane1.add(jInfoScrollPane, BorderLayout.CENTER);
    jVillageTable.setModel(new TAPTargetFilterTableModel());
    jVillageTable.setHighlighters(HighlighterFactory.createAlternateStriping(Constants.DS_ROW_A, Constants.DS_ROW_B));
    jInfoTextPane.setText(GENERAL_INFO);

    jideSplitPane1.setOrientation(JideSplitPane.VERTICAL_SPLIT);
    jideSplitPane1.setProportionalLayout(true);
    jideSplitPane1.setDividerSize(5);
    jideSplitPane1.setShowGripper(true);
    jideSplitPane1.setOneTouchExpandable(true);
    jideSplitPane1.setDividerStepSize(10);
    jideSplitPane1.setInitiallyEven(true);
    jideSplitPane1.add(jFilterPanel, JideBoxLayout.FLEXIBLE);
    jideSplitPane1.add(jVillagePanel, JideBoxLayout.VARY);
    jideSplitPane1.getDividerAt(0).addMouseListener(new MouseAdapter() {

        @Override
        public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() == 2) {
                jideSplitPane1.setProportions(new double[]{0.5});
            }
        }
    });
    updateFilterPanel(new LinkedList<TAPAttackTargetElement>());
    overviewPanel = new VillageOverviewMapPanel();
    jPanel2.add(overviewPanel, BorderLayout.CENTER);
    AttackManager.getSingleton().addManagerListener(new GenericManagerListener() {

        @Override
        public void dataChangedEvent() {
            updateAttackList();
        }

        @Override
        public void dataChangedEvent(String pGroup) {
            dataChangedEvent();
        }
    });
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:46,代码来源:AttackTargetFilterPanel.java


示例15: AttackSourceFilterPanel

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
/**
 * Creates new form AttackSourcePanel
 */
AttackSourceFilterPanel() {
    initComponents();
    jXCollapsiblePane1.setLayout(new BorderLayout());
    jXCollapsiblePane1.add(jInfoScrollPane, BorderLayout.CENTER);
    jVillageTable.setModel(new TAPSourceFilterTableModel());
    jVillageTable.setHighlighters(HighlighterFactory.createAlternateStriping(Constants.DS_ROW_A, Constants.DS_ROW_B));
    jInfoTextPane.setText(GENERAL_INFO);

    jideSplitPane1.setOrientation(JideSplitPane.VERTICAL_SPLIT);
    jideSplitPane1.setProportionalLayout(true);
    jideSplitPane1.setDividerSize(5);
    jideSplitPane1.setShowGripper(true);
    jideSplitPane1.setOneTouchExpandable(true);
    jideSplitPane1.setDividerStepSize(10);
    jideSplitPane1.setInitiallyEven(true);
    jideSplitPane1.add(jFilterPanel, JideBoxLayout.FLEXIBLE);
    jideSplitPane1.add(jVillagePanel, JideBoxLayout.VARY);
    jideSplitPane1.getDividerAt(0).addMouseListener(new MouseAdapter() {

        @Override
        public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() == 2) {
                jideSplitPane1.setProportions(new double[]{0.5});
            }
        }
    });
    troopFilterDialog = new TroopFilterDialog(new JFrame(), true);
    updateFilterPanel(new LinkedList<TAPAttackSourceElement>());
    overviewPanel = new VillageOverviewMapPanel();
    jPanel2.add(overviewPanel, BorderLayout.CENTER);
    AttackManager.getSingleton().addManagerListener(new GenericManagerListener() {

        @Override
        public void dataChangedEvent() {
            updateAttackList();
        }

        @Override
        public void dataChangedEvent(String pGroup) {
            dataChangedEvent();
        }
    });
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:47,代码来源:AttackSourceFilterPanel.java


示例16: RetimerSourceFilterPanel

import com.jidesoft.swing.JideSplitPane; //导入依赖的package包/类
/**
 * Creates new form AttackSourcePanel
 */
RetimerSourceFilterPanel() {
    initComponents();
    jXCollapsiblePane1.setLayout(new BorderLayout());
    jXCollapsiblePane1.add(jInfoScrollPane, BorderLayout.CENTER);
    jVillageTable.setModel(new RETSourceFilterTableModel());
    jVillageTable.setHighlighters(HighlighterFactory.createAlternateStriping(Constants.DS_ROW_A, Constants.DS_ROW_B));
    jInfoTextPane.setText(GENERAL_INFO);

    jideSplitPane1.setOrientation(JideSplitPane.VERTICAL_SPLIT);
    jideSplitPane1.setProportionalLayout(true);
    jideSplitPane1.setDividerSize(5);
    jideSplitPane1.setShowGripper(true);
    jideSplitPane1.setOneTouchExpandable(true);
    jideSplitPane1.setDividerStepSize(10);
    jideSplitPane1.setInitiallyEven(true);
    jideSplitPane1.add(jFilterPanel, JideBoxLayout.FLEXIBLE);
    jideSplitPane1.add(jVillagePanel, JideBoxLayout.VARY);
    jideSplitPane1.getDividerAt(0).addMouseListener(new MouseAdapter() {

        @Override
        public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() == 2) {
                jideSplitPane1.setProportions(new double[]{0.5});
            }
        }
    });
    troopFilterDialog = new TroopFilterDialog(new JFrame(), true);
    updateFilterPanel(new LinkedList<RETSourceElement>());
    overviewPanel = new VillageOverviewMapPanel();
    jPanel2.add(overviewPanel, BorderLayout.CENTER);
    AttackManager.getSingleton().addManagerListener(new GenericManagerListener() {

        @Override
        public void dataChangedEvent() {
            updateAttackList();
        }

        @Override
        public void dataChangedEvent(String pGroup) {
            dataChangedEvent();
        }
    });
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:47,代码来源:RetimerSourceFilterPanel.java



注:本文中的com.jidesoft.swing.JideSplitPane类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ContentSummaryComputationContext类代码示例发布时间:2022-05-22
下一篇:
Java FormField类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap