This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creating a single bone | |
final Bone bone = new Bone(110, 90); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adding bone b2 to the children of bone b1 | |
b1.getChildren().add(b2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Attaching visual elements to a bone | |
final Bone bone = new Bone(50, 30); | |
bone.getContent().addAll( | |
new Circle(20), | |
new Ellipse(45, 0, 25, 15), | |
new Circle(80, 0, 10) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Definition of head | |
final Bone head = new Bone(30, 90); | |
head.getContent().add(new Ellipse(20, 15)); | |
// Definition of torso | |
final Bone torso = new Bone(80, 0); | |
torso.getContent().add(new Ellipse(40, 0, 50, 20)); | |
head.getChildren().add(torso); | |
final Bone[] upperArm = new Bone[2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Definition of head | |
final Bone head = new Bone(30, 90); | |
// Definition of torso | |
final Bone torso = new Bone(80, 0); | |
head.getChildren().add(torso); | |
final Bone[] upperArm = new Bone[2]; | |
final Bone[] upperLeg = new Bone[2]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.netopyr.javafx.ik.Bone; | |
import com.netopyr.javafx.ik.Skeleton; | |
import javafx.application.Application; | |
import javafx.scene.Scene; | |
import javafx.scene.shape.Circle; | |
import javafx.scene.shape.Ellipse; | |
import javafx.stage.Stage; | |
public class Dummy extends Application { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expect(yourTests).to.be("simple"); | |
expect(javasAge).to.be.within(15, 25); | |
expect(collection).to.include(aSpecificValue); | |
expect(java).to.have.a.property("age").which.is.at.least(20); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ tagName: 'div', | |
attributes: { | |
class: 'view' | |
}, | |
children: [ | |
{ tagName: 'input', ... }, | |
{ tagName: 'label', ... }, | |
{ tagName: 'button', ... } | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.netopyr.reduxfx.todo.state; | |
import javaslang.collection.Seq; | |
import org.apache.commons.lang3.builder.ToStringBuilder; | |
public final class AppModel { | |
private final String newTodoText; | |
private final Seq<TodoEntry> todos; | |
private final Filter filter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return HBox( | |
padding(50.0), | |
spacing(20.0), | |
ColorChooser( | |
color(state.getColor(), (oldValue, newValue) -> Actions.updateColor(newValue)) | |
), | |
Region( | |
background(state.getColor()), | |
minWidth(100.0), | |
minHeight(100.0) |
OlderNewer