APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.jfx.incubator.scene.control.richtext

public Class EmbeddedImageHelper

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, com.sun.javafx.util.Utils, jfx.incubator.scene.control.richtext.RichTextArea, jfx.incubator.scene.control.richtext.model.EmbeddedImage

Helper for the EmbeddedImage class.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private static EmbeddedImageHelper.Accessor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static EmbeddedImage
create(byte[] bytes, double width, double height, double targetWidth, double targetHeight, boolean keepAspectRatio)

Creates an EmbeddedImage without making defensive copy of the bytes.

public static byte[]
getBytes(EmbeddedImage im)

Returns the image bytes without making a defensive copy.

public static List<TextCell>
getVisibleTextCells(RichTextArea r)

Returns visible TextCells.

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessorback to summary
private static EmbeddedImageHelper.Accessor accessor

Constructor Detail

EmbeddedImageHelperback to summary
public EmbeddedImageHelper()

Method Detail

createback to summary
public static EmbeddedImage create(byte[] bytes, double width, double height, double targetWidth, double targetHeight, boolean keepAspectRatio)

Creates an EmbeddedImage without making defensive copy of the bytes.

getBytesback to summary
public static byte[] getBytes(EmbeddedImage im)

Returns the image bytes without making a defensive copy.

getVisibleTextCellsback to summary
public static List<TextCell> getVisibleTextCells(RichTextArea r)

Returns visible TextCells.

setAccessorback to summary
public static void setAccessor(EmbeddedImageHelper.Accessor a)
com.sun.jfx.incubator.scene.control.richtext back to summary

public Interface EmbeddedImageHelper.Accessor


Method Summary

Modifier and TypeMethod and Description
public EmbeddedImage
create(byte[] bytes, double width, double height, double targetWidth, double targetHeight, boolean keepAspectRatio)

public byte[]

Method Detail

createback to summary
public EmbeddedImage create(byte[] bytes, double width, double height, double targetWidth, double targetHeight, boolean keepAspectRatio)
getBytesback to summary
public byte[] getBytes(EmbeddedImage im)