APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.scene.control

public final Enum OverrunStyle

extends Enum<OverrunStyle>
Class Inheritance

Defines the behavior of a labeled Control when the space for rendering the text is smaller than the space needed to render the entire string.
Since
JavaFX 2.0

Field Summary

Modifier and TypeField and Description
public static final OverrunStyle
CENTER_ELLIPSIS

Trims out the center of the string being displayed and replaces the middle three characters with "...".

public static final OverrunStyle
CENTER_WORD_ELLIPSIS

Same as CENTER_ELLIPSIS but ensures that the "..." occurs between full words.

public static final OverrunStyle
CLIP

Any text which exceeds the bounds of the label will be clipped.

public static final OverrunStyle
ELLIPSIS

If the text of the label exceeds the bounds of the label, then the last three characters which can be displayed will be "...".

public static final OverrunStyle
LEADING_ELLIPSIS

Same as ELLIPSIS but puts the "..." at the beginning of the text instead of at the end

public static final OverrunStyle
LEADING_WORD_ELLIPSIS

Same as WORD_ELLIPSIS but puts the "..." at the beginning of the text instead of at the end

public static final OverrunStyle
WORD_ELLIPSIS

Same as ELLIPSIS, but first removes any partial words at the label boundary and then applies the ellipsis.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static OverrunStyle
public static OverrunStyle[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CENTER_ELLIPSISback to summary
public static final OverrunStyle CENTER_ELLIPSIS

Trims out the center of the string being displayed and replaces the middle three characters with "...". The first and last characters of the string are always displayed in the label, unless the label becomes so short that it cannot display anything other than the ellipsis.

CENTER_WORD_ELLIPSISback to summary
public static final OverrunStyle CENTER_WORD_ELLIPSIS

Same as CENTER_ELLIPSIS but ensures that the "..." occurs between full words. If the label becomes so short that it is not possible to trim any additional words, then partial words are displayed and this behaves the same as CENTER_ELLIPSIS

CLIPback to summary
public static final OverrunStyle CLIP

Any text which exceeds the bounds of the label will be clipped.

ELLIPSISback to summary
public static final OverrunStyle ELLIPSIS

If the text of the label exceeds the bounds of the label, then the last three characters which can be displayed will be "...". If the label is too short to even display that, then only as many "." as possible will be shown.

LEADING_ELLIPSISback to summary
public static final OverrunStyle LEADING_ELLIPSIS

Same as ELLIPSIS but puts the "..." at the beginning of the text instead of at the end

LEADING_WORD_ELLIPSISback to summary
public static final OverrunStyle LEADING_WORD_ELLIPSIS

Same as WORD_ELLIPSIS but puts the "..." at the beginning of the text instead of at the end

WORD_ELLIPSISback to summary
public static final OverrunStyle WORD_ELLIPSIS

Same as ELLIPSIS, but first removes any partial words at the label boundary and then applies the ellipsis. This ensures that the last characters displayed prior to the ellipsis are part of a full word. Where a full word cannot be displayed, this acts like ELLIPSIS and displays as many characters as possible.

Constructor Detail

OverrunStyleback to summary
private OverrunStyle()

Method Detail

valueOfback to summary
public static OverrunStyle valueOf(String name)
valuesback to summary
public static OverrunStyle[] values()