Package org.jmule.ui.swt.common

Examples of org.jmule.ui.swt.common.CountryFlagPainter


     
      if (!CountryLocator.getInstance().isServiceDown()) {
       
        Image image = SWTImageRepository.getFlagByAddress(object.getIP(),FlagSize.S25x15);
       
        CountryFlagPainter painter = new CountryFlagPainter(image);
        TableItemCountryFlag table_item_painter = new TableItemCountryFlag(SWTPreferences.getDefaultColumnOrder(SWTConstants.DOWNLOAD_PEER_LIST_FLAG_COLUMN_ID),painter);
        addCustumControl(getItemCount()-1, table_item_painter);
    }
     
    }
View Full Code Here


    public void addRow(Peer object) {
      super.addRow(object);
      if (!CountryLocator.getInstance().isServiceDown()) {
        Image image = SWTImageRepository.getFlagByAddress(object.getIP(),FlagSize.S25x15);
       
        CountryFlagPainter painter = new CountryFlagPainter(image);
        TableItemCountryFlag table_item_painter = new TableItemCountryFlag(SWTPreferences.getDefaultColumnOrder(SWTConstants.UPLOAD_PEER_LIST_FLAG_COLUMN_ID),painter);
        addCustumControl(getItemCount()-1, table_item_painter);
      }
    }
View Full Code Here

    addRow(server);
   
    if (!CountryLocator.getInstance().isServiceDown()) {
        Image image = SWTImageRepository.getFlagByAddress(server.getAddress(),default_flag_size);
       
        CountryFlagPainter painter = new CountryFlagPainter(image);
       
        TableItemCountryFlag table_item_painter = new TableItemCountryFlag(SWTPreferences.getDefaultColumnOrder(SWTConstants.SERVER_LIST_FLAG_COLUMN_ID),painter);
        addCustumControl(getItemCount()-1, table_item_painter);
    }
   
View Full Code Here

  public void draw(GC gc, int x, int y, int width, int height) {
    painter.draw(gc, x, y, width, height);
  }

  public void setData(BufferedTableRowCustomControl customControl) {
    CountryFlagPainter country_flag_painter = (CountryFlagPainter) customControl.getControl();
    painter.setData(country_flag_painter.getData());
  }
View Full Code Here

TOP

Related Classes of org.jmule.ui.swt.common.CountryFlagPainter

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.