VectorImageResourceBase

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.editor.htmlcss.resources.images.IImageResource

public abstract class VectorImageResourceBase implements IImageResource

Base class for any supported vector image

Constructors

Constructor Description
VectorImageResourceBase()

Fields

Field Description
Disposed

Methods

Method Description
getName() Returns name of this vector image.
getFilenameWithExtension() Returns correct filename of this vector image, which consists of name and extension.
getAspectRatio() Returns aspect ratio of this vector image
getLinearDimensions() Returns linear dimensions of this vector image (width and height)
equals(IHtmlResource other) Checks this instance with specified on reference equality.
isDisposed() Determines whether this raster image is disposed or not
getType() In implementing type should return information about type of the vector image
getByteContent() In implementing type should return a content of this vector image as byte stream
getTextContent() In implementing type should return a content of this vector image in text form: base64-encoded of XML regarding of image type
save(String fullPathToFile) In implementing type should save this image to the disk by specified path
saveToPng(OutputStream outputPngContent) In implementing type should save a current vector image to the raster PNG format into specified byte stream
dispose() In implementing type should dispose this instance

VectorImageResourceBase()

public VectorImageResourceBase()

Disposed

public final Event<EventHandler> Disposed

getName()

public final String getName()

Returns name of this vector image. Usually doesn’t contain filename extension and theoretically can differ from filename.

Returns: java.lang.String

getFilenameWithExtension()

public final String getFilenameWithExtension()

Returns correct filename of this vector image, which consists of name and extension. Theoretically can differ from the name.

Returns: java.lang.String

getAspectRatio()

public final Ratio getAspectRatio()

Returns aspect ratio of this vector image

Returns: Ratio

getLinearDimensions()

public final Dimensions getLinearDimensions()

Returns linear dimensions of this vector image (width and height)

Returns: Dimensions

equals(IHtmlResource other)

public final boolean equals(IHtmlResource other)

Checks this instance with specified on reference equality.

Parameters:

Parameter Type Description
other IHtmlResource Other instance of vector image

Returns: boolean - True if are equal, false if are unequal

isDisposed()

public final boolean isDisposed()

Determines whether this raster image is disposed or not

Returns: boolean -

getType()

public abstract ImageType getType()

In implementing type should return information about type of the vector image

Returns: ImageType -

getByteContent()

public InputStream getByteContent()

In implementing type should return a content of this vector image as byte stream

Returns: java.io.InputStream -

getTextContent()

public abstract String getTextContent()

In implementing type should return a content of this vector image in text form: base64-encoded of XML regarding of image type

Returns: java.lang.String -

save(String fullPathToFile)

public abstract void save(String fullPathToFile)

In implementing type should save this image to the disk by specified path

Parameters:

Parameter Type Description
fullPathToFile java.lang.String

saveToPng(OutputStream outputPngContent)

public abstract void saveToPng(OutputStream outputPngContent)

In implementing type should save a current vector image to the raster PNG format into specified byte stream

Parameters:

Parameter Type Description
outputPngContent java.io.OutputStream Byte stream, into which the PNG version of this raster image will be stored. Should not be NULL and should support writing.

dispose()

public abstract void dispose()

In implementing type should dispose this instance