http://www.sunstudentcourses.com/course/view.php?id=12
This course is intended to be used by students wanting to learn how to develop applications for Sun Small Programmable Object Technology (SPOTs).
Monday, February 16, 2009
Solaris
http://www.opensolaris.com/
This is website that people can download the opensolaris..
http://www.opensolaris.com/get/index.jsp#mirrors
There is solaris crash course available
This is website that people can download the opensolaris..
http://www.opensolaris.com/get/index.jsp#mirrors
There is solaris crash course available
Sunday, February 15, 2009
edit
import javafx.ui.*;
Frame {
title: "Hello World JavaFX"
width: 200
height: 200
content: Label {
text: "Hello World JavaFX"
}
visible: true
}
Frame {
title: "Hello World JavaFX"
width: 200
height: 200
content: Label {
text: "Hello World JavaFX"
}
visible: true
}
Open /javafxintro/exercises/exercise3/HelloWorld.fx using JavaFXPad > File > Open
Open /javafxintro/exercises/exercise3/HelloWorld.fx using JavaFXPad > File > Open
graphical transformation
* Introduction: This is a introductory program. This illustrates how a liner gradient of colors can be achieved. Modify the code for different colors and different stops.
* Shapes: This illustrated how to create basic shapes such as circles, rectangles and so on with different fill colors, strokes and so on. Modify the code for different values.
* Painting: This is similar to the example above with different fill colors to experiment with.
* Transformations: This illustrates how to use the transform function. You can do Translate, Rotate, Scale or Skew.
* Groups: This illustrated how to have multiple Graphical objects by using the Group keyword. You could add more Graphical components here.
* Swing Components: This illustrates Swing components by overlaying text fields and so on to the previous example.
* Images: This program illustrates how the same transformations used in the earlier example can be used on a graphical object.
* Transparency: This program illustrates how to use opacity which takes a value from 0 to 1, 0 being transparent and 1 being opaque. By default, objects are opaque.
* Filter effects: This program illustrates the usage of the filters such as Shadow, Blur, Noise and ShapeBurst.
* Input events: This program illustrates how to capture input events and details associated with the event such as onMouseClicked and so on.
* Areas: This program illustrates how to Add, Subtract, Intersect and XOR areas.
* Clipping: This program illustrates how you can clip 2D objects using other objects.
* User-defined Graphics Objects: This program illustrates how you can cretate user-defined objects.
* Animation: The final program in the tutorial illustrates how to use dur in conjunction with transform to animate objects. You could try to combine some animations such as animating both horizontally and vertically.
* Shapes: This illustrated how to create basic shapes such as circles, rectangles and so on with different fill colors, strokes and so on. Modify the code for different values.
* Painting: This is similar to the example above with different fill colors to experiment with.
* Transformations: This illustrates how to use the transform function. You can do Translate, Rotate, Scale or Skew.
* Groups: This illustrated how to have multiple Graphical objects by using the Group keyword. You could add more Graphical components here.
* Swing Components: This illustrates Swing components by overlaying text fields and so on to the previous example.
* Images: This program illustrates how the same transformations used in the earlier example can be used on a graphical object.
* Transparency: This program illustrates how to use opacity which takes a value from 0 to 1, 0 being transparent and 1 being opaque. By default, objects are opaque.
* Filter effects: This program illustrates the usage of the filters such as Shadow, Blur, Noise and ShapeBurst.
* Input events: This program illustrates how to capture input events and details associated with the event such as onMouseClicked and so on.
* Areas: This program illustrates how to Add, Subtract, Intersect and XOR areas.
* Clipping: This program illustrates how you can clip 2D objects using other objects.
* User-defined Graphics Objects: This program illustrates how you can cretate user-defined objects.
* Animation: The final program in the tutorial illustrates how to use dur in conjunction with transform to animate objects. You could try to combine some animations such as animating both horizontally and vertically.
Java FX
http://java.sun.com/javase/technologies/desktop/javawebstart/index.jsp
Verify Java WebStart is installed on my system.
Make sure that Java Web Start is installed on the client system.
import javafx.ui.*;
import javafx.ui.canvas.*;
import javafx.ui.filter.*;
Group {
var x = 0
var y = 0
var alpha = 1
transform: bind translate(x, y)
opacity: bind alpha
onMouseDragged: operation(e) {
// updating x and y will move the group
// since a translation transform is bound to them
x += e.localDragTranslation.x;
y += e.localDragTranslation.y;
}
onMouseClicked: operation(e) {
// updating alpha will fade the group
// since the opacity of the group is bound to it
if (alpha == 1) {
alpha = [0, 1] dur 1000 motion EASEBOTH;
}
}
toolTipText: "Click to fade, or drag to move rectangle"
content:
[Rect {
cursor: HAND
selectable: true
x: 10
y: 10
width: 385
height: 220
fill: LinearGradient {
x1: 0
y1: 0
x2: 1
y2: 0
stops:
[Stop {offset: 0, color: gray},
Stop {offset: .5, color: new Color(.8, .8, .8, 1)},
Stop {offset: 1, color: gray}]
}
stroke: black
strokeWidth: 1
},
Group {
function filt(color:Color, bump:Number, intensity:Number, burstFactor:Number) =
[ShapeBurst {factor: burstFactor},
LightFilter {
highlight: 3
viewDistance: 300
diffuseColor: color
bumpSoftness: bump
light: AmbientLight {intensity: intensity}
}];
content: [
Group {
filter: ShadowFilter {x: 10, y: -9, distance: 10 shadowColor: black, opacity: 0.7 }
content: [
Rect {height: 150, width: 210, transform: scale(2, 2)},
Path {
d: [
MoveTo {
x: 50.0
y: 90.0
absolute: true
},
CurveTo {
x1: 0.0
y1: 90.0
x2: 0.0
y2: 30.0
x3: 50.0
y3: 30.0
smooth: false
absolute: true
},
LineTo {
x: 150.0
y: 30.0
absolute: true
},
CurveTo {
x1: 200.0
y1: 30.0
x2: 200.0
y2: 90.0
x3: 150.0
y3: 90.0
smooth: false
absolute: true
},
ClosePath {},
]
stroke: rgba(0xD9, 0x00, 0x00, 0xff)
strokeWidth: 10.0
transform: scale(2, 2)
filter: valueof filt(red:Color, 6, .5, 4)
},
Path {
d: [
MoveTo {
x: 60.0
y: 80.0
absolute: true
},
CurveTo {
x1: 30.0
y1: 80.0
x2: 30.0
y2: 40.0
x3: 60.0
y3: 40.0
smooth: false
absolute: true
},
LineTo {
x: 140.0
y: 40.0
absolute: true
},
CurveTo {
x1: 170.0
y1: 40.0
x2: 170.0
y2: 80.0
x3: 140.0
y3: 80.0
smooth: false
absolute: true
},
ClosePath {},
]
fill: rgba(0xD9, 0x00, 0x00, 0xff)
transform: scale(2, 2)
filter: valueof filt(red:Color, 5, .5, 7)
},
Group {
content: [
Text {
verticalAlignment: BASELINE
content: 'JavaFX'
font: Font {faceName: 'Verdana', style: BOLD, size: 25.0}
fill: white
x: 50.0
y: 69.0
transform: scale(2, 2)
filter: [ShadowFilter {x: 5, y: -5, distance: 3, shadowColor:black opacity: 0.8}]
}]
}]
}]
}]
}
Subscribe to:
Comments (Atom)