資源簡介
Java fx實例教程,有這個實例,不用再買Java FX方面的書都夠了
代碼片段和文件信息
/*
?*?Copyright?(c)?2010?2014?Oracle?and/or?its?affiliates.
?*?All?rights?reserved.?Use?is?subject?to?license?terms.
?*
?*?This?file?is?available?and?licensed?under?the?following?license:
?*
?*?Redistribution?and?use?in?source?and?binary?forms?with?or?without
?*?modification?are?permitted?provided?that?the?following?conditions
?*?are?met:
?*
?*??-?Redistributions?of?source?code?must?retain?the?above?copyright
?*????notice?this?list?of?conditions?and?the?following?disclaimer.
?*??-?Redistributions?in?binary?form?must?reproduce?the?above?copyright
?*????notice?this?list?of?conditions?and?the?following?disclaimer?in
?*????the?documentation?and/or?other?materials?provided?with?the?distribution.
?*??-?Neither?the?name?of?Oracle?Corporation?nor?the?names?of?its
?*????contributors?may?be?used?to?endorse?or?promote?products?derived
?*????from?this?software?without?specific?prior?written?permission.
?*
?*?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS
?*?“AS?IS“?AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT
?*?LIMITED?TO?THE?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR
?*?A?PARTICULAR?PURPOSE?ARE?DISCLAIMED.?IN?NO?EVENT?SHALL?THE?COPYRIGHT
?*?OWNER?OR?CONTRIBUTORS?BE?LIABLE?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL
?*?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL?DAMAGES?(INCLUDING?BUT?NOT
?*?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR?SERVICES;?LOSS?OF?USE
?*?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)?HOWEVER?CAUSED?AND?ON?ANY
?*?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT?LIABILITY?OR?TORT
?*?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY?OUT?OF?THE?USE
?*?OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
?*/
package?com.javafx.experiments.exporters.fxml;
import?java.io.File;
import?java.io.FileNotFoundException;
import?java.io.OutputStream;
import?java.io.PrintWriter;
import?java.lang.reflect.InvocationTargetException;
import?java.lang.reflect.Method;
import?java.util.ArrayList;
import?java.util.Collection;
import?java.util.HashMap;
import?java.util.List;
import?java.util.Map;
import?java.util.Set;
import?java.util.TreeSet;
import?java.util.logging.Level;
import?java.util.logging.Logger;
import?javafx.collections.ObservableArray;
import?javafx.geometry.Point3D;
import?javafx.scene.Node;
import?javafx.scene.Parent;
import?javafx.scene.paint.Color;
import?javafx.scene.paint.PhongMaterial;
import?javafx.scene.shape.Box;
import?javafx.scene.shape.MeshView;
import?javafx.scene.shape.Shape3D;
import?javafx.scene.shape.TriangleMesh;
import?javafx.scene.transform.Affine;
import?javafx.scene.transform.Rotate;
import?javafx.scene.transform.Transform;
import?javafx.scene.transform.Translate;
/**?Export?a?3D?MeshView?to?Fxml?file.?*/
public?class?FxmlExporter?{
????private?PrintWriter?printWriter;
????private?Set?imports?=?new?TreeSet<>();
????private?Map?simpleNames?=?new?HashMap<>();
????public?FxmlExporter(String?filename)?{
????????File?file?=?new?File(filena
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-02-13?18:36??javafx_samples\
?????目錄???????????0??2016-12-13?04:04??javafx_samples\3DViewer\
?????文件?????4135869??2016-12-13?04:04??javafx_samples\3DViewer\3DViewer.jar
?????目錄???????????0??2016-12-13?04:04??javafx_samples\3DViewer\lib\
?????文件?????1299495??2016-12-13?04:04??javafx_samples\3DViewer\lib\DaeImporter.jar
?????文件?????1299498??2016-12-13?04:04??javafx_samples\3DViewer\lib\MaxLoader.jar
?????文件?????1299495??2016-12-13?04:04??javafx_samples\3DViewer\lib\MayaImporter.jar
?????文件?????1299502??2016-12-13?04:04??javafx_samples\3DViewer\lib\ObjOrPolyObjImporter.jar
?????文件????17405677??2016-12-13?04:04??javafx_samples\Ensemble8.jar
?????文件???????52910??2016-12-13?04:04??javafx_samples\MandelbrotSet.jar
?????文件??????313831??2016-12-13?04:04??javafx_samples\Modena.jar
?????文件??????127548??2018-02-13?18:36??javafx_samples\Modena.zip
?????文件????????4585??2016-12-13?04:04??javafx_samples\samples_readme.txt
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\3DViewer\
?????文件?????????160??2016-12-13?04:04??javafx_samples\src\3DViewer\build.gradle
?????文件????????7148??2016-12-13?04:04??javafx_samples\src\3DViewer\build.xm
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\3DViewer\nbproject\
?????文件???????79739??2016-12-13?04:04??javafx_samples\src\3DViewer\nbproject\build-impl.xm
?????文件?????????467??2016-12-13?04:04??javafx_samples\src\3DViewer\nbproject\genfiles.properties
?????文件????????2493??2016-12-13?04:04??javafx_samples\src\3DViewer\nbproject\project.properties
?????文件?????????620??2016-12-13?04:04??javafx_samples\src\3DViewer\nbproject\project.xm
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\3DViewer\src\
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\3DViewer\src\main\
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\3DViewer\src\main\java\
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\3DViewer\src\main\java\com\
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\3DViewer\src\main\java\com\javafx\
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\3DViewer\src\main\java\com\javafx\experiments\
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\3DViewer\src\main\java\com\javafx\experiments\exporters\
?????目錄???????????0??2016-12-13?04:04??javafx_samples\src\3DViewer\src\main\java\com\javafx\experiments\exporters\fxm
?????文件???????13647??2016-12-13?04:04??javafx_samples\src\3DViewer\src\main\java\com\javafx\experiments\exporters\fxm
............此處省略1337個文件信息
評論
共有 條評論