|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.Frame
org.gnu.gtk.AspectFrame
org.gnome.gtk.AspectFrame
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
public class AspectFrame
This container widget wraps a single widget in a frame with a label, and imposes an aspect ratio on the child widget. It is useful when you want to pack a widget so that it can be resized but always retain the same aspect ratio.
Constructor Summary | |
---|---|
AspectFrame(org.gnu.glib.Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
|
AspectFrame(java.lang.String label,
double xAlign,
double yAlign,
double ratio,
boolean obeyChild)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Method Summary | |
---|---|
static AspectFrame |
getAspectFrame(org.gnu.glib.Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static org.gnu.glib.Type |
getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setAspect(double xAlign,
double yAlign,
double ratio,
boolean obeyChild)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Methods inherited from class org.gnu.gtk.Frame |
---|
getFrame, getLabel, getLabelAlign, getLabelWidget, getShadow, removeLabel, setLabel, setLabelAlign, setLabelWidget, setShadow |
Methods inherited from class org.gnu.gtk.Bin |
---|
getChild |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AspectFrame(java.lang.String label, double xAlign, double yAlign, double ratio, boolean obeyChild)
label
- The text label for the frame.xAlign
- The horizontal alignment for the child within the allocation
of the AspectFrame. This ranges from 0.0 (left aligned) to 1.0
(right aligned).yAlign
- The vertical alignment for the child within the allocation of
the AspectFrame. This ranges from 0.0 (top aligned) to 1.0
(bottom aligned).ratio
- The desired aspect ration.obeyChild
- If true the ratio is ignored and the aspect ratio is taken
from the requisition of the child.public AspectFrame(org.gnu.glib.Handle handle)
Method Detail |
---|
public static AspectFrame getAspectFrame(org.gnu.glib.Handle handle)
public void setAspect(double xAlign, double yAlign, double ratio, boolean obeyChild)
xAlign
- The horizontal alignment for the child within the allocation
of the AspectFrame. This ranges from 0.0 (left aligned) to 1.0
(right aligned).yAlign
- The vertical alignment for the child within the allocation of
the AspectFrame. This ranges from 0.0 (top aligned) to 1.0
(bottom aligned).ratio
- The desired aspect ration.obeyChild
- If true the ratio is ignored and the aspect ratio is taken
from the requisition of the child.public static org.gnu.glib.Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |