Package view

Examples of view.SchemeSetView


    // Create main area
    viewBoard = new BoardView();
    viewBoard.addBoardViewListener(this);
    viewBoard.setMode(BoardView.MODE_MOVING,0,0);
    this.getContentPane().add(viewBoard,BorderLayout.CENTER);
    viewFullSchemeSet = new SchemeSetView(SCHEME_FULL_ICON_SIZE,true,true);
    lsFullSchemeSet = new JList(viewFullSchemeSet);
    lsFullSchemeSet.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    lsFullSchemeSet.setLayoutOrientation(JList.HORIZONTAL_WRAP);
    lsFullSchemeSet.setFixedCellHeight(SCHEME_FULL_ICON_SIZE+2);
    lsFullSchemeSet.setFixedCellWidth(SCHEME_FULL_ICON_SIZE+2);
    lsFullSchemeSet.setVisibleRowCount(-1);
    lsFullSchemeSet.setBackground(Color.BLACK);
    lsFullSchemeSet.setSelectionBackground(Color.WHITE);
    lsFullSchemeSet.setSelectionForeground(Color.WHITE);
    lsFullSchemeSet.addListSelectionListener(this);
    lsFullSchemeSet.addMouseListener(this);
    spFullSchemeSet = new JScrollPane(lsFullSchemeSet);
    spFullSchemeSet.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    spFullSchemeSet.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

    // Create bar interface
    plBar = new JPanel();
    plBar.setLayout(new GridBagLayout());
    plBar.setPreferredSize(new Dimension(220,0));
    plBar.setBackground(Color.BLACK);
    plBar.setBorder(BorderFactory.createLoweredBevelBorder());
    this.getContentPane().add(plBar,BorderLayout.EAST);
    GridBagConstraints c = new GridBagConstraints();
    c.fill = GridBagConstraints.HORIZONTAL;
    c.weightx = 1;
    c.weighty = 0;
    c.gridx = 0;
    c.anchor = GridBagConstraints.NORTH;
    c.gridwidth = 2;

    btSchemeList = new JToggleButton();
    btSchemeList.addActionListener(this);
    plBar.add(btSchemeList,c);
   
    viewSchemeSet = new SchemeSetView(SCHEME_ICON_SIZE,false,false);
    lsSchemeSet = new JList(viewSchemeSet);
    lsSchemeSet.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    lsSchemeSet.setLayoutOrientation(JList.HORIZONTAL_WRAP);
    lsSchemeSet.setFixedCellHeight(SCHEME_ICON_SIZE+2);
    lsSchemeSet.setFixedCellWidth(SCHEME_ICON_SIZE+2);
View Full Code Here

TOP

Related Classes of view.SchemeSetView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.