public class ComponentGeometry extends CayennePreference
| Modifier and Type | Field and Description |
|---|---|
static String |
GEOMETRY_PREF_KEY |
static String |
HEIGHT_PROPERTY |
static String |
WIDTH_PROPERTY |
static String |
X_PROPERTY |
static String |
Y_PROPERTY |
CAYENNE_PREFERENCES_PATH, EDITOR, LAST_PROJ_FILES| Constructor and Description |
|---|
ComponentGeometry(Class<?> className,
String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Window window,
int initialWidth,
int initialHeight,
int maxOffset)
Binds this preference object to synchronize its state with a given component,
allowing to specify an initial offset compared to the stored position.
|
void |
bindIntProperty(Component component,
String property,
int defaultValue)
Binds this preference object to synchronize its state with a given component
property.
|
void |
bindSize(Window window,
int initialWidth,
int initialHeight)
Binds this preference object to synchronize its state with a given component,
allowing to specify an initial offset compared to the stored position.
|
void |
changeX(int xOffset) |
void |
changeY(int yOffset) |
int |
getHeight(int defaultValue) |
Preferences |
getPreference() |
int |
getWidth(int defaultValue) |
int |
getX(int defaultValue) |
int |
getY(int defaultValue) |
filePathToPrefereceNodePath, getCayennePreference, getCurrentPreference, getNode, getRootPreference, saveObjectPreference, setCurrentNodeForPreference, setCurrentPreference, setObjectpublic static final String GEOMETRY_PREF_KEY
public static final String HEIGHT_PROPERTY
public static final String WIDTH_PROPERTY
public static final String X_PROPERTY
public static final String Y_PROPERTY
public Preferences getPreference()
public void bind(Window window, int initialWidth, int initialHeight, int maxOffset)
public void bindSize(Window window, int initialWidth, int initialHeight)
public void bindIntProperty(Component component, String property, int defaultValue)
public void changeX(int xOffset)
public void changeY(int yOffset)
public int getWidth(int defaultValue)
public int getHeight(int defaultValue)
public int getX(int defaultValue)
public int getY(int defaultValue)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.