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

Profile: desktop, common

Overview

A Drop-in replacement for Rectangle that will resize to fit the bounds of the container. The preferred width and height can be easily set by providing an initial value for the width and height variables, otherwise they will both default to 200.

Unlike a normal Rectangle, the Stroke will always fall within the bounds provided. This ensures that when added to a Container, the size of this ResizableRectangle will not exceed its allocated space regardless of the stroke width.

See javafx.scene.shape.Rectangle for full documentation. This class follows a delegation pattern to avoid name collisions on Rectangle and Resizable.

Profile: common

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicarcHeightNumber
publicarcWidthNumber
publicfillPaint
publicsmoothBoolean
publicstrokePaint
publicstrokeDashArrayNumber[]
publicstrokeDashOffsetNumber
publicstrokeLineCapStrokeLineCap
publicstrokeLineJoinStrokeLineJoin
publicstrokeMiterLimitNumber
publicstrokeWidthNumber
publicxNumber
publicyNumber

Inherited Variables

org.jfxtras.scene.layout.DefaultLayout

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
public-read protecteddefaultLayoutInfoLayoutInfoBasesubclasssubclass

The default layout info for this Node.

The default layout info for this Node.

Usually this will be initialized by the Node subclass to a static LayoutInfo for all instances. Any values set on this will override the default Constraint values.

 

Inherited Functions