eu.etaxonomy.cdm.api.utility
Class ImagesUtility

java.lang.Object
  extended by eu.etaxonomy.cdm.api.utility.ImagesUtility

public class ImagesUtility
extends Object

Version:
1.0
Author:
n.hoffmann

Field Summary
static int DOWN
           
static int UP
           
 
Constructor Summary
ImagesUtility()
           
 
Method Summary
static ImageFile addImagePart(DescriptionElementBase element)
          Deprecated. not used by EDITor anymore
static void addMediaToGallery(DescriptionBase description, Media media)
           
static void addTaxonImage(Taxon taxon, DescriptionBase<?> imageGallery, ImageFile imageFile)
          Deprecated. not used by EDITor anymore
static DescriptionElementBase createImageElement(ImageFile imageFile)
          Deprecated. not used by EDITor anymore
static DescriptionElementBase findImageElement(ImageFile image, Taxon taxon)
          Deprecated. not used by EDITor anymore
static ImageFile getImage(DescriptionElementBase element)
          Deprecated. not used by EDITor anymore
static Set<ImageFile> getImages(TaxonDescription description)
          Deprecated. not used by EDITor anymore
static List<ImageFile> getOrderedImages(DescriptionElementBase element)
          Deprecated. not used by EDITor anymore
static void moveImage(DescriptionElementBase element, ImageFile image, int direction)
          Deprecated. not used by EDITor anymore
static void removeImage(DescriptionElementBase element, ImageFile image)
          Deprecated. not used by EDITor anymore
static void removeMediaFromGallery(DescriptionBase description, Media media)
           
static void removeTaxonImage(Taxon taxon, DescriptionBase<?> imageGallery, ImageFile imageFile)
          Deprecated. not used by EDITor anymore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UP

public static final int UP
See Also:
Constant Field Values

DOWN

public static final int DOWN
See Also:
Constant Field Values
Constructor Detail

ImagesUtility

public ImagesUtility()
Method Detail

getImage

@Deprecated
public static ImageFile getImage(DescriptionElementBase element)
Deprecated. not used by EDITor anymore

Quick and dirty method to get an element's first image file.

Parameters:
element -
Returns:

getOrderedImages

@Deprecated
public static List<ImageFile> getOrderedImages(DescriptionElementBase element)
Deprecated. not used by EDITor anymore


getImages

@Deprecated
public static Set<ImageFile> getImages(TaxonDescription description)
Deprecated. not used by EDITor anymore

Parameters:
description -
Returns:

addTaxonImage

@Deprecated
public static void addTaxonImage(Taxon taxon,
                                            DescriptionBase<?> imageGallery,
                                            ImageFile imageFile)
Deprecated. not used by EDITor anymore

Parameters:
taxon -
imageFile -

createImageElement

@Deprecated
public static DescriptionElementBase createImageElement(ImageFile imageFile)
Deprecated. not used by EDITor anymore

Parameters:
imageFile -
Returns:

addImagePart

@Deprecated
public static ImageFile addImagePart(DescriptionElementBase element)
Deprecated. not used by EDITor anymore

Adds a new, empty image file to the end of a description element's ordered list of images.

Parameters:
element -
Returns:

removeTaxonImage

@Deprecated
public static void removeTaxonImage(Taxon taxon,
                                               DescriptionBase<?> imageGallery,
                                               ImageFile imageFile)
Deprecated. not used by EDITor anymore

Parameters:
taxon -
imageFile -

moveImage

@Deprecated
public static void moveImage(DescriptionElementBase element,
                                        ImageFile image,
                                        int direction)
Deprecated. not used by EDITor anymore

Parameters:
input -
selectedImage -
direction -

removeImage

@Deprecated
public static void removeImage(DescriptionElementBase element,
                                          ImageFile image)
Deprecated. not used by EDITor anymore

Parameters:
input -
selectedImage -

findImageElement

@Deprecated
public static DescriptionElementBase findImageElement(ImageFile image,
                                                                 Taxon taxon)
Deprecated. not used by EDITor anymore

Iterate through all taxon's image galleries until the descriptive element containing the ImageFile is found.

Parameters:
image -
taxon -
Returns:

addMediaToGallery

public static void addMediaToGallery(DescriptionBase description,
                                     Media media)
Parameters:
description -
media -

removeMediaFromGallery

public static void removeMediaFromGallery(DescriptionBase description,
                                          Media media)
Parameters:
description -
media -


Copyright © 2007-2013 EDIT. All Rights Reserved.