Top Description Inners Fields Constructors Methods
com.sun.javafx.scene.layout.region

public Class Margins

extends Object
Class Inheritance
Imports
javafx.scene.text.Font, javafx.css.Size, .SizeUnits, .ParsedValue, .StyleConverter, com.sun.javafx.logging.PlatformLogger, .PlatformLogger.Level

Similar to Insets but with flag denoting values are proportional. If proportional is true, then the values represent fractions or percentages and are in the range 0..1, although this is not enforced.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Margins.Converter

Convert a sequence of sizes to an Margins

private static class
public static class
Margins.SequenceConverter

Convert a sequence of sizes to an Insets

Field Summary

Modifier and TypeField and Description
pack-priv final double
pack-priv final double
pack-priv final boolean
pack-priv final double
pack-priv final double

Constructor Summary

AccessConstructor and Description
public
Margins(double top, double right, double bottom, double left, boolean proportional)

Method Summary

Modifier and TypeMethod and Description
public final double
public final double
public final double
public final double
public final boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

bottomback to summary
pack-priv final double bottom
leftback to summary
pack-priv final double left
proportionalback to summary
pack-priv final boolean proportional
topback to summary
pack-priv final double top

Constructor Detail

Marginsback to summary
public Margins(double top, double right, double bottom, double left, boolean proportional)

Method Detail

getBottomback to summary
public final double getBottom()
getLeftback to summary
public final double getLeft()
getRightback to summary
public final double getRight()
getTopback to summary
public final double getTop()
isProportionalback to summary
public final boolean isProportional()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
com.sun.javafx.scene.layout.region back to summary

public final Class Margins.Converter

extends StyleConverter<ParsedValue<V, T>[], Margins>
Class Inheritance

Convert a sequence of sizes to an Margins

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Margins
convert(ParsedValue<ParsedValue<V, T>[], Margins>
The ParsedValue to convert
value
,
Font
The Font to use when converting a relative value.
font
)

Overrides javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

public static Margins.Converter
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

Converterback to summary
private Converter()

Method Detail

convertback to summary
public Margins convert(ParsedValue<ParsedValue<V, T>[], Margins> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

Parameters
value:ParsedValue<ParsedValue<V, T>[], Margins>

The ParsedValue to convert

font:Font

The Font to use when converting a relative value.

Returns:Margins

the converted target property type

Annotations
@Override
getInstanceback to summary
public static Margins.Converter getInstance()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
com.sun.javafx.scene.layout.region back to summary

private Class Margins.Holder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static Margins.Converter
pack-priv static Margins.SequenceConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONVERTER_INSTANCEback to summary
pack-priv static Margins.Converter CONVERTER_INSTANCE
SEQUENCE_CONVERTER_INSTANCEback to summary
pack-priv static Margins.SequenceConverter SEQUENCE_CONVERTER_INSTANCE

Constructor Detail

Holderback to summary
private Holder()
com.sun.javafx.scene.layout.region back to summary

public final Class Margins.SequenceConverter

extends StyleConverter<ParsedValue<ParsedValue<V, T>[], Margins>[], Margins[]>
Class Inheritance

Convert a sequence of sizes to an Insets

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Margins[]
convert(ParsedValue<ParsedValue<ParsedValue<V, T>[], Margins>[], Margins[]>
The ParsedValue to convert
value
,
Font
The Font to use when converting a relative value.
font
)

Overrides javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

public static Margins.SequenceConverter
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

SequenceConverterback to summary
private SequenceConverter()

Method Detail

convertback to summary
public Margins[] convert(ParsedValue<ParsedValue<ParsedValue<V, T>[], Margins>[], Margins[]> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

Parameters
value:ParsedValue<ParsedValue<ParsedValue<V, T>[], Margins>[], Margins[]>

The ParsedValue to convert

font:Font

The Font to use when converting a relative value.

Returns:Margins[]

the converted target property type

Annotations
@Override
getInstanceback to summary
public static Margins.SequenceConverter getInstance()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override