public final class LayoutConstraintsDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
static double |
FLEXIBLE_PREF |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
boolean |
equals(Object obj) |
void |
firePropertyChange(PropertyChangeSupport propertyChangeSupport,
String propertyName,
double oldValue,
double newValue) |
static LayoutConstraintsDescriptor |
flexible() |
static LayoutConstraintsDescriptor |
getLayoutConstraints(double prefWidth,
double prefHeight)
Gets a LayoutConstraintsDescriptor with the specified preferred width and preferred height
|
double |
getPrefHeight()
Gets the preferred height of the Docking Area.
|
double |
getPrefWidth()
Gets the preferred width of the Docking Area.
|
int |
hashCode() |
static boolean |
isFlexible(double size) |
static boolean |
isPreferred(double size) |
static LayoutConstraintsDescriptor |
prefHeight(double prefHeight) |
static LayoutConstraintsDescriptor |
prefWidth(double prefWidth) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
setPrefHeight(double prefHeight) |
void |
setPrefWidth(double prefWidth) |
String |
toString() |
public static final double FLEXIBLE_PREF
public static LayoutConstraintsDescriptor getLayoutConstraints(double prefWidth, double prefHeight)
prefWidth
- the preferred width of the Docking Area. Can be negative to indicate a flexible width.prefHeight
- the preferred height of the Docking Area. Can be negative to indicate a flexible height.public static LayoutConstraintsDescriptor prefWidth(double prefWidth)
public static LayoutConstraintsDescriptor prefHeight(double prefHeight)
public static LayoutConstraintsDescriptor flexible()
public double getPrefWidth()
public void setPrefWidth(double prefWidth)
public double getPrefHeight()
public void setPrefHeight(double prefHeight)
public void firePropertyChange(PropertyChangeSupport propertyChangeSupport, String propertyName, double oldValue, double newValue)
public static boolean isFlexible(double size)
public static boolean isPreferred(double size)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
Copyright © 2012–2017 Drombler. All rights reserved.