Spec-Zone .ru
спецификации, руководства, описания, API

JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

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.

Field Summary

accessnametypedescription
public static finalCENTER_ELLIPSESOverrunStyle

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

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 ellipses.

 
public static finalCENTER_WORD_ELLIPSESOverrunStyle

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

Same as CENTER_ELLIPSES 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_ELLIPSES

 
public static finalCLIPOverrunStyle

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

public static finalELLIPSESOverrunStyle

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 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.

 
public static finalLEADING_ELLIPSESOverrunStyle

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

public static finalLEADING_WORD_ELLIPSESOverrunStyle

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

public static finalWORD_ELLIPSESOverrunStyle

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

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

 

Inherited Variables

Method Summary

public static OverrunStyle valueOf(java.lang.String name)
Parameters
name
Returns
OverrunStyle
 
public static OverrunStyle[] values()
Returns
OverrunStyle[]
 

Inherited Functions