Top Description Fields Constructors Methods
com.sun.jfx.incubator.scene.control.richtext

public Class ImageCellPane

extends Pane
Class Inheritance
Imports
javafx.geometry.HPos, .Insets, .VPos, javafx.scene.image.Image, .ImageView, javafx.scene.layout.Pane

Content pane for RichParagraph that shows a single image. The image gets resized if it cannot fit into available width.

Field Summary

Modifier and TypeField and Description
private final Image
private final ImageView
private static final Insets

Constructor Summary

AccessConstructor and Description
public
ImageCellPane(Image
the image
image
)

The constructor.

Method Summary

Modifier and TypeMethod and Description
protected double
computePrefHeight(double
the width that should be used if preferred height depends on it
w
)

Overrides javafx.scene.layout.Region.computePrefHeight.

Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy.

protected void
layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

Inherited from javafx.scene.layout.Pane:
getChildren

Field Detail

imageback to summary
private final Image image
imageViewback to summary
private final ImageView imageView
PADDINGback to summary
private static final Insets PADDING

Constructor Detail

ImageCellPaneback to summary
public ImageCellPane(Image image)

The constructor.

Parameters
image:Image

the image

Method Detail

computePrefHeightback to summary
protected double computePrefHeight(double w)

Overrides javafx.scene.layout.Region.computePrefHeight.

Doc from javafx.scene.layout.Region.computePrefHeight.

Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.

Parameters
w:double

Doc from javafx.scene.Parent.computePrefHeight.

the width that should be used if preferred height depends on it

Returns:double

the computed preferred height for this region

Annotations
@Override
layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Doc from javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override