JavaFX
http://w.atwiki.jp/javafx/
JavaFX
ja
2008-05-28T00:11:41+09:00
1211901101
-
Applet
https://w.atwiki.jp/javafx/pages/46.html
|テーブルは|縦棒で|くぎります|
2008-05-28T00:11:41+09:00
1211901101
-
チュートリアル/デザイナーズガイド
https://w.atwiki.jp/javafx/pages/45.html
*デザイナーズガイド
JavaFXでGUIをクールに実装するためのデザインガイド
----
2007-06-20T00:50:26+09:00
1182268226
-
トップページ
https://w.atwiki.jp/javafx/pages/1.html
*JavaFX
JavaOne2007で発表された「JavaFX Script」についていろいろまとめるWiki。
JavaScriptじゃないよ。
最新バージョンは0.0.2?
Open 2007/06/07
&color(red){OpenJFXにリファレンスを寄付しました。(2007/6/16)}
おまけ:[[ジョナサンのブログ(JavaFXのこと)>http://blogs.sun.com/jonathan_ja/entry/%E5%95%8F%E9%A1%8C%E3%81%AF_%E5%A0%B4%E6%89%80_%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%8F_%E6%99%82]]
// 時機を見てmixiへのコミュリンクを貼る
***&color(blue){[[リファレンス]]}
#ls3(リファレンス)
// ignore=(キーワード) (キーワード)が含まれるページは一覧に表示しない
***&color(blue){[[チュートリアル]]}
#ls(チュートリアル)
***&color(blue){[[サンプルプログラム集]]}
#ls(サンプルプログラム集)
***&color(blue){[[関連した記事・リンク]]}
#ls(関連した記事・リンク)
----
[[SandBox]] [[メモ]] [[このwikiの管理人]] [[管理人ページ]]
&trackback()
2007-06-17T08:10:22+09:00
1182035422
-
リファレンス/JavaFX Script リファレンス日本語版
https://w.atwiki.jp/javafx/pages/25.html
*&color(red){JavaFX Script プログラミング}
このwikiに掲載していた日本語リファレンスはOpenJFXに寄付いたしました。(2007/6/16)
[[https://openjfx.dev.java.net/ja/JavaFX_Programming_Language.html]]
----
&trackback()
2007-06-17T08:02:15+09:00
1182034935
-
管理人ページ
https://w.atwiki.jp/javafx/pages/35.html
2007-06-16T07:14:23+09:00
1181945663
-
メモ
https://w.atwiki.jp/javafx/pages/27.html
*メモ
**JavaFX Script リファレンス日本語版
・日本語訳の原文は完成
今後の課題
・原文の修正および訳語に対する議論
・原文を意識した文字装飾等
**はじめてのJavaFX for Swingプログラマ
・日本語訳の原文を作るため管理人のみ編集可能状態
**じょりろじゃメモ
Dropイベントがある
ちゃんとファイルのドロップを認識できている
----
2007-06-15T07:17:56+09:00
1181859476
-
対応表(Color)
https://w.atwiki.jp/javafx/pages/15.html
|aliceblue|&ref(http://www34.atwiki.jp/javafx/pub/up/aliceblue.jpg)|antiquewhite|&ref(http://www34.atwiki.jp/javafx/pub/up/antiquewhite.jpg)|aqua|&ref(http://www34.atwiki.jp/javafx/pub/up/aqua.jpg)|
|aquamarine|&ref(http://www34.atwiki.jp/javafx/pub/up/aquamarine.jpg)|azure|&ref(http://www34.atwiki.jp/javafx/pub/up/azure.jpg)|beige|&ref(http://www34.atwiki.jp/javafx/pub/up/beige.jpg)|
|bisque|&ref(http://www34.atwiki.jp/javafx/pub/up/bisque.jpg)|black|&ref(http://www34.atwiki.jp/javafx/pub/up/black.JPG)|blanchedalmond|&ref(http://www34.atwiki.jp/javafx/pub/up/blanchedalmond.jpg)|
|blue|&ref(http://www34.atwiki.jp/javafx/pub/up/blue.JPG)|blueviolet|&ref(http://www34.atwiki.jp/javafx/pub/up/blueviolet.jpg)|brown|&ref(http://www34.atwiki.jp/javafx/pub/up/brown.jpg)|
|burlywood|&ref(http://www34.atwiki.jp/javafx/pub/up/burlywood.jpg)|cadetblue|&ref(http://www34.atwiki.jp/javafx/pub/up/cadetblue.jpg)|chartreuse|&ref(http://www34.atwiki.jp/javafx/pub/up/chartreuse.jpg)|
|chocolate|&ref(http://www34.atwiki.jp/javafx/pub/up/chocolate.jpg)|coral|&ref(http://www34.atwiki.jp/javafx/pub/up/coral.jpg)|cornflowerblue|&ref(http://www34.atwiki.jp/javafx/pub/up/cornflowerblue.jpg)|
|cornsilk|&ref(http://www34.atwiki.jp/javafx/pub/up/cornsilk.jpg)|crimson|&ref(http://www34.atwiki.jp/javafx/pub/up/crimson.jpg)|cyan|&ref(http://www34.atwiki.jp/javafx/pub/up/cyan.jpg)|
|darkblue|&ref(http://www34.atwiki.jp/javafx/pub/up/darkblue.JPG)|darkcyan|&ref(http://www34.atwiki.jp/javafx/pub/up/darkcyan.jpg)|darkgoldenrod|&ref(http://www34.atwiki.jp/javafx/pub/up/darkgoldenrod.jpg)|
|darkgray|&ref(http://www34.atwiki.jp/javafx/pub/up/darkgray.jpg)|darkgreen|&ref(http://www34.atwiki.jp/javafx/pub/up/darkgreen.JPG)|darkkhaki|&ref(http://www34.atwiki.jp/javafx/pub/up/darkkhaki.jpg)|
|darkmagenta|&ref(http://www34.atwiki.jp/javafx/pub/up/darkmagenta.jpg)|darkolivegreen|&ref(http://www34.atwiki.jp/javafx/pub/up/darkolivegreen.jpg)|darkorange|&ref(http://www34.atwiki.jp/javafx/pub/up/darkorange.jpg)|
|darkorchid|&ref(http://www34.atwiki.jp/javafx/pub/up/darkorchid.jpg)|darkred|&ref(http://www34.atwiki.jp/javafx/pub/up/darkred.jpg)|darksalmon|&ref(http://www34.atwiki.jp/javafx/pub/up/darksalmon.jpg)|
|darkseagreen|&ref(http://www34.atwiki.jp/javafx/pub/up/darkseagreen.jpg)|darkslateblue|&ref(http://www34.atwiki.jp/javafx/pub/up/darkslateblue.jpg)|darkslategray|&ref(http://www34.atwiki.jp/javafx/pub/up/darkslategray.jpg)|
|darkturquoise|&ref(http://www34.atwiki.jp/javafx/pub/up/darkturquoise.jpg)|darkviolet|&ref(http://www34.atwiki.jp/javafx/pub/up/darkviolet.jpg)|deeppink|&ref(http://www34.atwiki.jp/javafx/pub/up/deeppink.jpg)|
|deepskyblue|&ref(http://www34.atwiki.jp/javafx/pub/up/deepskyblue.jpg)|dimgray|&ref(http://www34.atwiki.jp/javafx/pub/up/dimgray.jpg)|dodgerblue|&ref(http://www34.atwiki.jp/javafx/pub/up/dodgerblue.jpg)|
|firebrick|&ref(http://www34.atwiki.jp/javafx/pub/up/firebrick.jpg)|floralwhite|&ref(http://www34.atwiki.jp/javafx/pub/up/floralwhite.jpg)|forestgreen|&ref(http://www34.atwiki.jp/javafx/pub/up/forestgreen.jpg)|
|fuchsia|&ref(http://www34.atwiki.jp/javafx/pub/up/fuchsia.jpg)|gainsboro|&ref(http://www34.atwiki.jp/javafx/pub/up/gainsboro.jpg)|ghostwhite|&ref(http://www34.atwiki.jp/javafx/pub/up/ghostwhite.jpg)|
|gold|&ref(http://www34.atwiki.jp/javafx/pub/up/gold.jpg)|goldenrod|&ref(http://www34.atwiki.jp/javafx/pub/up/goldenrod.jpg)|gray|&ref(http://www34.atwiki.jp/javafx/pub/up/gray.jpg)|
|green|&ref(http://www34.atwiki.jp/javafx/pub/up/green.jpg)|greenyellow|&ref(http://www34.atwiki.jp/javafx/pub/up/greenyellow.jpg)|grey|&ref(http://www34.atwiki.jp/javafx/pub/up/grey.jpg)|
|honeydew|&ref(http://www34.atwiki.jp/javafx/pub/up/honeydew.jpg)|hotpink|&ref(http://www34.atwiki.jp/javafx/pub/up/hotpink.jpg)|indianred|&ref(http://www34.atwiki.jp/javafx/pub/up/indianred.jpg)|
|indigo|&ref(http://www34.atwiki.jp/javafx/pub/up/indigo.jpg)|ivory|&ref(http://www34.atwiki.jp/javafx/pub/up/ivory.jpg)|khaki|&ref(http://www34.atwiki.jp/javafx/pub/up/khaki.jpg)|
|lavender|&ref(http://www34.atwiki.jp/javafx/pub/up/lavender.jpg)|lavenderblush|&ref(http://www34.atwiki.jp/javafx/pub/up/lavenderblush.jpg)|lawngreen|&ref(http://www34.atwiki.jp/javafx/pub/up/lawngreen.jpg)|
|lemonchiffon|&ref(http://www34.atwiki.jp/javafx/pub/up/lemonchiffon.jpg)|lightGray|&ref(http://www34.atwiki.jp/javafx/pub/up/lightGray.jpg)|lightblue|&ref(http://www34.atwiki.jp/javafx/pub/up/lightblue.jpg)|
|lightcoral|&ref(http://www34.atwiki.jp/javafx/pub/up/lightcoral.jpg)|lightcyan|&ref(http://www34.atwiki.jp/javafx/pub/up/lightcyan.jpg)|lightgoldenrodyellow|&ref(http://www34.atwiki.jp/javafx/pub/up/lightgoldenrodyellow.jpg)|
|lightgreen|&ref(http://www34.atwiki.jp/javafx/pub/up/lightgreen.jpg)|lightgrey|&ref(http://www34.atwiki.jp/javafx/pub/up/lightgrey.jpg)|lightpink|&ref(http://www34.atwiki.jp/javafx/pub/up/lightpink.jpg)|
|lightsalmon|&ref(http://www34.atwiki.jp/javafx/pub/up/lightsalmon.jpg)|lightseagreen|&ref(http://www34.atwiki.jp/javafx/pub/up/lightseagreen.jpg)|lightskyblue|&ref(http://www34.atwiki.jp/javafx/pub/up/lightblue.jpg)|
|lightslategray|&ref(http://www34.atwiki.jp/javafx/pub/up/lightslategray.jpg)|lightsteelblue|&ref(http://www34.atwiki.jp/javafx/pub/up/lightsteelblue.jpg)|lightyellow|&ref(http://www34.atwiki.jp/javafx/pub/up/lightyellow.jpg)|
|lime|&ref(http://www34.atwiki.jp/javafx/pub/up/lime.jpg)|limegreen|&ref(http://www34.atwiki.jp/javafx/pub/up/limegreen.jpg)|linen|&ref(http://www34.atwiki.jp/javafx/pub/up/linen.jpg)|
|magenta|&ref(http://www34.atwiki.jp/javafx/pub/up/magenta.jpg)|maroon|&ref(http://www34.atwiki.jp/javafx/pub/up/maroon.jpg)|mediumaquamarine|&ref(http://www34.atwiki.jp/javafx/pub/up/mediumaquamarine.jpg)|
|mediumblue|&ref(http://www34.atwiki.jp/javafx/pub/up/mediumblue.JPG)|mediumorchid|&ref(http://www34.atwiki.jp/javafx/pub/up/mediumorchid.jpg)|mediumpurple|&ref(http://www34.atwiki.jp/javafx/pub/up/mediumpurple.jpg)|
|mediumseagreen|&ref(http://www34.atwiki.jp/javafx/pub/up/mediumseagreen.jpg)|mediumslateblue|&ref(http://www34.atwiki.jp/javafx/pub/up/mediumslateblue.jpg)|mediumspringgreen|&ref(http://www34.atwiki.jp/javafx/pub/up/mediumspringgreen.jpg)|
|mediumturquoise|&ref(http://www34.atwiki.jp/javafx/pub/up/mediumturquoise.jpg)|mediumvioletred|&ref(http://www34.atwiki.jp/javafx/pub/up/mediumvioletred.jpg)|midnightblue|&ref(http://www34.atwiki.jp/javafx/pub/up/midnightblue.jpg)|
|mintcream|&ref(http://www34.atwiki.jp/javafx/pub/up/mintcream.jpg)|mistyrose|&ref(http://www34.atwiki.jp/javafx/pub/up/mistyrose.jpg)|moccasin|&ref(http://www34.atwiki.jp/javafx/pub/up/moccasin.jpg)|
|navajowhite|&ref(http://www34.atwiki.jp/javafx/pub/up/navajowhite.jpg)|navy|&ref(http://www34.atwiki.jp/javafx/pub/up/navy.JPG)|oldlace|&ref(http://www34.atwiki.jp/javafx/pub/up/oldlace.jpg)|
|olive|&ref(http://www34.atwiki.jp/javafx/pub/up/olive.jpg)|olivedrab|&ref(http://www34.atwiki.jp/javafx/pub/up/olivedrab.jpg)|orange|&ref(http://www34.atwiki.jp/javafx/pub/up/orange.jpg)|
|orangered|&ref(http://www34.atwiki.jp/javafx/pub/up/orangered.jpg)|orchid|&ref(http://www34.atwiki.jp/javafx/pub/up/orchid.jpg)|palegoldenrod|&ref(http://www34.atwiki.jp/javafx/pub/up/palegoldenrod.jpg)|
|palegreen|&ref(http://www34.atwiki.jp/javafx/pub/up/palegreen.jpg)|paleturquoise|&ref(http://www34.atwiki.jp/javafx/pub/up/paleturquoise.jpg)|palevioletred|&ref(http://www34.atwiki.jp/javafx/pub/up/palevioletred.jpg)|
|papayawhip|&ref(http://www34.atwiki.jp/javafx/pub/up/papayawhip.jpg)|peachpuff|&ref(http://www34.atwiki.jp/javafx/pub/up/peachpuff.jpg)|peru|&ref(http://www34.atwiki.jp/javafx/pub/up/peru.jpg)|
|pink|&ref(http://www34.atwiki.jp/javafx/pub/up/pink.jpg)|plum|&ref(http://www34.atwiki.jp/javafx/pub/up/plum.jpg)|powderblue|&ref(http://www34.atwiki.jp/javafx/pub/up/powderblue.jpg)|
|purple|&ref(http://www34.atwiki.jp/javafx/pub/up/purple.jpg)|red|&ref(http://www34.atwiki.jp/javafx/pub/up/red.jpg)|rosybrown|&ref(http://www34.atwiki.jp/javafx/pub/up/rosybrown.jpg)|
|royalblue|&ref(http://www34.atwiki.jp/javafx/pub/up/royalblue.jpg)|saddlebrown|&ref(http://www34.atwiki.jp/javafx/pub/up/saddlebrown.jpg)|salmon|&ref(http://www34.atwiki.jp/javafx/pub/up/salmon.jpg)|
|sandybrown|&ref(http://www34.atwiki.jp/javafx/pub/up/sandybrown.jpg)|seagreen|&ref(http://www34.atwiki.jp/javafx/pub/up/seagreen.jpg)|seashell|&ref(http://www34.atwiki.jp/javafx/pub/up/seashell.jpg)|
|sienna|&ref(http://www34.atwiki.jp/javafx/pub/up/sienna.jpg)|silver|&ref(http://www34.atwiki.jp/javafx/pub/up/silver.jpg)|skyblue|&ref(http://www34.atwiki.jp/javafx/pub/up/skyblue.jpg)|
|slateblue|&ref(http://www34.atwiki.jp/javafx/pub/up/slateblue.jpg)|slategray|&ref(http://www34.atwiki.jp/javafx/pub/up/slategray.jpg)|snow|&ref(http://www34.atwiki.jp/javafx/pub/up/snow.jpg)|
|springgreen|&ref(http://www34.atwiki.jp/javafx/pub/up/springgreen.jpg)|steelblue|&ref(http://www34.atwiki.jp/javafx/pub/up/steelblue.jpg)|tan|&ref(http://www34.atwiki.jp/javafx/pub/up/tan.jpg)|
|teal|&ref(http://www34.atwiki.jp/javafx/pub/up/teal.jpg)|thistle|&ref(http://www34.atwiki.jp/javafx/pub/up/thistle.jpg)|tomato|&ref(http://www34.atwiki.jp/javafx/pub/up/tomato.jpg)|
|transparent|透明色|turquoise|&ref(http://www34.atwiki.jp/javafx/pub/up/turquoise.jpg)|violet|&ref(http://www34.atwiki.jp/javafx/pub/up/violet.jpg)|
|wheat|&ref(http://www34.atwiki.jp/javafx/pub/up/wheat.jpg)|white|&ref(http://www34.atwiki.jp/javafx/pub/up/white.jpg)|whitesmoke|&ref(http://www34.atwiki.jp/javafx/pub/up/whitesmoke.jpg)|
|yellow|&ref(http://www34.atwiki.jp/javafx/pub/up/yellow.jpg)|yellowgreen|&ref(http://www34.atwiki.jp/javafx/pub/up/yellowgreen.jpg)|||
----
2007-06-13T22:27:09+09:00
1181741229
-
リファレンス/JavaFXクラス一覧
https://w.atwiki.jp/javafx/pages/13.html
F3のクラス一覧です。(今後、JavaFXの方に書き換えていきたいと思います。)
//フレーム化予定
|[[AbstractColor]]|[[Dialog]]|[[ListBox]]|[[Slider]]|
|[[AbstractFrame]]|[[DropEvent]]|[[ListCell]]|[[SliderLabel]]|
|[[AbstractMenuItem]]|[[EdgeAction]]|[[ListDropEvent]]|[[SoftBevelBorder]]|
|[[AbstractPathElement]]|[[EditorPane]]|[[ListLayoutOrientation]]|[[Spinner]]|
|[[Accelerator]]|[[Ellipse]]|[[Matrix]]|[[SplitPane]]|
|[[ActionWidget]]|[[EmptyBorder]]|[[MatteBorder]]|[[SplitView]]|
|[[Add]]|[[EtchType]]|[[Menu]]|[[SpreadMethod]]|
|[[Alignment]]|[[EtchedBorder]]|[[MenuBar]]|[[Spring]]|
|[[Anchor]]|[[FileChooser]]|[[MenuItem]]|[[StackPanel]]|
|[[Applet]]|[[FileFilter]]|[[MenuSeparator]]|[[Star]]|
|[[Arc]]|[[Fill]]|[[MessageDialog]]|[[Stop]]|
|[[ArcClosure]]|[[FillRule]]|[[MessageType]]|[[StopHolder]]|
|[[Area]]|[[Filter]]|[[MotionBlur]]|[[Stretch]]|
|[[Assertion]]|[[FlowPanel]]|[[MouseEvent]]|[[StretchDirection]]|
|[[Attribute]]|[[Font]]|[[MoveTo]]|[[StrokeLineCap]]|
|[[BevelBorder]]|[[FontFace]]|[[MultiSelection]]|[[StrokeLineJoin]]|
|[[BevelType]]|[[FontStyle]]|[[Node]]|[[Subtract]]|
|[[Border]]|[[Frame]]|[[Noise]]|[[Tab]]|
|[[BorderPanel]]|[[Gap]]|[[Operation]]|[[TabLayout]]|
|[[Box]]|[[GaussianBlur]]|[[Orientation]]|[[TabPlacement]]|
|[[BrushedMetal]]|[[Glow]]|[[Paint]]|[[TabSlider]]|
|[[Button]]|[[Gradient]]|[[Panel]]|[[TabbedPane]]|
|[[ButtonGroup]]|[[GradientUnits]]|[[ParallelGroup]]|[[Table]]|
|[[Canvas]]|[[GridBagPanel]]|[[PasswordField]]|[[TableAutoResizeMode]]|
|[[CanvasCursor]]|[[GridCell]]|[[Path]]|[[TableCell]]|
|[[CanvasDropEvent]]|[[GridPanel]]|[[PathElement]]|[[TableColumn]]|
|[[CanvasElement]]|[[Group]]|[[Pattern]]|[[Text]]|
|[[CanvasIcon]]|[[GroupElement]]|[[Polygon]]|[[TextArea]]|
|[[CanvasImage]]|[[GroupLayout]]|[[Polyline]]|[[TextField]]|
|[[CanvasMouseEvent]]|[[GroupPanel]]|[[ProgressBar]]|[[TextPane]]|
|[[CanvasViewport]]|[[HLine]]|[[QuadCurve]]|[[TextureFilter]]|
|[[CardPanel]]|[[HorizontalAlignment]]|[[QuadTo]]|[[TitledBorder]]|
|[[CheckBox]]|[[HorizontalGlue]]|[[RadialGradient]]|[[TitledBorderJustification]]|
|[[CheckBoxMenuItem]]|[[HorizontalScrollBarPolicy]]|[[RadioButton]]|[[TitledBorderPosition]]|
|[[Chrome]]|[[HorizontalStrut]]|[[RadioButtonMenuItem]]|[[ToggleButton]]|
|[[Circle]]|[[Icon]]|[[Rect]]|[[ToolBar]]|
|[[Class]]|[[Identity]]|[[RigidArea]]|[[Transform]]|
|[[Clip]]|[[Image]]|[[RootPane]]|[[Transformable]]|
|[[ClipPanel]]|[[ImageView]]|[[RotatableWidget]]|[[Translate]]|
|[[ClosePath]]|[[InfiniteProgressPanel]]|[[Rotate]]|[[Tree]]|
|[[Color]]|[[Insets]]|[[Row]]|[[TreeCell]]|
|[[ColorChooser]]|[[InternalFrame]]|[[Scale]]|[[TreePath]]|
|[[Column]]|[[InternalFrameDragMode]]|[[ScaleFilter]]|[[UIElement]]|
|[[ComboBox]]|[[InternalWindow]]|[[ScrollPane]]|[[VLine]]|
|[[ComboBoxCell]]|[[Intersect]]|[[ScrollableWidget]]|[[VerticalAlignment]]|
|[[CompositeNode]]|[[KeyEvent]]|[[SelectableButton]]|[[VerticalGlue]]|
|[[CompositeTransform]]|[[KeyModifier]]|[[Separator]]|[[VerticalScrollBarPolicy]]|
|[[CompositeWidget]]|[[KeyStroke]]|[[ShadowFilter]]|[[VerticalStrut]]|
|[[CompoundBorder]]|[[Keyboard]]|[[ShadowedBorder]]|[[View]]|
|[[Container]]|[[KeyboardAction]]|[[Shape]]|[[VisualNode]]|
|[[ContentType]]|[[Label]]|[[ShapeBurst]]|[[Widget]]|
|[[Convolve]]|[[Lens]]|[[ShapeBurstType]]|[[WidgetInitiatedMultiSelection]]|
|[[ConvolveFilter]]|[[Light]]|[[SimpleLabel]]|[[Window]]|
|[[CubicCurve]]|[[LightFilter]]|[[SingleSelection]]|[[XOR]]|
|[[Cursor]]|[[Line]]|[[SizeableCanvasElement]]|[[XY]]|
|[[CurveTo]]|[[LineBorder]]|[[Skew]]||
|[[DesktopPane]]|[[LineTo]]|[[SlideTab]]||
----
&trackback()
2007-06-13T14:32:32+09:00
1181712752
-
メニュー2
https://w.atwiki.jp/javafx/pages/36.html
&html(<a rel="license" href="http://creativecommons.org/licenses/by/2.1/jp/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/2.1/jp/88x31.png" /></a><br />この<span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/Text" rel="dc:type">文章</span>は、<a rel="license" href="http://creativecommons.org/licenses/by/2.1/jp/">クリエイティブ・コモンズ・ライセンス</a>の下でライセンスされています。)
&html(<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-2025811-1"; urchinTracker;</script>)
2007-06-13T08:01:57+09:00
1181689317
-
サンプルプログラム集/イメージのドラッグ1
https://w.atwiki.jp/javafx/pages/38.html
*イメージのドラッグ1
#right(){2007/6/12 (c)jollyrojer jollyrojer@jollysystem.net}
画像をドラッグで動かせるサンプルプログラム。DragableImageクラスを追加していけば容易に画像を追加できる。
&ref(dragable.gif)
import javafx.ui.*;
import java.lang.System;
import javafx.ui.canvas.*;
class DragableImage extends ImageView{
attribute x : int;
attribute y : int;
}
trigger on new DragableImage{
var imgX;
var imgY;
this.onMousePressed = operation(e:CanvasMouseEvent){
imgX = e.x;
imgY = e.y;
};
this.onMouseDragged = operation(e:CanvasMouseEvent){
var x = e.x - imgX;
var y = e.y - imgY;
this.x += x;
this.y += y;
imgX = e.x;
imgY = e.y;
};
this.transform = translate(bind this.x,bind this.y);
}
Frame{
title : "MyJavaFX"
width : 200
height : 200
content : Canvas{
content : Group{
content : [
DragableImage{
x : 50
y : 50
cursor : MOVE:Cursor
image : Image{
url : "./duke.gif"
}
},
DragableImage{
x : 20
y : 20
cursor : MOVE:Cursor
image : Image{
url : "./duke.gif"
}
}
]
}
}
visible : true
}
----
&trackback()
2007-06-13T01:17:13+09:00
1181665033