Package org.cy3sbml.layout
Record Class CyBoundingBox
java.lang.Object
java.lang.Record
org.cy3sbml.layout.CyBoundingBox
- Record Components:
cyId- cyId of the node, null in old layout filessbmlId- SBML id of the node, null for nodes of elements without idglyph- glyph of the node of a layout network, null for all other nodes
public record CyBoundingBox(String cyId, String sbmlId, String glyph, double x, double y, double height, double width)
extends Record
Position and size of a node in a layout file.
The node is identified by its cyId, the unique id of the SBML element of the node
(column cyId), which every node of an imported SBML network has. The SBML id
(column sbml id) is only set for nodes of elements with an id; layout files written
before the cyId was stored identify the nodes by it alone. In a layout network the
glyphs of one element (aliases) have the same cyId, so their nodes are identified by
the glyph (column layout_glyph).
-
Constructor Summary
ConstructorsConstructorDescriptionCyBoundingBox(String cyId, String sbmlId, String glyph, double x, double y, double height, double width) Creates an instance of aCyBoundingBoxrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncyId()Returns the value of thecyIdrecord component.final booleanIndicates whether some other object is "equal to" this one.glyph()Returns the value of theglyphrecord component.final inthashCode()Returns a hash code value for this object.doubleheight()Returns the value of theheightrecord component.sbmlId()Returns the value of thesbmlIdrecord component.final StringtoString()Returns a string representation of this record class.doublewidth()Returns the value of thewidthrecord component.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.
-
Constructor Details
-
CyBoundingBox
public CyBoundingBox(String cyId, String sbmlId, String glyph, double x, double y, double height, double width) Creates an instance of aCyBoundingBoxrecord class.- Parameters:
cyId- the value for thecyIdrecord componentsbmlId- the value for thesbmlIdrecord componentglyph- the value for theglyphrecord componentx- the value for thexrecord componenty- the value for theyrecord componentheight- the value for theheightrecord componentwidth- the value for thewidthrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
cyId
Returns the value of thecyIdrecord component.- Returns:
- the value of the
cyIdrecord component
-
sbmlId
Returns the value of thesbmlIdrecord component.- Returns:
- the value of the
sbmlIdrecord component
-
glyph
Returns the value of theglyphrecord component.- Returns:
- the value of the
glyphrecord component
-
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
height
public double height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
width
public double width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-