RichTextModel.
| Modifier and Type | Class and Description |
|---|---|
| private class | EmbeddedImage.
Image Container with a fixed-size image. |
| private class | EmbeddedImage.
Image Container that tracks the document width. |
| Modifier and Type | Field and Description |
|---|---|
| public static final double | AUTO
Sentinel value which can be passed to either |
| private final byte[] | |
| public static final double | FIT_WIDTH
Sentinel value which can be passed to |
| public static final double | FIT_WIDTH_ALWAYS
Sentinel value which can be passed to |
| private final double | |
| private final boolean | |
| private final double | |
| private final double | |
| private final double |
| Access | Constructor and Description |
|---|---|
| private | EmbeddedImage(byte[] bytes, double width, double height, double targetWidth, double targetHeight, boolean keepAspectRatio)
Private constructor that DOES NOT make a defensive copy of the bytes. |
| Modifier and Type | Method and Description |
|---|---|
| public EmbeddedImage | Returns: the new instancethe new target width targetWidth, double the new target height targetHeight, boolean whether to keep the aspect ratio keepAspectRatio)Creates a copy of this |
| public Node | |
| public boolean | equals(Object x)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public double | |
| public double | Returns: the image target heightReturns the target image height specification: positive when specifying the final height,
or |
| public double | Returns: the image target widthReturns the target image width specification: positive when specifying the final width,
or |
| public double | |
| public int | |
| public boolean | Returns: true if the aspect ratio is preservedIndicates whether the aspect ratio of this image is preserved when scaling to fit the image within the document. |
| public static EmbeddedImage | Returns: the new instancethe image source bytes, double the original image width width, double the original image height height, double targetWidth, double the target image height, or targetHeight, boolean AUTOwhether to preserve the image aspect ratio keepAspectRatio)Creates a new EmbeddedImage instance while making a defensive copy of the |
| public String |
| AUTO | back to summary |
|---|---|
| public static final double AUTO Sentinel value which can be passed to either | |
| bytes | back to summary |
|---|---|
| private final byte[] bytes | |
| FIT_WIDTH | back to summary |
|---|---|
| public static final double FIT_WIDTH Sentinel value which can be passed to | |
| FIT_WIDTH_ALWAYS | back to summary |
|---|---|
| public static final double FIT_WIDTH_ALWAYS Sentinel value which can be passed to | |
| height | back to summary |
|---|---|
| private final double height | |
| keepAspectRatio | back to summary |
|---|---|
| private final boolean keepAspectRatio | |
| targetHeight | back to summary |
|---|---|
| private final double targetHeight | |
| targetWidth | back to summary |
|---|---|
| private final double targetWidth | |
| width | back to summary |
|---|---|
| private final double width | |
| EmbeddedImage | back to summary |
|---|---|
| private EmbeddedImage(byte[] bytes, double width, double height, double targetWidth, double targetHeight, boolean keepAspectRatio) Private constructor that DOES NOT make a defensive copy of the bytes. The only public method is EmbeddedImage.of() which does. | |
| copy | back to summary |
|---|---|
| public EmbeddedImage copy(double targetWidth, double targetHeight, boolean keepAspectRatio) Creates a copy of this
| |
| createNode | back to summary |
|---|---|
| public Node createNode() Creates the Node to be inserted into RichTextArea.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object x) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getHeight | back to summary |
|---|---|
| public double getHeight() Returns the original image height.
| |
| getTargetHeight | back to summary |
|---|---|
| public double getTargetHeight() Returns the target image height specification: positive when specifying the final height,
or
| |
| getTargetWidth | back to summary |
|---|---|
| public double getTargetWidth() Returns the target image width specification: positive when specifying the final width,
or
| |
| getWidth | back to summary |
|---|---|
| public double getWidth() Returns the original image width.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isKeepAspectRatio | back to summary |
|---|---|
| public boolean isKeepAspectRatio() Indicates whether the aspect ratio of this image is preserved when scaling to fit the image within the document.
| |
| of | back to summary |
|---|---|
| public static EmbeddedImage of(byte[] bytes, double width, double height, double targetWidth, double targetHeight, boolean keepAspectRatio) Creates a new EmbeddedImage instance while making a defensive copy of the
Any negative value passed to either
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Method and Description |
|---|---|
| private static double |
| Fixed | back to summary |
|---|---|
| public Fixed(Image im) | |
| normalize | back to summary |
|---|---|
| private static double normalize(double x) | |
| Modifier and Type | Method and Description |
|---|---|
| private double | |
| private double | |
| public void |
| view | back to summary |
|---|---|
| private final ImageView view | |
| Tracking | back to summary |
|---|---|
| public Tracking(Image im) | |
| computeFitHeight | back to summary |
|---|---|
| private double computeFitHeight() | |
| computeFitWidth | back to summary |
|---|---|
| private double computeFitWidth(double av) | |
| updateVFlowContext | back to summary |
|---|---|
| public void updateVFlowContext(VFlow f) Implements com. Doc from com. Invoked during
| |