SnapCode Update April 11: Added ShowCoords and more

This week added a nice SnapCode feature for working with the standard graphics coordinate system: a new method on the Scene class called setShowCoords(boolean) to have the scene draw the coordinate system along with the current mouse point. This makes it easier to plot coordinates in the scene.

Additionally, there are a couple new methods to customize the scene and console. The Scene class has a getColor()/setColor() method. And you can now ask the Scene for the Console, which has new methods to set the Font and FontSize.

Finally, there are a couple of new actor methods to get the angle and distance to the mouse or another actor: getAngle(“Mouse/Actor-Name”), getDistance(“Mouse/Actor-Name”). These make it easy to have an actor point or move to the mouse or another actor.

Here is an image of the scene with ShowCoords enabled.

ShowCoords

About these ads

2 Responses to “SnapCode Update April 11: Added ShowCoords and more”

  1. JavaFX links of the week, April 14 // JavaFX News, Demos and Insight // FX Experience Says:

    […] Martin has updated SnapCode, his IDE and RAD tool for education, entertainment and the […]

  2. Java desktop links of the week, April 14 « Jonathan Giles Says:

    […] Martin has updated SnapCode, his IDE and RAD tool for education, entertainment and the […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: