Class Layout
java.lang.Object
org.web3d.x3d.jsail.X3DConcreteElement
org.web3d.x3d.jsail.X3DConcreteNode
org.web3d.x3d.jsail.Layout.Layout
- All Implemented Interfaces:
X3DChildNode
,X3DNode
,Layout
,X3DLayoutNode
Layout node is used as layout field of LayoutLayer and LayoutGroup nodes.
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
org.web3d.x3d.jsail
classes.
Layout node tooltip: (X3D version 3.2 or later) [X3DLayoutNode] Layout node is used as layout field of LayoutLayer and LayoutGroup nodes. Layout provides all parameters required to define the size, location and scale of a 2D rectangular region.
- Hint: the align, offset, and offsetUnits fields are used to determine the location of the layout region.
Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"CENTER\" \"BOTTOM\"" (Java syntax) or '"CENTER" "BOTTOM"' (XML syntax).static final String
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"CENTER\" \"CENTER\"" (Java syntax) or '"CENTER" "CENTER"' (XML syntax).static final String
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"CENTER\" \"TOP\"" (Java syntax) or '"CENTER" "TOP"' (XML syntax).MFString field named align has default quoted value new String[] {"CENTER","CENTER"} (Java syntax) or quoted value "CENTER" "CENTER" (XML syntax).static final String
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"LEFT\" \"BOTTOM\"" (Java syntax) or '"LEFT" "BOTTOM"' (XML syntax).static final String
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"LEFT\" \"CENTER\"" (Java syntax) or '"LEFT" "CENTER"' (XML syntax).static final String
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"LEFT\" \"TOP\"" (Java syntax) or '"LEFT" "TOP"' (XML syntax).static final String
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"RIGHT\" \"BOTTOM\"" (Java syntax) or '"RIGHT" "BOTTOM"' (XML syntax).static final String
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"RIGHT\" \"CENTER\"" (Java syntax) or '"RIGHT" "CENTER"' (XML syntax).static final String
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"RIGHT\" \"TOP\"" (Java syntax) or '"RIGHT" "TOP"' (XML syntax).static final String
String constant COMPONENT defines X3D component for the Layout element: Layoutstatic final String
containerField describes typical field relationship of a node to its parent.static final String
fromField ROUTE name for MFString field named align.static final String
fromField ROUTE name for SFNode field named IS.static final String
fromField ROUTE name for SFNode field named metadata.static final String
fromField ROUTE name for MFFloat field named offset.static final String
fromField ROUTE name for MFString field named offsetUnits.static final String
fromField ROUTE name for MFString field named scaleMode.static final String
fromField ROUTE name for MFFloat field named size.static final String
fromField ROUTE name for MFString field named sizeUnits.static final IS
SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).static final int
Integer constant LEVEL provides default X3D Layout component level for this element: 1static final X3DMetadataObject
SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).static final String
String constant NAME provides name of this element: Layout.MFFloat field named offset has default value {0f,0f} (Java syntax) or 0 0 (XML syntax).MFString field named offsetUnits has default quoted value new String[] {"WORLD","WORLD"} (Java syntax) or quoted value "WORLD" "WORLD" (XML syntax).static final String
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"FRACTION\"" (Java syntax) or '"FRACTION" "FRACTION"' (XML syntax).static final String
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"PIXEL\"" (Java syntax) or '"FRACTION" "PIXEL"' (XML syntax).static final String
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"WORLD\"" (Java syntax) or '"FRACTION" "WORLD"' (XML syntax).static final String
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"FRACTION\"" (Java syntax) or '"PIXEL" "FRACTION"' (XML syntax).static final String
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"PIXEL\"" (Java syntax) or '"PIXEL" "PIXEL"' (XML syntax).static final String
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"WORLD\"" (Java syntax) or '"PIXEL" "WORLD"' (XML syntax).static final String
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"FRACTION\"" (Java syntax) or '"WORLD" "FRACTION"' (XML syntax).static final String
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"PIXEL\"" (Java syntax) or '"WORLD" "PIXEL"' (XML syntax).static final String
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"WORLD\"" (Java syntax) or '"WORLD" "WORLD"' (XML syntax).MFString field named scaleMode has default quoted value new String[] {"NONE","NONE"} (Java syntax) or quoted value "NONE" "NONE" (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"FRACTION\"" (Java syntax) or '"FRACTION" "FRACTION"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"NONE\"" (Java syntax) or '"FRACTION" "NONE"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"PIXEL\"" (Java syntax) or '"FRACTION" "PIXEL"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"STRETCH\"" (Java syntax) or '"FRACTION" "STRETCH"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"NONE\" \"FRACTION\"" (Java syntax) or '"NONE" "FRACTION"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"NONE\" \"NONE\"" (Java syntax) or '"NONE" "NONE"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"NONE\" \"PIXEL\"" (Java syntax) or '"NONE" "PIXEL"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"NONE\" \"STRETCH\"" (Java syntax) or '"NONE" "STRETCH"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"FRACTION\"" (Java syntax) or '"PIXEL" "FRACTION"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"NONE\"" (Java syntax) or '"PIXEL" "NONE"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"PIXEL\"" (Java syntax) or '"PIXEL" "PIXEL"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"STRETCH\"" (Java syntax) or '"PIXEL" "STRETCH"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"STRETCH\" \"FRACTION\"" (Java syntax) or '"STRETCH" "FRACTION"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"STRETCH\" \"NONE\"" (Java syntax) or '"STRETCH" "NONE"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"STRETCH\" \"PIXEL\"" (Java syntax) or '"STRETCH" "PIXEL"' (XML syntax).static final String
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"STRETCH\" \"STRETCH\"" (Java syntax) or '"STRETCH" "STRETCH"' (XML syntax).MFFloat field named size has default value {1f,1f} (Java syntax) or 1 1 (XML syntax).MFString field named sizeUnits has default quoted value new String[] {"WORLD","WORLD"} (Java syntax) or quoted value "WORLD" "WORLD" (XML syntax).static final String
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"FRACTION\"" (Java syntax) or '"FRACTION" "FRACTION"' (XML syntax).static final String
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"PIXEL\"" (Java syntax) or '"FRACTION" "PIXEL"' (XML syntax).static final String
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"WORLD\"" (Java syntax) or '"FRACTION" "WORLD"' (XML syntax).static final String
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"FRACTION\"" (Java syntax) or '"PIXEL" "FRACTION"' (XML syntax).static final String
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"PIXEL\"" (Java syntax) or '"PIXEL" "PIXEL"' (XML syntax).static final String
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"WORLD\"" (Java syntax) or '"PIXEL" "WORLD"' (XML syntax).static final String
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"FRACTION\"" (Java syntax) or '"WORLD" "FRACTION"' (XML syntax).static final String
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"PIXEL\"" (Java syntax) or '"WORLD" "PIXEL"' (XML syntax).static final String
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"WORLD\"" (Java syntax) or '"WORLD" "WORLD"' (XML syntax).static final String
toField ROUTE name for MFString field named align.static final String
toField ROUTE name for SFNode field named metadata.static final String
toField ROUTE name for MFFloat field named offset.static final String
toField ROUTE name for MFString field named offsetUnits.static final String
toField ROUTE name for MFString field named scaleMode.static final String
toField ROUTE name for MFFloat field named size.static final String
toField ROUTE name for MFString field named sizeUnits.Fields inherited from class org.web3d.x3d.jsail.X3DConcreteNode
containerField_ALLOWED_VALUES, containerFieldOverride, DEF_DEFAULT_VALUE, USE_DEFAULT_VALUE
Fields inherited from class org.web3d.x3d.jsail.X3DConcreteElement
CLASS_DEFAULT_VALUE, ID_DEFAULT_VALUE, STYLE_DEFAULT_VALUE, validationResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd singleton String value to MFString align field.Add singleton SFString value to MFString align field.addComments
(String newComment) Add comment as String to contained commentsList.addComments
(String[] newComments) Add comments as String[] array to contained commentsList.addComments
(CommentsBlock newCommentsBlock) Add CommentsBlock to contained commentsList.addOffset
(float newValue) Add singleton float value to MFFloat offset field.Add singleton SFFloat value to MFFloat offset field.addOffsetUnits
(String newValue) Add singleton String value to MFString offsetUnits field.addOffsetUnits
(SFString newValue) Add singleton SFString value to MFString offsetUnits field.addScaleMode
(String newValue) Add singleton String value to MFString scaleMode field.addScaleMode
(SFString newValue) Add singleton SFString value to MFString scaleMode field.addSize
(float newValue) Add singleton float value to MFFloat size field.Add singleton SFFloat value to MFFloat size field.addSizeUnits
(String newValue) Add singleton String value to MFString sizeUnits field.addSizeUnits
(SFString newValue) Add singleton SFString value to MFString sizeUnits field.Utility method to clear MFString value of align field.clearIS()
Utility method to clear SFNode value of IS field.Utility method to clear SFNode value of metadata field.Utility method to clear MFFloat value of offset field.Utility method to clear MFString value of offsetUnits field.Utility method to clear MFString value of scaleMode field.Utility method to clear MFFloat value of size field.Utility method to clear MFString value of sizeUnits field.findElementByNameValue
(String nameValue) Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element.findElementByNameValue
(String nameValue, String elementName) Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element.findNodeByDEF
(String DEFvalue) Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.getAccessType
(String fieldName) Indicate accessType corresponding to given fieldName.String[]
getAlign()
Provide array of String enumeration results (baseType MFString) ['"LEFT" "BOTTOM"' | '"LEFT" "CENTER"' | '"LEFT" "TOP"' | '"CENTER" "BOTTOM"' | '"CENTER" "CENTER"' | '"CENTER" "TOP"' | '"RIGHT" "BOTTOM"' | '"RIGHT" "CENTER"' | '"RIGHT" "TOP"'] from inputOutput MFString field named align.Utility method to get ArrayList value of MFString align field, similar togetAlign()
.Utility method to get String value of MFString align field, similar togetAlign()
.final String
Defines X3D component for the Layout element: Layoutfinal int
Provides default X3D component level for this element: 1final String
containerField describes typical field relationship of a node to its parent.Provide String value from inputOutput SFString field named class.Provide String value from inputOutput SFString field named style.getDEF()
Provide String value from inputOutput SFString field named DEF.final String
Provides name of this element: LayoutgetFieldType
(String fieldName) Indicate type corresponding to given fieldName.Provide String value from inputOutput SFString field named id.getIS()
Provide IS instance (using a properly typed node) from inputOutput SFNode field IS.Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.float[]
Provide array of Float results from inputOutput MFFloat field named offset.Utility method to get ArrayList value of MFFloat offset field, similar togetOffset()
.Utility method to get String value of MFFloat offset field, similar togetOffset()
.String[]
Provide array of String enumeration results (baseType MFString) ['"WORLD" "WORLD"' | '"WORLD" "FRACTION"' | '"WORLD" "PIXEL"' | '"FRACTION" "WORLD"' | '"FRACTION" "FRACTION"' | '"FRACTION" "PIXEL"' | '"PIXEL" "WORLD"' | '"PIXEL" "FRACTION"' | '"PIXEL" "PIXEL"'] from inputOutput MFString field named offsetUnits.Utility method to get ArrayList value of MFString offsetUnits field, similar togetOffsetUnits()
.Utility method to get String value of MFString offsetUnits field, similar togetOffsetUnits()
.String[]
Provide array of String enumeration results (baseType MFString) ['"NONE" "NONE"' | '"NONE" "FRACTION"' | '"NONE" "STRETCH"' | '"NONE" "PIXEL"' | '"FRACTION" "NONE"' | '"FRACTION" "FRACTION"' | '"FRACTION" "STRETCH"' | '"FRACTION" "PIXEL"' | '"STRETCH" "NONE"' | '"STRETCH" "FRACTION"' | '"STRETCH" "STRETCH"' | '"STRETCH" "PIXEL"' | '"PIXEL" "NONE"' | '"PIXEL" "FRACTION"' | '"PIXEL" "STRETCH"' | '"PIXEL" "PIXEL"'] from inputOutput MFString field named scaleMode.Utility method to get ArrayList value of MFString scaleMode field, similar togetScaleMode()
.Utility method to get String value of MFString scaleMode field, similar togetScaleMode()
.float[]
getSize()
Provide array of Float results from inputOutput MFFloat field named size.Utility method to get ArrayList value of MFFloat size field, similar togetSize()
.Utility method to get String value of MFFloat size field, similar togetSize()
.String[]
Provide array of String enumeration results (baseType MFString) ['"WORLD" "WORLD"' | '"WORLD" "FRACTION"' | '"WORLD" "PIXEL"' | '"FRACTION" "WORLD"' | '"FRACTION" "FRACTION"' | '"FRACTION" "PIXEL"' | '"PIXEL" "WORLD"' | '"PIXEL" "FRACTION"' | '"PIXEL" "PIXEL"'] from inputOutput MFString field named sizeUnits.Utility method to get ArrayList value of MFString sizeUnits field, similar togetSizeUnits()
.Utility method to get String value of MFString sizeUnits field, similar togetSizeUnits()
.getUSE()
Provide String value from inputOutput SFString field named USE.boolean
hasElementByNameValue
(String nameValue, String elementName) Recursive method to determine whether node or statement with given name attribute is found, meaning both objects are attached to same scene graph.boolean
hasIS()
Indicate whether an object is available for inputOutput SFNode field IS.boolean
Indicate whether an object is available for inputOutput SFNode field metadata.boolean
hasNodeByDEF
(String DEFvalue) Recursive method to determine whether node with DEFvalue is found, meaning both objects are attached to same scene graph.final void
Initialize all member variables to default values.Assign singleton String value to MFString align field, similar tosetAlign(String[])
.Accessor method to assign String enumeration array (""LEFT" "BOTTOM"" | ""LEFT" "CENTER"" | ""LEFT" "TOP"" | ""CENTER" "BOTTOM"" | ""CENTER" "CENTER"" | ""CENTER" "TOP"" | ""RIGHT" "BOTTOM"" | ""RIGHT" "CENTER"" | ""RIGHT" "TOP"") to inputOutput MFString field named align.Assign ArrayList value of MFString align field, similar tosetAlign(String[])
.Assign typed object value to MFString align field, similar tosetAlign(String[])
.Assign single SFString object value to MFString align field, similar tosetAlign(String[])
.final Layout
setCssClass
(String newValue) Accessor method to assign String value to inputOutput SFString field named class.setCssClass
(SFString newValue) Assign typed object value to SFString cssClass field, similar tosetCssClass(String)
.final Layout
setCssStyle
(String newValue) Accessor method to assign String value to inputOutput SFString field named style.setCssStyle
(SFString newValue) Assign typed object value to SFString cssClass field, similar tosetCssStyle(String)
.final Layout
Accessor method to assign String value to inputOutput SFString field named DEF.Assign typed object value to SFString DEF field, similar tosetDEF(String)
.final Layout
Accessor method to assign String value to inputOutput SFString field named id.Assign typed object value to SFString HtmlID field, similar tosetHtmlID(String)
.Accessor method to assign IS instance (using a properly typed node) to inputOutput SFNode field IS.setMetadata
(ProtoInstance newValue) Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.setMetadata
(X3DMetadataObject newValue) Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.setOffset
(double[] newArray) Utility method: double-precision set-array accessor for X3D floating-point type, similar tosetOffset(float[])
.setOffset
(float[] newValue) Accessor method to assign Float array to inputOutput MFFloat field named offset.setOffset
(int[] newValue) Assign floating-point array value of MFFloat offset field, similar tosetOffset(float[])
.Assign ArrayList value of MFFloat offset field, similar tosetOffset(float[])
.Assign typed object value to MFFloat offset field, similar tosetOffset(float[])
.setOffsetUnits
(String newValue) Assign singleton String value to MFString offsetUnits field, similar tosetOffsetUnits(String[])
.setOffsetUnits
(String[] newValue) Accessor method to assign String enumeration array (""WORLD" "WORLD"" | ""WORLD" "FRACTION"" | ""WORLD" "PIXEL"" | ""FRACTION" "WORLD"" | ""FRACTION" "FRACTION"" | ""FRACTION" "PIXEL"" | ""PIXEL" "WORLD"" | ""PIXEL" "FRACTION"" | ""PIXEL" "PIXEL"") to inputOutput MFString field named offsetUnits.setOffsetUnits
(ArrayList<String> newValue) Assign ArrayList value of MFString offsetUnits field, similar tosetOffsetUnits(String[])
.setOffsetUnits
(MFString newValue) Assign typed object value to MFString offsetUnits field, similar tosetOffsetUnits(String[])
.setOffsetUnits
(SFString newValue) Assign single SFString object value to MFString offsetUnits field, similar tosetOffsetUnits(String[])
.setScaleMode
(String newValue) Assign singleton String value to MFString scaleMode field, similar tosetScaleMode(String[])
.setScaleMode
(String[] newValue) Accessor method to assign String enumeration array (""NONE" "NONE"" | ""NONE" "FRACTION"" | ""NONE" "STRETCH"" | ""NONE" "PIXEL"" | ""FRACTION" "NONE"" | ""FRACTION" "FRACTION"" | ""FRACTION" "STRETCH"" | ""FRACTION" "PIXEL"" | ""STRETCH" "NONE"" | ""STRETCH" "FRACTION"" | ""STRETCH" "STRETCH"" | ""STRETCH" "PIXEL"" | ""PIXEL" "NONE"" | ""PIXEL" "FRACTION"" | ""PIXEL" "STRETCH"" | ""PIXEL" "PIXEL"") to inputOutput MFString field named scaleMode.setScaleMode
(ArrayList<String> newValue) Assign ArrayList value of MFString scaleMode field, similar tosetScaleMode(String[])
.setScaleMode
(MFString newValue) Assign typed object value to MFString scaleMode field, similar tosetScaleMode(String[])
.setScaleMode
(SFString newValue) Assign single SFString object value to MFString scaleMode field, similar tosetScaleMode(String[])
.setSize
(double[] newArray) Utility method: double-precision set-array accessor for X3D floating-point type, similar tosetSize(float[])
.setSize
(float[] newValue) Accessor method to assign Float array to inputOutput MFFloat field named size.setSize
(int[] newValue) Assign floating-point array value of MFFloat size field, similar tosetSize(float[])
.Assign ArrayList value of MFFloat size field, similar tosetSize(float[])
.Assign typed object value to MFFloat size field, similar tosetSize(float[])
.setSizeUnits
(String newValue) Assign singleton String value to MFString sizeUnits field, similar tosetSizeUnits(String[])
.setSizeUnits
(String[] newValue) Accessor method to assign String enumeration array (""WORLD" "WORLD"" | ""WORLD" "FRACTION"" | ""WORLD" "PIXEL"" | ""FRACTION" "WORLD"" | ""FRACTION" "FRACTION"" | ""FRACTION" "PIXEL"" | ""PIXEL" "WORLD"" | ""PIXEL" "FRACTION"" | ""PIXEL" "PIXEL"") to inputOutput MFString field named sizeUnits.setSizeUnits
(ArrayList<String> newValue) Assign ArrayList value of MFString sizeUnits field, similar tosetSizeUnits(String[])
.setSizeUnits
(MFString newValue) Assign typed object value to MFString sizeUnits field, similar tosetSizeUnits(String[])
.setSizeUnits
(SFString newValue) Assign single SFString object value to MFString sizeUnits field, similar tosetSizeUnits(String[])
.final Layout
Accessor method to assign String value to inputOutput SFString field named USE.Assign typed object value to SFString USE field, similar tosetUSE(String)
.Assign a USE reference to another DEF node of same node type, similar tosetUSE(String)
.toStringClassicVRML
(int indentLevel) Recursive method to provide ClassicVRML string serialization.toStringVRML97
(int indentLevel) Recursive method to provide VRML97 string serialization.toStringX3D
(int indentLevel) Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.validate()
Recursive method to validate this element plus all contained nodes and statements, using both datatype-specification value checks and regular expression (regex) checking of corresponding string values.Methods inherited from class org.web3d.x3d.jsail.X3DConcreteNode
getContainerFieldAllowedValues, getContainerFieldOverride, getName, hasDEF, hasNameField, hasUSE, includesNameField, isNode, isStatement, resetContainerFieldOverride, setConcreteDEF, setConcreteUSE, setContainerFieldOverride
Methods inherited from class org.web3d.x3d.jsail.X3DConcreteElement
addComments, clearParent, findAncestorElementByName, findAncestorProtoBody, findAncestorScene, findAncestorX3D, getPackageName, getParent, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorScene, hasAncestorX3D, hasParent, isValid, setConcreteCssClass, setConcreteCssStyle, setConcreteHtmlID, setParent, toStringClassicVRML, toStringVRML97, toStringX3D
-
Field Details
-
ALIGN_LEFT_BOTTOM
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"LEFT\" \"BOTTOM\"" (Java syntax) or '"LEFT" "BOTTOM"' (XML syntax).- See Also:
-
ALIGN_LEFT_CENTER
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"LEFT\" \"CENTER\"" (Java syntax) or '"LEFT" "CENTER"' (XML syntax).- See Also:
-
ALIGN_LEFT_TOP
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"LEFT\" \"TOP\"" (Java syntax) or '"LEFT" "TOP"' (XML syntax).- See Also:
-
ALIGN_CENTER_BOTTOM
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"CENTER\" \"BOTTOM\"" (Java syntax) or '"CENTER" "BOTTOM"' (XML syntax).- See Also:
-
ALIGN_CENTER_CENTER
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"CENTER\" \"CENTER\"" (Java syntax) or '"CENTER" "CENTER"' (XML syntax).- See Also:
-
ALIGN_CENTER_TOP
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"CENTER\" \"TOP\"" (Java syntax) or '"CENTER" "TOP"' (XML syntax).- See Also:
-
ALIGN_RIGHT_BOTTOM
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"RIGHT\" \"BOTTOM\"" (Java syntax) or '"RIGHT" "BOTTOM"' (XML syntax).- See Also:
-
ALIGN_RIGHT_CENTER
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"RIGHT\" \"CENTER\"" (Java syntax) or '"RIGHT" "CENTER"' (XML syntax).- See Also:
-
ALIGN_RIGHT_TOP
MFString field named align with X3DUOM simpleType layoutAlignChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"RIGHT\" \"TOP\"" (Java syntax) or '"RIGHT" "TOP"' (XML syntax).- See Also:
-
OFFSETUNITS_WORLD_WORLD
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"WORLD\"" (Java syntax) or '"WORLD" "WORLD"' (XML syntax).- See Also:
-
OFFSETUNITS_WORLD_FRACTION
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"FRACTION\"" (Java syntax) or '"WORLD" "FRACTION"' (XML syntax).- See Also:
-
OFFSETUNITS_WORLD_PIXEL
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"PIXEL\"" (Java syntax) or '"WORLD" "PIXEL"' (XML syntax).- See Also:
-
OFFSETUNITS_FRACTION_WORLD
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"WORLD\"" (Java syntax) or '"FRACTION" "WORLD"' (XML syntax).- See Also:
-
OFFSETUNITS_FRACTION_FRACTION
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"FRACTION\"" (Java syntax) or '"FRACTION" "FRACTION"' (XML syntax).- See Also:
-
OFFSETUNITS_FRACTION_PIXEL
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"PIXEL\"" (Java syntax) or '"FRACTION" "PIXEL"' (XML syntax).- See Also:
-
OFFSETUNITS_PIXEL_WORLD
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"WORLD\"" (Java syntax) or '"PIXEL" "WORLD"' (XML syntax).- See Also:
-
OFFSETUNITS_PIXEL_FRACTION
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"FRACTION\"" (Java syntax) or '"PIXEL" "FRACTION"' (XML syntax).- See Also:
-
OFFSETUNITS_PIXEL_PIXEL
MFString field named offsetUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"PIXEL\"" (Java syntax) or '"PIXEL" "PIXEL"' (XML syntax).- See Also:
-
SCALEMODE_NONE_NONE
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"NONE\" \"NONE\"" (Java syntax) or '"NONE" "NONE"' (XML syntax).- See Also:
-
SCALEMODE_NONE_FRACTION
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"NONE\" \"FRACTION\"" (Java syntax) or '"NONE" "FRACTION"' (XML syntax).- See Also:
-
SCALEMODE_NONE_STRETCH
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"NONE\" \"STRETCH\"" (Java syntax) or '"NONE" "STRETCH"' (XML syntax).- See Also:
-
SCALEMODE_NONE_PIXEL
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"NONE\" \"PIXEL\"" (Java syntax) or '"NONE" "PIXEL"' (XML syntax).- See Also:
-
SCALEMODE_FRACTION_NONE
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"NONE\"" (Java syntax) or '"FRACTION" "NONE"' (XML syntax).- See Also:
-
SCALEMODE_FRACTION_FRACTION
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"FRACTION\"" (Java syntax) or '"FRACTION" "FRACTION"' (XML syntax).- See Also:
-
SCALEMODE_FRACTION_STRETCH
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"STRETCH\"" (Java syntax) or '"FRACTION" "STRETCH"' (XML syntax).- See Also:
-
SCALEMODE_FRACTION_PIXEL
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"PIXEL\"" (Java syntax) or '"FRACTION" "PIXEL"' (XML syntax).- See Also:
-
SCALEMODE_STRETCH_NONE
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"STRETCH\" \"NONE\"" (Java syntax) or '"STRETCH" "NONE"' (XML syntax).- See Also:
-
SCALEMODE_STRETCH_FRACTION
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"STRETCH\" \"FRACTION\"" (Java syntax) or '"STRETCH" "FRACTION"' (XML syntax).- See Also:
-
SCALEMODE_STRETCH_STRETCH
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"STRETCH\" \"STRETCH\"" (Java syntax) or '"STRETCH" "STRETCH"' (XML syntax).- See Also:
-
SCALEMODE_STRETCH_PIXEL
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"STRETCH\" \"PIXEL\"" (Java syntax) or '"STRETCH" "PIXEL"' (XML syntax).- See Also:
-
SCALEMODE_PIXEL_NONE
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"NONE\"" (Java syntax) or '"PIXEL" "NONE"' (XML syntax).- See Also:
-
SCALEMODE_PIXEL_FRACTION
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"FRACTION\"" (Java syntax) or '"PIXEL" "FRACTION"' (XML syntax).- See Also:
-
SCALEMODE_PIXEL_STRETCH
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"STRETCH\"" (Java syntax) or '"PIXEL" "STRETCH"' (XML syntax).- See Also:
-
SCALEMODE_PIXEL_PIXEL
MFString field named scaleMode with X3DUOM simpleType layoutScaleModeChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"PIXEL\"" (Java syntax) or '"PIXEL" "PIXEL"' (XML syntax).- See Also:
-
SIZEUNITS_WORLD_WORLD
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"WORLD\"" (Java syntax) or '"WORLD" "WORLD"' (XML syntax).- See Also:
-
SIZEUNITS_WORLD_FRACTION
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"FRACTION\"" (Java syntax) or '"WORLD" "FRACTION"' (XML syntax).- See Also:
-
SIZEUNITS_WORLD_PIXEL
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"WORLD\" \"PIXEL\"" (Java syntax) or '"WORLD" "PIXEL"' (XML syntax).- See Also:
-
SIZEUNITS_FRACTION_WORLD
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"WORLD\"" (Java syntax) or '"FRACTION" "WORLD"' (XML syntax).- See Also:
-
SIZEUNITS_FRACTION_FRACTION
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"FRACTION\"" (Java syntax) or '"FRACTION" "FRACTION"' (XML syntax).- See Also:
-
SIZEUNITS_FRACTION_PIXEL
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FRACTION\" \"PIXEL\"" (Java syntax) or '"FRACTION" "PIXEL"' (XML syntax).- See Also:
-
SIZEUNITS_PIXEL_WORLD
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"WORLD\"" (Java syntax) or '"PIXEL" "WORLD"' (XML syntax).- See Also:
-
SIZEUNITS_PIXEL_FRACTION
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"FRACTION\"" (Java syntax) or '"PIXEL" "FRACTION"' (XML syntax).- See Also:
-
SIZEUNITS_PIXEL_PIXEL
MFString field named sizeUnits with X3DUOM simpleType layoutUnitsChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"PIXEL\" \"PIXEL\"" (Java syntax) or '"PIXEL" "PIXEL"' (XML syntax).- See Also:
-
NAME
String constant NAME provides name of this element: Layout.- See Also:
-
COMPONENT
String constant COMPONENT defines X3D component for the Layout element: Layout- See Also:
-
LEVEL
public static final int LEVELInteger constant LEVEL provides default X3D Layout component level for this element: 1- See Also:
-
ALIGN_DEFAULT_VALUE
-
IS_DEFAULT_VALUE
SFNode field named IS has default value null (Java syntax) or NULL (XML syntax). -
METADATA_DEFAULT_VALUE
SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax). -
OFFSET_DEFAULT_VALUE
-
OFFSETUNITS_DEFAULT_VALUE
-
SCALEMODE_DEFAULT_VALUE
-
SIZE_DEFAULT_VALUE
-
SIZEUNITS_DEFAULT_VALUE
-
containerField_DEFAULT_VALUE
containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, this default value is provided for informational purposes only.
containerField_DEFAULT_VALUE = "layout";
containerField_ALLOWED_VALUES = {"layout" }; type xs:NMTOKEN- See Also:
-
fromField_ALIGN
fromField ROUTE name for MFString field named align.- See Also:
-
toField_ALIGN
toField ROUTE name for MFString field named align.- See Also:
-
fromField_IS
-
fromField_METADATA
fromField ROUTE name for SFNode field named metadata.- See Also:
-
toField_METADATA
toField ROUTE name for SFNode field named metadata.- See Also:
-
fromField_OFFSET
fromField ROUTE name for MFFloat field named offset.- See Also:
-
toField_OFFSET
toField ROUTE name for MFFloat field named offset.- See Also:
-
fromField_OFFSETUNITS
fromField ROUTE name for MFString field named offsetUnits.- See Also:
-
toField_OFFSETUNITS
toField ROUTE name for MFString field named offsetUnits.- See Also:
-
fromField_SCALEMODE
fromField ROUTE name for MFString field named scaleMode.- See Also:
-
toField_SCALEMODE
toField ROUTE name for MFString field named scaleMode.- See Also:
-
fromField_SIZE
fromField ROUTE name for MFFloat field named size.- See Also:
-
toField_SIZE
-
fromField_SIZEUNITS
fromField ROUTE name for MFString field named sizeUnits.- See Also:
-
toField_SIZEUNITS
toField ROUTE name for MFString field named sizeUnits.- See Also:
-
-
Constructor Details
-
Layout
public Layout()Constructor for Layout to initialize member variables with default values. -
Layout
Utility constructor that assigns DEF label after initializing member variables with default values.- Parameters:
DEFlabel
- unique DEF name for this X3D node
-
-
Method Details
-
getElementName
Provides name of this element: Layout- Specified by:
getElementName
in classX3DConcreteElement
- Returns:
- name of this element
-
getComponent
Defines X3D component for the Layout element: Layout- Specified by:
getComponent
in classX3DConcreteElement
- Returns:
- X3D component for this element
-
getComponentLevel
public final int getComponentLevel()Provides default X3D component level for this element: 1- Specified by:
getComponentLevel
in classX3DConcreteElement
- Returns:
- default X3D component level for this element
-
getFieldType
Indicate type corresponding to given fieldName.- Specified by:
getFieldType
in classX3DConcreteElement
- Parameters:
fieldName
- name of field in this X3D node- Returns:
- X3D type (SFvec3f etc.), otherwise ConfigurationProperties.ERROR_UNKNOWN_FIELD_TYPE if not recognized
- See Also:
-
getAccessType
Indicate accessType corresponding to given fieldName.- Specified by:
getAccessType
in classX3DConcreteElement
- Parameters:
fieldName
- name of field in this X3D node- Returns:
- X3D accessType (inputOnly etc.), otherwise ConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPE if not recognized
- See Also:
-
getContainerFieldDefault
containerField describes typical field relationship of a node to its parent. Programmer usage is not ordinarily needed when using this API, since this default value is provided for informational purposes only.- Specified by:
getContainerFieldDefault
in classX3DConcreteNode
- Returns:
- default containerField value
- See Also:
-
initialize
public final void initialize()Initialize all member variables to default values.- Overrides:
initialize
in classX3DConcreteNode
-
getAlign
Provide array of String enumeration results (baseType MFString) ['"LEFT" "BOTTOM"' | '"LEFT" "CENTER"' | '"LEFT" "TOP"' | '"CENTER" "BOTTOM"' | '"CENTER" "CENTER"' | '"CENTER" "TOP"' | '"RIGHT" "BOTTOM"' | '"RIGHT" "CENTER"' | '"RIGHT" "TOP"'] from inputOutput MFString field named align.
Tooltip: The align field values align the sized rectangle to an edge or center of the parent rectangle. Two quoted string values are provided. The first value is for horizontal direction (LEFT|CENTER|RIGHT) and the second value is for vertical direction (BOTTOM|CENTER|TOP). Examples: "CENTER" "CENTER" (default value), "LEFT" "TOP" or "RIGHT" "BOTTOM".- Warning: two values (or possibly one value) only.
- Warning: if the align field has only one value, that value shall be "CENTER" and apply both horizontally and vertically.
- Hint: MFString arrays can have multiple values, so "separate each individual string" "by using quote marks".
Available enumeration values for string comparison:LEFT_BOTTOM
,LEFT_CENTER
,LEFT_TOP
,CENTER_BOTTOM
,CENTER_CENTER
,CENTER_TOP
,RIGHT_BOTTOM
,RIGHT_CENTER
,RIGHT_TOP
. -
getAlignList
Utility method to get ArrayList value of MFString align field, similar togetAlign()
.- Returns:
- value of align field
-
getAlignString
Utility method to get String value of MFString align field, similar togetAlign()
.- Returns:
- value of align field
-
setAlign
Accessor method to assign String enumeration array (""LEFT" "BOTTOM"" | ""LEFT" "CENTER"" | ""LEFT" "TOP"" | ""CENTER" "BOTTOM"" | ""CENTER" "CENTER"" | ""CENTER" "TOP"" | ""RIGHT" "BOTTOM"" | ""RIGHT" "CENTER"" | ""RIGHT" "TOP"") to inputOutput MFString field named align.
Warning: authors can only choose from a strict list of enumeration values (LEFT_BOTTOM
,LEFT_CENTER
,LEFT_TOP
,CENTER_BOTTOM
,CENTER_CENTER
,CENTER_TOP
,RIGHT_BOTTOM
,RIGHT_CENTER
,RIGHT_TOP
).
Tooltip: The align field values align the sized rectangle to an edge or center of the parent rectangle. Two quoted string values are provided. The first value is for horizontal direction (LEFT|CENTER|RIGHT) and the second value is for vertical direction (BOTTOM|CENTER|TOP). Examples: "CENTER" "CENTER" (default value), "LEFT" "TOP" or "RIGHT" "BOTTOM".- Warning: two values (or possibly one value) only.
- Warning: if the align field has only one value, that value shall be "CENTER" and apply both horizontally and vertically.
- Hint: MFString arrays can have multiple values, so "separate each individual string" "by using quote marks".
-
setAlign
Assign typed object value to MFString align field, similar tosetAlign(String[])
.- Parameters:
newValue
- is new value for the align field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setAlign
Assign single SFString object value to MFString align field, similar tosetAlign(String[])
.- Parameters:
newValue
- is new value for the align field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setAlign
Assign singleton String value to MFString align field, similar tosetAlign(String[])
.- Parameters:
newValue
- is new value for the align field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setAlign
Assign ArrayList value of MFString align field, similar tosetAlign(String[])
.- Parameters:
newValue
- is new value for the align field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearAlign
-
addAlign
Add singleton String value to MFString align field.- Parameters:
newValue
- is new value to add to the align field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
addAlign
Add singleton SFString value to MFString align field.- Parameters:
newValue
- is new value to add to the align field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
getIS
Provide IS instance (using a properly typed node) from inputOutput SFNode field IS.- Specified by:
getIS
in classX3DConcreteNode
- Returns:
- value of IS field
- See Also:
-
setIS
Accessor method to assign IS instance (using a properly typed node) to inputOutput SFNode field IS.- Specified by:
setIS
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the IS field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
clearIS
-
hasIS
public boolean hasIS()Indicate whether an object is available for inputOutput SFNode field IS.- Returns:
- whether a concrete statement or CommentsBlock is available.
- See Also:
-
getMetadata
Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.- Specified by:
getMetadata
in interfaceLayout
- Specified by:
getMetadata
in interfaceX3DChildNode
- Specified by:
getMetadata
in interfaceX3DLayoutNode
- Specified by:
getMetadata
in interfaceX3DNode
- Returns:
- value of metadata field
- See Also:
-
setMetadata
Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.- Specified by:
setMetadata
in interfaceLayout
- Specified by:
setMetadata
in interfaceX3DChildNode
- Specified by:
setMetadata
in interfaceX3DLayoutNode
- Specified by:
setMetadata
in interfaceX3DNode
- Specified by:
setMetadata
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the metadata field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
clearMetadata
-
setMetadata
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.- Specified by:
setMetadata
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the metadata field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
hasMetadata
public boolean hasMetadata()Indicate whether an object is available for inputOutput SFNode field metadata.- Returns:
- whether a properly typed node or ProtoInstance or CommentsBlock is available.
- See Also:
-
getOffset
public float[] getOffset()Provide array of Float results from inputOutput MFFloat field named offset.
Tooltip: (-infinity,+infinity) The values of the offset field are used to translate the location of this rectangle after the initial alignment. The offsetUnits field specifies how to interpret the offset field.- Warning: if only one value is provided, it applies equally to horizontal and vertical directions (width and height). More than two values are not allowed.
-
getOffsetList
Utility method to get ArrayList value of MFFloat offset field, similar togetOffset()
.- Returns:
- value of offset field
-
getOffsetString
Utility method to get String value of MFFloat offset field, similar togetOffset()
.- Returns:
- value of offset field
-
setOffset
Accessor method to assign Float array to inputOutput MFFloat field named offset.
Tooltip: (-infinity,+infinity) The values of the offset field are used to translate the location of this rectangle after the initial alignment. The offsetUnits field specifies how to interpret the offset field.- Warning: if only one value is provided, it applies equally to horizontal and vertical directions (width and height). More than two values are not allowed.
-
setOffset
Assign typed object value to MFFloat offset field, similar tosetOffset(float[])
.- Parameters:
newValue
- is new value for the offset field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setOffset
Assign ArrayList value of MFFloat offset field, similar tosetOffset(float[])
.- Parameters:
newValue
- is new value for the offset field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearOffset
-
setOffset
Assign floating-point array value of MFFloat offset field, similar tosetOffset(float[])
.- Parameters:
newValue
- is new value for the offset field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addOffset
-
addOffset
-
setOffset
Utility method: double-precision set-array accessor for X3D floating-point type, similar tosetOffset(float[])
.- Parameters:
newArray
- is new value for field- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getOffsetUnits
Provide array of String enumeration results (baseType MFString) ['"WORLD" "WORLD"' | '"WORLD" "FRACTION"' | '"WORLD" "PIXEL"' | '"FRACTION" "WORLD"' | '"FRACTION" "FRACTION"' | '"FRACTION" "PIXEL"' | '"PIXEL" "WORLD"' | '"PIXEL" "FRACTION"' | '"PIXEL" "PIXEL"'] from inputOutput MFString field named offsetUnits.
Tooltip: The offsetUnits field values are used to interprete the offset values. Two quoted string values are provided. The first value is for horizontal offset, and the second value is for vertical offset. Examples: "WORLD" "WORLD" (default value), "FRACTION" "FRACTION" or "PIXEL" "PIXEL".- Hint: If the value of the offsetUnits field is FRACTION, the size of the corresponding dimension is interpreted as a fraction of the corresponding parent’s dimension.
- Warning: if only one value is provided, it applies equally to horizontal and vertical directions (width and height). More than two values are not allowed.
- Hint: MFString arrays can have multiple values, so "separate each individual string" "by using quote marks".
Available enumeration values for string comparison:WORLD_WORLD
,WORLD_FRACTION
,WORLD_PIXEL
,FRACTION_WORLD
,FRACTION_FRACTION
,FRACTION_PIXEL
,PIXEL_WORLD
,PIXEL_FRACTION
,PIXEL_PIXEL
.- Specified by:
getOffsetUnits
in interfaceLayout
- Returns:
- value of offsetUnits field
-
getOffsetUnitsList
Utility method to get ArrayList value of MFString offsetUnits field, similar togetOffsetUnits()
.- Returns:
- value of offsetUnits field
-
getOffsetUnitsString
Utility method to get String value of MFString offsetUnits field, similar togetOffsetUnits()
.- Returns:
- value of offsetUnits field
-
setOffsetUnits
Accessor method to assign String enumeration array (""WORLD" "WORLD"" | ""WORLD" "FRACTION"" | ""WORLD" "PIXEL"" | ""FRACTION" "WORLD"" | ""FRACTION" "FRACTION"" | ""FRACTION" "PIXEL"" | ""PIXEL" "WORLD"" | ""PIXEL" "FRACTION"" | ""PIXEL" "PIXEL"") to inputOutput MFString field named offsetUnits.
Warning: authors can only choose from a strict list of enumeration values (WORLD_WORLD
,WORLD_FRACTION
,WORLD_PIXEL
,FRACTION_WORLD
,FRACTION_FRACTION
,FRACTION_PIXEL
,PIXEL_WORLD
,PIXEL_FRACTION
,PIXEL_PIXEL
).
Tooltip: The offsetUnits field values are used to interprete the offset values. Two quoted string values are provided. The first value is for horizontal offset, and the second value is for vertical offset. Examples: "WORLD" "WORLD" (default value), "FRACTION" "FRACTION" or "PIXEL" "PIXEL".- Hint: If the value of the offsetUnits field is FRACTION, the size of the corresponding dimension is interpreted as a fraction of the corresponding parent’s dimension.
- Warning: if only one value is provided, it applies equally to horizontal and vertical directions (width and height). More than two values are not allowed.
- Hint: MFString arrays can have multiple values, so "separate each individual string" "by using quote marks".
- Specified by:
setOffsetUnits
in interfaceLayout
- Parameters:
newValue
- is new value for the offsetUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setOffsetUnits
Assign typed object value to MFString offsetUnits field, similar tosetOffsetUnits(String[])
.- Parameters:
newValue
- is new value for the offsetUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setOffsetUnits
Assign single SFString object value to MFString offsetUnits field, similar tosetOffsetUnits(String[])
.- Parameters:
newValue
- is new value for the offsetUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setOffsetUnits
Assign singleton String value to MFString offsetUnits field, similar tosetOffsetUnits(String[])
.- Parameters:
newValue
- is new value for the offsetUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setOffsetUnits
Assign ArrayList value of MFString offsetUnits field, similar tosetOffsetUnits(String[])
.- Parameters:
newValue
- is new value for the offsetUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearOffsetUnits
-
addOffsetUnits
Add singleton String value to MFString offsetUnits field.- Parameters:
newValue
- is new value to add to the offsetUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
addOffsetUnits
Add singleton SFString value to MFString offsetUnits field.- Parameters:
newValue
- is new value to add to the offsetUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
getScaleMode
Provide array of String enumeration results (baseType MFString) ['"NONE" "NONE"' | '"NONE" "FRACTION"' | '"NONE" "STRETCH"' | '"NONE" "PIXEL"' | '"FRACTION" "NONE"' | '"FRACTION" "FRACTION"' | '"FRACTION" "STRETCH"' | '"FRACTION" "PIXEL"' | '"STRETCH" "NONE"' | '"STRETCH" "FRACTION"' | '"STRETCH" "STRETCH"' | '"STRETCH" "PIXEL"' | '"PIXEL" "NONE"' | '"PIXEL" "FRACTION"' | '"PIXEL" "STRETCH"' | '"PIXEL" "PIXEL"'] from inputOutput MFString field named scaleMode.
Tooltip: The scaleMode field specifies how the scale of the parent is modified. Two quoted string values are provided. The first value is for horizontal scale and the second value is for vertical scale. Examples: "NONE" "NONE" (default value), "FRACTION" "FRACTION", "STRETCH" "STRETCH" or "PIXEL" "PIXEL".- Hint: A scaleMode field value of NONE specifies that the corresponding scale value is not modified. Instead, the scale is inherited from its parent. Since a LayoutLayer node does not have a parent, the value of NONE reverts to FRACTION.
- Hint: A scaleMode value of FRACTION specifies a scale in the corresponding direction so that one unit is equal to the dimension (width or height) of this rectangle.
- Hint: a scaleMode value of STRETCH specifies a scale in the corresponding direction such that the resulting scale in the horizontal direction is equal to the scale in the vertical direction, thus producing a uniform scale.
- Hint: a value of PIXEL specifies a scale in the corresponding direction such that one unit is equal to one pixel.
- Warning: if only one value is provided, it applies equally to horizontal and vertical directions (width and height). More than two values are not allowed.
- Hint: MFString arrays can have multiple values, so "separate each individual string" "by using quote marks".
Available enumeration values for string comparison:NONE_NONE
,NONE_FRACTION
,NONE_STRETCH
,NONE_PIXEL
,FRACTION_NONE
,FRACTION_FRACTION
,FRACTION_STRETCH
,FRACTION_PIXEL
,STRETCH_NONE
,STRETCH_FRACTION
,STRETCH_STRETCH
,STRETCH_PIXEL
,PIXEL_NONE
,PIXEL_FRACTION
,PIXEL_STRETCH
,PIXEL_PIXEL
.- Specified by:
getScaleMode
in interfaceLayout
- Returns:
- value of scaleMode field
-
getScaleModeList
Utility method to get ArrayList value of MFString scaleMode field, similar togetScaleMode()
.- Returns:
- value of scaleMode field
-
getScaleModeString
Utility method to get String value of MFString scaleMode field, similar togetScaleMode()
.- Returns:
- value of scaleMode field
-
setScaleMode
Accessor method to assign String enumeration array (""NONE" "NONE"" | ""NONE" "FRACTION"" | ""NONE" "STRETCH"" | ""NONE" "PIXEL"" | ""FRACTION" "NONE"" | ""FRACTION" "FRACTION"" | ""FRACTION" "STRETCH"" | ""FRACTION" "PIXEL"" | ""STRETCH" "NONE"" | ""STRETCH" "FRACTION"" | ""STRETCH" "STRETCH"" | ""STRETCH" "PIXEL"" | ""PIXEL" "NONE"" | ""PIXEL" "FRACTION"" | ""PIXEL" "STRETCH"" | ""PIXEL" "PIXEL"") to inputOutput MFString field named scaleMode.
Warning: authors can only choose from a strict list of enumeration values (NONE_NONE
,NONE_FRACTION
,NONE_STRETCH
,NONE_PIXEL
,FRACTION_NONE
,FRACTION_FRACTION
,FRACTION_STRETCH
,FRACTION_PIXEL
,STRETCH_NONE
,STRETCH_FRACTION
,STRETCH_STRETCH
,STRETCH_PIXEL
,PIXEL_NONE
,PIXEL_FRACTION
,PIXEL_STRETCH
,PIXEL_PIXEL
).
Tooltip: The scaleMode field specifies how the scale of the parent is modified. Two quoted string values are provided. The first value is for horizontal scale and the second value is for vertical scale. Examples: "NONE" "NONE" (default value), "FRACTION" "FRACTION", "STRETCH" "STRETCH" or "PIXEL" "PIXEL".- Hint: A scaleMode field value of NONE specifies that the corresponding scale value is not modified. Instead, the scale is inherited from its parent. Since a LayoutLayer node does not have a parent, the value of NONE reverts to FRACTION.
- Hint: A scaleMode value of FRACTION specifies a scale in the corresponding direction so that one unit is equal to the dimension (width or height) of this rectangle.
- Hint: a scaleMode value of STRETCH specifies a scale in the corresponding direction such that the resulting scale in the horizontal direction is equal to the scale in the vertical direction, thus producing a uniform scale.
- Hint: a value of PIXEL specifies a scale in the corresponding direction such that one unit is equal to one pixel.
- Warning: if only one value is provided, it applies equally to horizontal and vertical directions (width and height). More than two values are not allowed.
- Hint: MFString arrays can have multiple values, so "separate each individual string" "by using quote marks".
- Specified by:
setScaleMode
in interfaceLayout
- Parameters:
newValue
- is new value for the scaleMode field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setScaleMode
Assign typed object value to MFString scaleMode field, similar tosetScaleMode(String[])
.- Parameters:
newValue
- is new value for the scaleMode field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setScaleMode
Assign single SFString object value to MFString scaleMode field, similar tosetScaleMode(String[])
.- Parameters:
newValue
- is new value for the scaleMode field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setScaleMode
Assign singleton String value to MFString scaleMode field, similar tosetScaleMode(String[])
.- Parameters:
newValue
- is new value for the scaleMode field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setScaleMode
Assign ArrayList value of MFString scaleMode field, similar tosetScaleMode(String[])
.- Parameters:
newValue
- is new value for the scaleMode field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearScaleMode
-
addScaleMode
Add singleton String value to MFString scaleMode field.- Parameters:
newValue
- is new value to add to the scaleMode field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
addScaleMode
Add singleton SFString value to MFString scaleMode field.- Parameters:
newValue
- is new value to add to the scaleMode field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
getSize
public float[] getSize()Provide array of Float results from inputOutput MFFloat field named size.
Tooltip: (0,+infinity) The two values in the size field define the width and height of the layout rectangle. The sizeUnits field specifies how to interpret the size values.- Warning: if only one value is provided, it applies equally to horizontal and vertical directions (width and height). More than two values are not allowed.
-
getSizeList
-
getSizeString
-
setSize
Accessor method to assign Float array to inputOutput MFFloat field named size.
Tooltip: (0,+infinity) The two values in the size field define the width and height of the layout rectangle. The sizeUnits field specifies how to interpret the size values.- Warning: if only one value is provided, it applies equally to horizontal and vertical directions (width and height). More than two values are not allowed.
-
setSize
Assign typed object value to MFFloat size field, similar tosetSize(float[])
.- Parameters:
newValue
- is new value for the size field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setSize
Assign ArrayList value of MFFloat size field, similar tosetSize(float[])
.- Parameters:
newValue
- is new value for the size field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearSize
-
setSize
Assign floating-point array value of MFFloat size field, similar tosetSize(float[])
.- Parameters:
newValue
- is new value for the size field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addSize
-
addSize
-
setSize
Utility method: double-precision set-array accessor for X3D floating-point type, similar tosetSize(float[])
.- Parameters:
newArray
- is new value for field- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getSizeUnits
Provide array of String enumeration results (baseType MFString) ['"WORLD" "WORLD"' | '"WORLD" "FRACTION"' | '"WORLD" "PIXEL"' | '"FRACTION" "WORLD"' | '"FRACTION" "FRACTION"' | '"FRACTION" "PIXEL"' | '"PIXEL" "WORLD"' | '"PIXEL" "FRACTION"' | '"PIXEL" "PIXEL"'] from inputOutput MFString field named sizeUnits.
Tooltip: The sizeUnits field values are used to interprete the offset values. Two quoted string values are provided. The first value is for horizontal size, and the second value is for vertical size. Examples: "WORLD" "WORLD" (default value), "FRACTION" "FRACTION" or "PIXEL" "PIXEL".- Hint: If the value of the sizeUnits field is FRACTION, the size of the corresponding dimension is interpreted as a fraction of the corresponding parent’s dimension.
- Warning: if only one value is provided, it applies equally to horizontal and vertical directions (width and height). More than two values are not allowed.
- Hint: MFString arrays can have multiple values, so "separate each individual string" "by using quote marks".
Available enumeration values for string comparison:WORLD_WORLD
,WORLD_FRACTION
,WORLD_PIXEL
,FRACTION_WORLD
,FRACTION_FRACTION
,FRACTION_PIXEL
,PIXEL_WORLD
,PIXEL_FRACTION
,PIXEL_PIXEL
.- Specified by:
getSizeUnits
in interfaceLayout
- Returns:
- value of sizeUnits field
-
getSizeUnitsList
Utility method to get ArrayList value of MFString sizeUnits field, similar togetSizeUnits()
.- Returns:
- value of sizeUnits field
-
getSizeUnitsString
Utility method to get String value of MFString sizeUnits field, similar togetSizeUnits()
.- Returns:
- value of sizeUnits field
-
setSizeUnits
Accessor method to assign String enumeration array (""WORLD" "WORLD"" | ""WORLD" "FRACTION"" | ""WORLD" "PIXEL"" | ""FRACTION" "WORLD"" | ""FRACTION" "FRACTION"" | ""FRACTION" "PIXEL"" | ""PIXEL" "WORLD"" | ""PIXEL" "FRACTION"" | ""PIXEL" "PIXEL"") to inputOutput MFString field named sizeUnits.
Warning: authors can only choose from a strict list of enumeration values (WORLD_WORLD
,WORLD_FRACTION
,WORLD_PIXEL
,FRACTION_WORLD
,FRACTION_FRACTION
,FRACTION_PIXEL
,PIXEL_WORLD
,PIXEL_FRACTION
,PIXEL_PIXEL
).
Tooltip: The sizeUnits field values are used to interprete the offset values. Two quoted string values are provided. The first value is for horizontal size, and the second value is for vertical size. Examples: "WORLD" "WORLD" (default value), "FRACTION" "FRACTION" or "PIXEL" "PIXEL".- Hint: If the value of the sizeUnits field is FRACTION, the size of the corresponding dimension is interpreted as a fraction of the corresponding parent’s dimension.
- Warning: if only one value is provided, it applies equally to horizontal and vertical directions (width and height). More than two values are not allowed.
- Hint: MFString arrays can have multiple values, so "separate each individual string" "by using quote marks".
- Specified by:
setSizeUnits
in interfaceLayout
- Parameters:
newValue
- is new value for the sizeUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setSizeUnits
Assign typed object value to MFString sizeUnits field, similar tosetSizeUnits(String[])
.- Parameters:
newValue
- is new value for the sizeUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setSizeUnits
Assign single SFString object value to MFString sizeUnits field, similar tosetSizeUnits(String[])
.- Parameters:
newValue
- is new value for the sizeUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setSizeUnits
Assign singleton String value to MFString sizeUnits field, similar tosetSizeUnits(String[])
.- Parameters:
newValue
- is new value for the sizeUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setSizeUnits
Assign ArrayList value of MFString sizeUnits field, similar tosetSizeUnits(String[])
.- Parameters:
newValue
- is new value for the sizeUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearSizeUnits
-
addSizeUnits
Add singleton String value to MFString sizeUnits field.- Parameters:
newValue
- is new value to add to the sizeUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
addSizeUnits
Add singleton SFString value to MFString sizeUnits field.- Parameters:
newValue
- is new value to add to the sizeUnits field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
getDEF
Provide String value from inputOutput SFString field named DEF.
Tooltip: DEF defines a unique ID name for this node, referenceable by other nodes.- Hint: descriptive DEF names improve clarity and help document a model.
- Hint: well-defined names can simplify design and debugging through improved author understanding.
- Hint: X3D Scene Authoring Hints, Naming Conventions https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions
- Overrides:
getDEF
in classX3DConcreteNode
- Returns:
- value of DEF field
- See Also:
-
setDEF
Accessor method to assign String value to inputOutput SFString field named DEF.
Tooltip: DEF defines a unique ID name for this node, referenceable by other nodes.- Hint: descriptive DEF names improve clarity and help document a model.
- Hint: well-defined names can simplify design and debugging through improved author understanding.
- Hint: X3D Scene Authoring Hints, Naming Conventions https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions
Note that setting the DEF value clears the USE value.- Specified by:
setDEF
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the DEF field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setDEF
Assign typed object value to SFString DEF field, similar tosetDEF(String)
.- Parameters:
newValue
- is new value for the DEF field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getUSE
Provide String value from inputOutput SFString field named USE.
Tooltip: USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).- Hint: USE references to previously defined DEF geometry (instead of duplicating nodes) can improve performance.
- Warning: do NOT include any child nodes, a DEF attribute, or any other attribute values (except for containerField) when defining a USE attribute.
- Warning: each USE value must match a corresponding DEF value that is defined earlier in the scene.
- Overrides:
getUSE
in classX3DConcreteNode
- Returns:
- value of USE field
- See Also:
-
setUSE
Accessor method to assign String value to inputOutput SFString field named USE.
Tooltip: USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).- Hint: USE references to previously defined DEF geometry (instead of duplicating nodes) can improve performance.
- Warning: do NOT include any child nodes, a DEF attribute, or any other attribute values (except for containerField) when defining a USE attribute.
- Warning: each USE value must match a corresponding DEF value that is defined earlier in the scene.
Note: eachUSE
node is still an independent object, with theUSE
value matching theDEF
value in the preceding object.
Warning: invoking thesetUSE()
method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.
Warning: no other operations can be performed to modify a USE node other than setting an alternate containerField value.- Specified by:
setUSE
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the USE field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setUSE
Assign typed object value to SFString USE field, similar tosetUSE(String)
.- Parameters:
newValue
- is new value for the USE field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getCssClass
Provide String value from inputOutput SFString field named class.- Overrides:
getCssClass
in classX3DConcreteElement
- Returns:
- value of class field
- See Also:
-
setCssClass
Accessor method to assign String value to inputOutput SFString field named class.- Specified by:
setCssClass
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the class field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setCssClass
Assign typed object value to SFString cssClass field, similar tosetCssClass(String)
.- Parameters:
newValue
- is new value for the class field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getHtmlID
Provide String value from inputOutput SFString field named id.- Overrides:
getHtmlID
in classX3DConcreteElement
- Returns:
- value of id field
- See Also:
-
setHtmlID
Accessor method to assign String value to inputOutput SFString field named id.- Specified by:
setHtmlID
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the id field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setHtmlID
Assign typed object value to SFString HtmlID field, similar tosetHtmlID(String)
.- Parameters:
newValue
- is new value for the id field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getCssStyle
Provide String value from inputOutput SFString field named style.- Overrides:
getCssStyle
in classX3DConcreteElement
- Returns:
- value of style field
- See Also:
-
setCssStyle
Accessor method to assign String value to inputOutput SFString field named style.- Specified by:
setCssStyle
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the style field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setCssStyle
Assign typed object value to SFString cssClass field, similar tosetCssStyle(String)
.- Parameters:
newValue
- is new value for the style field.- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setUSE
Assign a USE reference to another DEF node of same node type, similar tosetUSE(String)
.
Warning: note that thesetUSE()
method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.
Warning: no other operations can be performed to modify a USE node other than setting an alternate containerField value.- Parameters:
DEFnode
- must have a DEF value defined- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addComments
Add comment as String to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newComment
- initial value- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
addComments
Add comments as String[] array to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newComments
- array of comments- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addComments
Add CommentsBlock to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newCommentsBlock
- block of comments to add- Returns:
Layout
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
toStringX3D
Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.- Specified by:
toStringX3D
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- X3D string
- See Also:
-
toStringClassicVRML
Recursive method to provide ClassicVRML string serialization.- Specified by:
toStringClassicVRML
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- ClassicVRML string
- See Also:
-
toStringVRML97
Recursive method to provide VRML97 string serialization.- Specified by:
toStringVRML97
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- VRML97 string
- See Also:
-
findElementByNameValue
Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element. Elements with name fields include meta, Metadata* nodes, field/fieldValue, ProtoDeclare/ExternProtoDeclare/ProtoInstance, CAD and HAnim nodes.
Warning: first start with findAncestorScene() to check entire scene graph, or findAncestorX3D() to check entire model document.
Warning: more than one element may be found that has the same name, this method does not handle that case.- Specified by:
findElementByNameValue
in classX3DConcreteElement
- Parameters:
nameValue
- is value of the name field being searched for in this element and child elements(if any)- Returns:
- object reference to found element, null otherwise
- See Also:
-
findElementByNameValue
Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element. Elements with name fields include meta, Metadata* nodes, field/fieldValue, ProtoDeclare/ExternProtoDeclare/ProtoInstance, CAD and HAnim nodes.
Warning: first start with findAncestorScene() to check entire scene graph, or findAncestorX3D() to check entire model document.
Warning: more than one element may be found that has the same name, this method does not handle that case.- Specified by:
findElementByNameValue
in classX3DConcreteElement
- Parameters:
nameValue
- is value of the name field being searched for in this element and child elements(if any)elementName
- identifies the element of interest (meta MetadataString ProtoDeclare CADassembly ProtoInstance HAnimHumanoid etc.)- Returns:
- object reference to found element, null otherwise
- See Also:
-
hasElementByNameValue
Recursive method to determine whether node or statement with given name attribute is found, meaning both objects are attached to same scene graph.- Parameters:
nameValue
- is value of the name field being searched for in this element and child elements(if any)elementName
- identifies the element of interest (meta MetadataString ProtoDeclare CADassembly ProtoInstance HAnimHumanoid etc.)- Returns:
- whether node is found
- See Also:
-
findNodeByDEF
Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.
Warning: first start with findAncestorScene() to check entire scene graph, or findAncestorX3D() to check entire model document.
Warning: more than one element may be found that has the same DEF, this method does not handle that case.- Specified by:
findNodeByDEF
in classX3DConcreteElement
- Parameters:
DEFvalue
- is value of the name field being searched for in this element and child elements(if any)- Returns:
- object reference to found node, null otherwise
- See Also:
-
hasNodeByDEF
Recursive method to determine whether node with DEFvalue is found, meaning both objects are attached to same scene graph.- Parameters:
DEFvalue
- is value of the name field being searched for in this element and child elements(if any)- Returns:
- whether node is found
- See Also:
-
validate
Recursive method to validate this element plus all contained nodes and statements, using both datatype-specification value checks and regular expression (regex) checking of corresponding string values. TODO document specific validation methods.- Specified by:
validate
in classX3DConcreteElement
- Returns:
- validation results (if any)
-