Record Class GexfUtil.VisualData
java.lang.Object
java.lang.Record
cloud.opencode.base.graph.serializer.GexfUtil.VisualData
- Record Components:
x- x-coordinate | x坐标y- y-coordinate | y坐标size- node size | 节点大小color- color in hex format (#RRGGBB) | 十六进制颜色格式
- Enclosing class:
GexfUtil
public static record GexfUtil.VisualData(double x, double y, double size, String color)
extends Record
Visual data for graph vertices.
图顶点的可视化数据。
- Since:
- JDK 25, opencode-base-graph V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionVisualData(double x, double y, double size, String color) Creates an instance of aVisualDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static GexfUtil.VisualDataCreate visual data with all properties.static GexfUtil.VisualDataposition(double x, double y) Create visual data with position only.doublesize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.
-
Constructor Details
-
Method Details
-
position
Create visual data with position only. 仅创建带位置的可视化数据。- Parameters:
x- x-coordinate | x坐标y- y-coordinate | y坐标- Returns:
- visual data | 可视化数据
-
of
Create visual data with all properties. 创建带所有属性的可视化数据。- Parameters:
x- x-coordinate | x坐标y- y-coordinate | y坐标size- node size | 节点大小color- color | 颜色- Returns:
- visual data | 可视化数据
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
x
-
y
-
size
-
color
-