ModelNode
class ModelNode
Extends: BaseModelNode
Package: dev.joid.lib.ui.node.impl.model · Module: core · Source: ModelNode.java
Draws a 3D model at a zoom and a rotation that your code sets.

Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
ModelNode | create(double x, double y, double width, double height) factory | Creates a model node at x, y with this width and height. |
| ModelNode(double x, double y, double width, double height) protected | Called by a subclass with the same arguments as create. |
Properties
Section titled “Properties”| Property | Type | Default | Summary |
|---|---|---|---|
| zoom signal | double | 1D | Scale of the model: 1 fits its width to the node. |
| rotationYaw signal | double | 0D | Rotation of the model around its vertical axis, in degrees. |
| rotationPitch signal | double | 0D | Rotation of the model around its horizontal axis, in degrees. |
Inherited from BaseModelNode (1)
Inherited from Node (24)
x · y · width · height · position · anchor · anchorX · anchorY · aspectRatio · zindex · zlevel · skeleton · visible · enabled · interactive · cursor · hoverDuration · hoverEquation · hover · overflow · scrollSpeed · scrollbar · label · draggable
Methods
Section titled “Methods”For subclasses
Section titled “For subclasses”| Returns | Signature | Summary |
|---|---|---|
void | draw(double mouseX, double mouseY) hook | Draws the model at its zoom and rotation. |
Inherited from Node (128)
load · render · renderHover · updateScroll · updateScrollX · updateScrollY · append · attach · body · clearChildren · getChild · getChildren · getNodeListAt · getParent · isAttached · getAbsoluteX · getAbsoluteY · getAbsoluteDefaultX · getAbsoluteDefaultY · toDrawX · toDrawY · w · h · dw · dh · mw · mh · aw · ah · ax · ay · getDefaultWidth · getDefaultHeight · removeHover · clearHover · refreshHover · getResolvedCursor · hoverValue · getHoverAnimator · isHovered · handleMousePressed · handleMouseReleased · handleMouseDragged · handleMouseScroll · handleCharTyped · handleKeyPressed · handleKeyReleased · getLastClickTime · getLastClickButton · getLastKey · getLastKeyTime · scrollX · scrollY · scrollTo · beforeScroll · hasOverflowX · hasOverflowY · getOverflowArea · getScrollX · getScrollY · getTargetScrollX · getTargetScrollY · getMaxScrollX · getMaxScrollY · isScrollEndX · isScrollEndY · startDragging · stopDragging · beforeDragStart · beforeDragDrop · isDragging · getDragX · getDragY · isDragged · getDragSource · getDraggedNode · getStartDragX · getStartDragY · getTargetDragX · getTargetDragY · effect · removeEffect · clearEffects · hasEffect · getEffect · layer · clearLayers · animate · removeAnimator · wait · watch · hasListener · isVisibleProperty · isMounted · getIndex · getUi · getHierarchy · getMappedIndex · getTaskList · getShortcutList · toJson · toString · getEventBus · getBodyConsumer · getDefaultX · getDefaultY · getLayoutX · getLayoutY · getShiftX · getShiftY · isStepping · getLastCodepoint · getLoadCount · getRenderTime · remove · self · copy · useStore · addTask · removeTask · addShortcut · removeShortcut · layoutPosition · layoutSize · fit · move · beforeMove · hoverColor
Events
Section titled “Events”Inherited from Node (21)
onUpdate · onDetach · onInit · onRender · onDraw · onMount · onHoverStart · onHover · onHoverEnd · onScroll · onScrollToEnd · onScrollEndReached · onDragStart · onDrag · onDragDrop · onDragSnap · onMove · onChildAppend · onClick · onAnimate · onWatch
Creation details
Section titled “Creation details”create
Section titled “create”ModelNode create(double x, double y, double width, double height) factory
Creates a model node at x, y with this width and height.
ModelNode
Section titled “ModelNode”ModelNode(double x, double y, double width, double height) protected
Called by a subclass with the same arguments as create.
Property details
Section titled “Property details”this zoom(double zoom)fluentthis zoom(Supplier<Double> zoom)fluent signaldouble getZoom()
Default: 1D
Scale of the model: 1 fits its width to the node.
rotationYaw
Section titled “rotationYaw”this rotationYaw(double rotationYaw)fluentthis rotationYaw(Supplier<Double> rotationYaw)fluent signaldouble getRotationYaw()
Default: 0D
Rotation of the model around its vertical axis, in degrees.
rotationPitch
Section titled “rotationPitch”this rotationPitch(double rotationPitch)fluentthis rotationPitch(Supplier<Double> rotationPitch)fluent signaldouble getRotationPitch()
Default: 0D
Rotation of the model around its horizontal axis, in degrees.
Method details
Section titled “Method details”void draw(double mouseX, double mouseY) hook
Draws the model at its zoom and rotation.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
