Package com.iizigo.prop.editor.dialog
Class ImageDefinitionFilter
java.lang.Object
org.eclipse.jface.viewers.ViewerFilter
com.iizigo.prop.editor.dialog.SelectPropViewerFilter
com.iizigo.prop.editor.dialog.ImageDefinitionFilter
ImageDefinition filter that enables to choose a bitmap or icon image. Bitmaps can be a single image or multiple. The CSS background image attribute may also be verified. The image can be a font icon image or of SVG type, optionally also requiring the image to be SVG.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionThe constructor for any type of image: single, styled, multiple or font icon, but not an SVG and the image will not be used as CSS background image.ImageDefinitionFilter(boolean isSingle) Constructor for just single, multiple image bitmap definition or a font icon.ImageDefinitionFilter(boolean isSingle, boolean bgImage) Constructor for single or multiple image bitmap definition, possibly used for as CSS background image.ImageDefinitionFilter(boolean isSingle, boolean bgImage, boolean allowSVG) Constructor for single or multiple image bitmap definition, possibly used for as CSS background image, also SVG format might be supported.ImageDefinitionFilter(boolean isSingle, boolean bgImage, boolean allowSVG, boolean onlySVG) Constructor for single or multiple image bitmap definition, possibly used for as CSS background image, also SVG format might be supported.Method Summary
Methods inherited from class com.iizigo.prop.editor.dialog.SelectPropViewerFilter
add, addFilter, isValidSelection, select, setValidModulesMethods inherited from class org.eclipse.jface.viewers.ViewerFilter
filter, filter, isFilterProperty
Constructor Details
ImageDefinitionFilter
public ImageDefinitionFilter()The constructor for any type of image: single, styled, multiple or font icon, but not an SVG and the image will not be used as CSS background image.ImageDefinitionFilter
public ImageDefinitionFilter(boolean isSingle) Constructor for just single, multiple image bitmap definition or a font icon.- Parameters:
isSingle- A single image definition. A single image definition might also be a font icon whenisSingle=true.
ImageDefinitionFilter
public ImageDefinitionFilter(boolean isSingle, boolean bgImage) Constructor for single or multiple image bitmap definition, possibly used for as CSS background image.- Parameters:
isSingle- A single image definition. A single image definition might also be a font icon as long asbgImage=false.bgImage- Flag indicating the image should be used as CSS background image.
ImageDefinitionFilter
public ImageDefinitionFilter(boolean isSingle, boolean bgImage, boolean allowSVG) Constructor for single or multiple image bitmap definition, possibly used for as CSS background image, also SVG format might be supported.- Parameters:
isSingle- A single image definition. A single image definition might also be a font icon as long asbgImage=false.bgImage- Flag indicating the image should be used as CSS background image.allowSVG- Flag indicating that images as SVG type is allowed.
ImageDefinitionFilter
public ImageDefinitionFilter(boolean isSingle, boolean bgImage, boolean allowSVG, boolean onlySVG) Constructor for single or multiple image bitmap definition, possibly used for as CSS background image, also SVG format might be supported. When theonlySVGflag istrue, it is assumed thatisSingle=true,bgImage=false,allowSVG=true.- Parameters:
isSingle- A single image definition.bgImage- Flag indicating the image should be used as CSS background image.allowSVG- Flag indicating that images as SVG type is allowed.onlySVG- Flag indicating the image must be an SVG only. If this is true,allowSVGwill be set totrueandisSingle, bbImagewill be set tofalse.
Method Details
isValid
Checks for a valid class in this property of its children.- Overrides:
isValidin classSelectPropViewerFilter