Examples of Graphic


Examples of org.gudy.azureus2.plugins.ui.Graphic

      dispose(cell);
  }

  public void dispose(TableCell cell) {
    // only dispose of image here, this method is reused in other methods
    Graphic graphic = cell.getGraphic();
    if (graphic instanceof UISWTGraphic)
    {
      final Image img = ((UISWTGraphic) graphic).getImage();
      if (img != null && !img.isDisposed())
        img.dispose();
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.Graphic

      }
     
      String custom_title = az_menuitem.getText();
      menuItem.setText(custom_title);

      Graphic g = az_menuitem.getGraphic();
      if (g instanceof UISWTGraphic) {
        Utils.setMenuItemImage(menuItem, ((UISWTGraphic) g).getImage());
      }

      menuItem.setEnabled(enable_items && az_menuitem.isEnabled());
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.Graphic

      final DiskManager manager = fileInfo.getDiskManager();
      // we want to run through the image part once one the transition from with a disk manager (running)
      // to without a disk manager (stopped) in order to clear the pieces view
      boolean running = manager != null;
      boolean hasGraphic = false;
      Graphic graphic = cell.getGraphic();
      if (graphic instanceof UISWTGraphic) {
        Image img = ((UISWTGraphic) graphic).getImage();
        hasGraphic = img != null && !img.isDisposed();
      }
      final boolean bImageBufferValid = (lastPercentDone == percentDone)
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.Graphic

    }
    gcImage.dispose();
   
    Image oldImage = null;
    Graphic graphic = cell.getGraphic();
    if (graphic instanceof UISWTGraphic) {
      oldImage = ((UISWTGraphic)graphic).getImage();
    }

    if (cell instanceof TableCellSWT) {
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.Graphic

      Debug.printStackTrace(e);
    }
    gcImage.dispose();

    Image oldImage = null;
    Graphic graphic = cell.getGraphic();
    if (graphic instanceof UISWTGraphic) {
      oldImage = ((UISWTGraphic) graphic).getImage();
    }
    if (bImageChanged || image != oldImage || !cell.isValid()) {
      if (cell instanceof TableCellSWT) {
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.Graphic

  }

  // @see org.gudy.azureus2.plugins.ui.tables.TableCellDisposeListener#dispose(org.gudy.azureus2.plugins.ui.tables.TableCell)
  public void dispose(TableCell cell) {
    mapCellLastPercentDone.remove(cell);
    Graphic graphic = cell.getGraphic();
    if (graphic instanceof UISWTGraphic) {
      Image img = ((UISWTGraphic) graphic).getImage();
      if (img != null && !img.isDisposed()) {
        img.dispose();
      }
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.Graphic

      int cellWidth = cell.getWidth();
      int cellHeight = cell.getHeight();

      Image image = null;
      Graphic graphic = cell.getGraphic();
      if (graphic instanceof UISWTGraphic) {
        image = ((UISWTGraphic)graphic).getImage();
      }
      if (image != null) {
        Rectangle bounds = image.getBounds();
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.Graphic

        refresh(cell, true);
      }
    }

    private void disposeExisting(TableCell cell) {
      Graphic oldGraphic = cell.getGraphic();
      //log(cell, oldGraphic);
      if (oldGraphic instanceof UISWTGraphic) {
        Image oldImage = ((UISWTGraphic) oldGraphic).getImage();
        if (oldImage != null && !oldImage.isDisposed()) {
          //log(cell, "dispose");
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.Graphic

    if (dm != null) {
      comment = dm.getDownloadState().getUserComment();
      if (comment!=null && comment.length()==0) {comment = null;}
    }
   
    Graphic oldGraphic = cell.getGraphic();
    if (comment == null && oldGraphic != noGraphicComment) {
      cell.setGraphic(noGraphicComment);
      cell.setSortValue(null);
    }
    else if (comment != null && oldGraphic != graphicComment) {
View Full Code Here

Examples of org.opengis.style.Graphic

    public static Color pointFillWithAlpha( PointSymbolizer symbolizer ) {
        if (symbolizer == null) {
            return null;
        }

        Graphic graphic = symbolizer.getGraphic();
        if (graphic == null) {
            return null;
        }

        for( GraphicalSymbol gs : graphic.graphicalSymbols() ) {
            if ((gs != null) && (gs instanceof Mark)) {
                Mark mark = (Mark) gs;
                Fill fill = mark.getFill();
                if (fill != null) {
                    Color colour = color(fill.getColor());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.