|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance
rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance
rs.sol.soloist.server.builtindomains.common.ObjectOfClass
rs.sol.soloist.server.guiconfiguration.layout.LayoutData
rs.sol.soloist.server.guiconfiguration.layout.XYLayoutData
public class XYLayoutData
An object meant to be assigned to a widget within a panel
with XYLayout
, to specify widget's absolute coordinates
and size.
For a panel and a label defined like this:
GUIPanelComponent absolute = GUIPanelComponent.createAbsolute(parent);
GUILabelComponent label = GUILabelComponent.create(absolute, "Hello");
an xy layout data information can be specified like this:
XYLayoutData xyLayoutData = new XYLayoutData();
xyLayoutData.setX(175);
xyLayoutData.setY(234);
xyLayoutData.setSize("100px", "25px");
label.setLayoutData(xyLayoutData);
Or shortly:
XYLayoutData xyLayoutData = XYLayoutData.create(175, 234, "100px", "25px");
label.setLayoutData(xyLayoutData);
The same can be achieved with the code bellow, however, in general,
attention should be paid when using setXY
method and
setSize
method to ensure that widget is within the
absolute panel (that is, a panel with XYLayout
):
label.setXY(175, 234);
label.setSize("100px", "25px");
LayoutData
Nested Class Summary | |
---|---|
static class |
XYLayoutData.FQPropertyNames
Deprecated. Not for public use. |
static class |
XYLayoutData.PROPERTIES
Deprecated. Not for public use. |
Nested classes/interfaces inherited from class rs.sol.soloist.server.guiconfiguration.layout.LayoutData |
---|
LayoutData.Comparator<T extends LayoutData>, LayoutData.HashFunction<T extends LayoutData>, LayoutData.Unit |
Field Summary | |
---|---|
static IClass |
CLASSIFIER
UML class reference |
static java.lang.String |
FQ_TYPE_NAME
Fully qualified UML class name |
IAttributeValue<Integer> |
x
Deprecated. Not for public use. |
IAttributeValue<Integer> |
y
Deprecated. Not for public use. |
Fields inherited from class rs.sol.soloist.server.guiconfiguration.layout.LayoutData |
---|
allowedUnits, height, width |
Constructor Summary | |
---|---|
XYLayoutData()
|
|
XYLayoutData(int x,
int y,
int width,
int height)
Deprecated. Not for public use. |
Method Summary | |
---|---|
void |
constructor()
The domain-specific constructor of the Classifier. |
void |
constructor(int x,
int y,
int width,
int height)
Performs an initialization for this object. |
static XYLayoutData |
create(int x,
int y)
Returns new XYLayoutData object that specifies absolute
position of the widget that will have that object assigned to. |
static XYLayoutData |
create(int x,
int y,
java.lang.String width,
java.lang.String height)
Returns new XYLayoutData object that specifies absolute
position and size of the widget that will have that object assigned to. |
rs.sol.soloist.client.common.info.layout.XYLayoutDataInfo |
createSpecificInfo()
Creates and returns an empty serializable object of the appropriate LayoutDataInfo sub-class. |
void |
fillInfo(rs.sol.soloist.client.common.info.layout.LayoutDataInfo info_)
Fills-in already created LayoutDataInfo object with
values of properties of this object. |
int |
getX()
Returns the x coordinate of the widget that has this object assigned to. |
int |
getY()
Returns the y coordinate of the widget that has this object assigned to. |
void |
setX(int x)
Sets the x coordinate of the widget that has this object assigned to. |
static void |
setXY(GUIComponent component,
int x,
int y)
Deprecated. Not for public use. |
void |
setY(int y)
Sets the y coordinate of the widget that has this object assigned to. |
Methods inherited from class rs.sol.soloist.server.guiconfiguration.layout.LayoutData |
---|
create, create, createInfo, getHeight, getWidth, setHeight, setSize, setSize, setWidth, validate, validateMeasureString, validateUnitString |
Methods inherited from class rs.sol.soloist.server.builtindomains.common.ObjectOfClass |
---|
handle |
Methods inherited from class rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance |
---|
destroy, equals, getAssociationEndInstance, getAssociationEndInstances, getAttributeValue, getAttributeValues, getMyClass, getMyID, getSlot, getSlot, getSlots, getUMLClass, hashCode, isMarkedAsDeleted, toString |
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance |
---|
accept, accept, exists, getAssociationEndInstance, getAssociationEndInstance, getAssociationEndInstance, getClassifier, hasIdentity, isClassInstance, isDataTypeInstance, isEqualTo, makeClone, markAsDeleted |
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance |
---|
conformsTo, copySlots, copySlots, destructor, getAttributeValue, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getMElement, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf, isKindOf, isModelElement, isRTElement |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IClassifierInstance |
---|
conformsTo, copySlots, copySlots, destructor, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IRTElement |
---|
getMElement |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.IElement |
---|
isKindOf, isModelElement, isRTElement |
Field Detail |
---|
@Deprecated public IAttributeValue<Integer> x
@Deprecated public IAttributeValue<Integer> y
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
Constructor Detail |
---|
@Deprecated public XYLayoutData(int x, int y, int width, int height)
public XYLayoutData()
Method Detail |
---|
public void constructor(int x, int y, int width, int height)
x
- the x coordinate of the corresponding widgety
- the y coordinate of the corresponding widgetwidth
- the width of the corresponding widgetheight
- the height of the corresponding widgetpublic void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class LayoutData
public rs.sol.soloist.client.common.info.layout.XYLayoutDataInfo createSpecificInfo()
LayoutData
LayoutDataInfo
sub-class. The returned object must be able to
transmit every property of objects of this class from server to
clients (browsers).
createSpecificInfo
in class LayoutData
LayoutDataInfo
sub-class instancepublic void fillInfo(rs.sol.soloist.client.common.info.layout.LayoutDataInfo info_)
LayoutData
LayoutDataInfo
object with
values of properties of this object.
fillInfo
in class LayoutData
info_
- a LayoutDataInfo
sub-class object
to be filled-inLayoutData.createSpecificInfo()
public static XYLayoutData create(int x, int y)
XYLayoutData
object that specifies absolute
position of the widget that will have that object assigned to.
x
- the x coordinate of the widgety
- the y coordinate of the widget
XYLayoutData
object that specifies absolute
position of the widgetpublic static XYLayoutData create(int x, int y, java.lang.String width, java.lang.String height)
XYLayoutData
object that specifies absolute
position and size of the widget that will have that object assigned to.
x
- the x coordinate of the widgety
- the y coordinate of the widgetwidth
- the width of the widgetheight
- the height of the widget
XYLayoutData
object that specifies absolute
position and size of the widgetpublic void setX(int x)
x
- the x coordinate of the widgetpublic void setY(int y)
y
- the y coordinate of the widgetpublic int getX()
public int getY()
@Deprecated public static void setXY(GUIComponent component, int x, int y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |