Skip to content
Permalink
Browse files

Updated Project

  • Loading branch information...
Dub Dub
Dub authored and Dub committed Feb 9, 2015
1 parent ebc23f5 commit 9a7e13c727bc5cc218cb2703e155c69789f2c0ab
Showing with 37,914 additions and 10 deletions.
  1. +4 −0 FXyz-Core/build.gradle
  2. +57 −0 FXyz-Core/src/main/java/org/fxyz/collections/FloatCollector.java
  3. +246 −0 FXyz-Core/src/main/java/org/fxyz/collections/ListOfOne.java
  4. +14 −0 FXyz-Core/src/main/java/org/fxyz/collections/MeshStream.java
  5. +34 −0 FXyz-Core/src/main/java/org/fxyz/event/CloseCutawayEvent.java
  6. +65 −0 FXyz-Core/src/main/java/org/fxyz/geometry/Face3.java
  7. +88 −0 FXyz-Core/src/main/java/org/fxyz/geometry/GaussianQuadrature.java
  8. +82 −0 FXyz-Core/src/main/java/org/fxyz/geometry/MathUtils.java
  9. +118 −0 FXyz-Core/src/main/java/org/fxyz/geometry/Point3D.java
  10. +145 −0 FXyz-Core/src/main/java/org/fxyz/geometry/Ray.java
  11. +274 −0 FXyz-Core/src/main/java/org/fxyz/geometry/Vector3D.java
  12. +202 −0 FXyz-Core/src/main/java/org/fxyz/io/OBJWriter.java
  13. +40 −0 FXyz-Core/src/main/java/org/fxyz/scene/Axes.java
  14. +136 −0 FXyz-Core/src/main/java/org/fxyz/scene/BillboardBehavior.java
  15. +21 −0 FXyz-Core/src/main/java/org/fxyz/scene/BillboardTimer.java
  16. +208 −0 FXyz-Core/src/main/java/org/fxyz/scene/CameraView.java
  17. +881 −0 FXyz-Core/src/main/java/org/fxyz/scene/CubeViewer.java
  18. +883 −0 FXyz-Core/src/main/java/org/fxyz/scene/CubeWorld.java
  19. +279 −0 FXyz-Core/src/main/java/org/fxyz/scene/Cutaway.java
  20. +469 −0 FXyz-Core/src/main/java/org/fxyz/scene/SimpleFPSCamera.java
  21. +292 −0 FXyz-Core/src/main/java/org/fxyz/scene/Skybox.java
  22. +93 −0 FXyz-Core/src/main/java/org/fxyz/scene/paint/Palette.java
  23. +177 −0 FXyz-Core/src/main/java/org/fxyz/scene/paint/Patterns.java
  24. +82 −0 FXyz-Core/src/main/java/org/fxyz/shapes/Capsule.java
  25. +83 −0 FXyz-Core/src/main/java/org/fxyz/shapes/Cone.java
  26. +15 −0 FXyz-Core/src/main/java/org/fxyz/shapes/Pyramid.java
  27. +127 −0 FXyz-Core/src/main/java/org/fxyz/shapes/SphereSegment.java
  28. +125 −0 FXyz-Core/src/main/java/org/fxyz/shapes/Spheroid.java
  29. +174 −0 FXyz-Core/src/main/java/org/fxyz/shapes/Torus.java
  30. +9 −0 FXyz-Core/src/main/java/org/fxyz/shapes/complex/cloth/Cloth Read Me.txt
  31. +936 −0 FXyz-Core/src/main/java/org/fxyz/shapes/complex/cloth/ClothMesh.java
  32. +35 −0 FXyz-Core/src/main/java/org/fxyz/shapes/complex/cloth/Constraint.java
  33. +95 −0 FXyz-Core/src/main/java/org/fxyz/shapes/complex/cloth/Link.java
  34. +257 −0 FXyz-Core/src/main/java/org/fxyz/shapes/complex/cloth/WeightedPoint.java
  35. +160 −0 FXyz-Core/src/main/java/org/fxyz/shapes/composites/Histogram.java
  36. +75 −0 FXyz-Core/src/main/java/org/fxyz/shapes/composites/PolyLine3D.java
  37. +206 −0 FXyz-Core/src/main/java/org/fxyz/shapes/composites/ScatterPlot.java
  38. +152 −0 FXyz-Core/src/main/java/org/fxyz/shapes/composites/ScatterPlotMesh.java
  39. +102 −0 FXyz-Core/src/main/java/org/fxyz/shapes/composites/SurfacePlot.java
  40. +61 −0 FXyz-Core/src/main/java/org/fxyz/shapes/containers/ShapeContainer.java
  41. +144 −0 FXyz-Core/src/main/java/org/fxyz/shapes/containers/ShapeContainerBase.java
  42. +340 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/BezierMesh.java
  43. +231 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/CapsuleMesh.java
  44. +134 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/ConeMesh.java
  45. +133 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/CubeMesh.java
  46. +354 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/CuboidMesh.java
  47. +422 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/CurvedSpringMesh.java
  48. +407 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/CylinderMesh.java
  49. +301 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/IcosahedronMesh.java
  50. +473 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/KnotMesh.java
  51. +337 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/SegmentedTorusMesh.java
  52. +289 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/SpheroidMesh.java
  53. +405 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/SpringMesh.java
  54. +248 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/SurfacePlotMesh.java
  55. +504 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/TexturedMesh.java
  56. +329 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/TorusMesh.java
  57. +180 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/helper/BezierHelper.java
  58. +144 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/helper/CurvedSpringHelper.java
  59. +119 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/helper/InterpolateBezier.java
  60. +156 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/helper/KnotHelper.java
  61. +56 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/helper/MeshHelper.java
  62. +143 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/helper/SpringHelper.java
  63. +475 −0 FXyz-Core/src/main/java/org/fxyz/shapes/primitives/helper/TriangleMeshHelper.java
  64. +223 −0 FXyz-Core/src/main/java/org/fxyz/tools/NormalMap.java
  65. +33 −0 FXyz-Core/src/main/java/org/fxyz/tools/TextureTools.java
  66. +150 −0 FXyz-Core/src/main/java/org/fxyz/utils/CameraTransformer.java
  67. +260 −0 FXyz-Core/src/main/java/org/fxyz/utils/Transformable.java
  68. +69 −0 FXyz-Core/src/main/java/org/fxyz/utils/UpdateableTimer.java
  69. +12 −0 FXyz-Sampler/READ_ME
  70. +60 −0 FXyz-Sampler/build.gradle
  71. +164 −0 FXyz-Sampler/gradlew
  72. +90 −0 FXyz-Sampler/gradlew.bat
  73. +105 −0 FXyz-Sampler/src/main/java/org/fxyz/FXyzSample.java
  74. +69 −0 FXyz-Sampler/src/main/java/org/fxyz/FXyzSampleBase.java
  75. +430 −0 FXyz-Sampler/src/main/java/org/fxyz/FXyzSampler.java
  76. +25 −0 FXyz-Sampler/src/main/java/org/fxyz/FXyzSamplerProject.java
  77. +114 −0 FXyz-Sampler/src/main/java/org/fxyz/client/ClientController.java
  78. +94 −0 FXyz-Sampler/src/main/java/org/fxyz/client/MainSceneController.java
  79. +32 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/CheckBoxControl.java
  80. +34 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ColorPickControl.java
  81. +91 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ColorSliderControl.java
  82. +88 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ComboBoxControl.java
  83. +47 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ControlBase.java
  84. +33 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ControlBasePane.java
  85. +100 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ControlCategory.java
  86. +50 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ControlPanel.java
  87. +30 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/CullFaceControl.java
  88. +30 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/FileLoadControl.java
  89. +44 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ImagePreviewControl.java
  90. +83 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/NumberField.java
  91. +61 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/NumberSliderControl.java
  92. +168 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ScriptFunction1DControl.java
  93. +166 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ScriptFunction2DControl.java
  94. +168 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/ScriptFunction3DControl.java
  95. +118 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/SubSceneControlPanel.java
  96. +78 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/TextureTypeControl.java
  97. +699 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/carousel/AbstractCarouselSkin.java
  98. +10 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/carousel/CellEffects.java
  99. +50 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/carousel/CellPool.java
  100. +19 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/carousel/EmptyTreeCellSkin.java
  101. +128 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/carousel/FlatCarouselSkin.java
  102. +19 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/carousel/LayoutItem.java
  103. +393 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/carousel/RayCarouselSkin.java
  104. +123 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/carousel/RibbonCarouselSkin.java
  105. +83 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/carousel/SimpleCellPool.java
  106. +66 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/carousel/SimpleStyleableDoubleProperty.java
  107. +210 −0 FXyz-Sampler/src/main/java/org/fxyz/controls/factory/ControlFactory.java
  108. +60 −0 FXyz-Sampler/src/main/java/org/fxyz/model/EmptySample.java
  109. +84 −0 FXyz-Sampler/src/main/java/org/fxyz/model/Project.java
  110. +142 −0 FXyz-Sampler/src/main/java/org/fxyz/model/SampleTree.java
  111. +56 −0 FXyz-Sampler/src/main/java/org/fxyz/model/WelcomePage.java
  112. +267 −0 FXyz-Sampler/src/main/java/org/fxyz/util/SampleScanner.java
  113. +36 −0 FXyz-Sampler/src/main/resources/org/fxyz/client/Logo.fxml
  114. +86 −0 FXyz-Sampler/src/main/resources/org/fxyz/client/samplerTemplate.fxml
  115. +23 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/CheckBoxControl.fxml
  116. +21 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/ColorControl.fxml
  117. +37 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/ColorSliderControl.fxml
  118. +28 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/ComboBoxControl.fxml
  119. +8 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/ControlBasePane.fxml
  120. +9 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/ControlBlank.fxml
  121. +15 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/ControlPanelTitlePane.fxml
  122. +34 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/FileLoadControl.fxml
  123. +24 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/ImageMapPreview.fxml
  124. +40 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/NumberSliderControl.fxml
  125. +55 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/RotateEditor.fxml
  126. +35 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/ScriptFunction1DControl.fxml
  127. +34 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/ScriptFunction2DControl.fxml
  128. +35 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/ScriptFunction3DControl.fxml
  129. +83 −0 FXyz-Sampler/src/main/resources/org/fxyz/controls/SubSceneControlPanel.fxml
  130. +3,238 −0 FXyz-Sampler/src/main/resources/org/fxyz/cyanBlackGlass.css
  131. +39 −0 FXyz-Sampler/src/main/resources/org/fxyz/fxsampler.css
  132. BIN FXyz-Sampler/src/main/resources/org/fxyz/images/palette_1530.png
  133. +3,056 −0 FXyz-Sampler/src/main/resources/org/fxyz/modenaGlass.css
  134. +38 −0 FXyz-Sampler/src/main/resources/org/fxyz/slider.css
  135. +3,301 −0 FXyz-Sampler/src/main/resources/org/fxyz/smokeBlackGlass.css
  136. +26 −0 FXyz-Sampler/src/main/resources/org/fxyz/util/CssTemplate.html
  137. +26 −0 FXyz-Sampler/src/main/resources/org/fxyz/util/SourceCodeTemplate.html
  138. +37 −0 Fxyz-Samples/build.gradle
  139. +57 −0 Fxyz-Samples/src/main/java/org/fxyz/FXyzProject.java
  140. +76 −0 Fxyz-Samples/src/main/java/org/fxyz/pending/Capsules.java
  141. +103 −0 Fxyz-Samples/src/main/java/org/fxyz/pending/Cones.java
  142. +184 −0 Fxyz-Samples/src/main/java/org/fxyz/pending/Cylinders.java
  143. +296 −0 Fxyz-Samples/src/main/java/org/fxyz/pending/NewBezierMeshes.java
  144. +213 −0 Fxyz-Samples/src/main/java/org/fxyz/pending/SphereSegments.java
  145. +175 −0 Fxyz-Samples/src/main/java/org/fxyz/pending/Spheroids.java
  146. +64 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/FXyzSample.java
  147. +299 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/ShapeBaseSample.java
  148. +178 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/TexturedMeshSample.java
  149. +169 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/compound/Histograms.java
  150. +167 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/compound/PolyLines3D.java
  151. +176 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/compound/ScatterPlotColors.java
  152. +171 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/compound/ScatterPlotMeshes.java
  153. +178 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/compound/SurfacePlots.java
  154. +310 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/texturedmeshes/BezierMeshes.java
  155. +111 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/texturedmeshes/Cuboids.java
  156. +71 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/texturedmeshes/CurvedSpring.java
  157. +84 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/texturedmeshes/Icosahedron.java
  158. +309 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/texturedmeshes/Knots.java
  159. +129 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/texturedmeshes/SegmentedTorus.java
  160. +76 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/texturedmeshes/Springs.java
  161. +136 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/shapes/texturedmeshes/SurfacePlot.java
  162. +44 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/texture/NormalMapper.java
  163. +22 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/texture/TextureLoader.java
  164. +278 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/utilities/RayIntersections.java
  165. +235 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/utilities/SimpleRayTest.java
  166. +55 −0 Fxyz-Samples/src/main/java/org/fxyz/samples/utilities/SkyBoxing.java
  167. +1 −0 Fxyz-Samples/src/main/resources/META-INF/services/org.fxyz.FXyzSamplerProject
  168. BIN Fxyz-Samples/src/main/resources/org/fxyz/images/12-natural-stone-background-lrg.jpg
  169. BIN Fxyz-Samples/src/main/resources/org/fxyz/images/anim.gif
  170. BIN ...src/main/resources/org/fxyz/images/depositphotos_4310373-Seamless-texture-natural-rough-stone.jpg
  171. BIN Fxyz-Samples/src/main/resources/org/fxyz/images/rand_tile1.jpg
  172. BIN Fxyz-Samples/src/main/resources/org/fxyz/images/sceneBackground.jpg
  173. BIN Fxyz-Samples/src/main/resources/org/fxyz/images/texture001.jpg
  174. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/0ZKMx.png
  175. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/LaminateSteel.jpg
  176. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/back.png
  177. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/bottom.png
  178. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/diffuse-map.jpg
  179. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/front.png
  180. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/illumination-map.jpg
  181. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/left.png
  182. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/netCuboid.png
  183. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/netCylinder.png
  184. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/normal-map.png
  185. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/palette_1530.png
  186. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/right.png
  187. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/specular-map.jpg
  188. BIN Fxyz-Samples/src/main/resources/org/fxyz/samples/res/top.png
  189. +219 −0 Fxyz-Samples/src/main/resources/org/fxyz/styles/sceneControls.css
  190. +3,288 −0 Fxyz-Samples/src/main/resources/org/fxyz/styles/smokeBlackGlass.css
  191. +39 −0 build.gradle
  192. +55 −0 common.gradle
  193. +4 −4 fxyz-build.properties
  194. +4 −0 gradle.properties
  195. +0 −6 nbproject/private/private.xml
  196. +20 −0 settings.gradle
@@ -0,0 +1,4 @@

dependencies {

}
@@ -0,0 +1,57 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

package org.fxyz.collections;

import java.util.Arrays;

/**
* Collector to generate a float[] array from a DoubleStream of floats
*
* General use:
* .collect(FloatCollector::new, FloatCollector::add, FloatCollector::join)
* Known initial size:
* .collect(()->new FloatCollector(size), FloatCollector::add, FloatCollector::join)
*
* Generates a FloatCollector, use FloatCollector.toArray() to get the float[]
*
* @author José Pereda Llamas
* Created on 19-nov-2014 - 18:51:11
*/
public class FloatCollector {

private float[] curr=new float[64];
private int size;

public FloatCollector(){}

public FloatCollector(int initialSize){
if(curr.length<initialSize){
curr=Arrays.copyOf(curr, initialSize);
}
}
public void add(double d) {
if(curr.length==size){
curr=Arrays.copyOf(curr, size*2);
}
curr[size++]=(float)d;
}

public void join(FloatCollector other) {
if(size+other.size > curr.length) {
curr=Arrays.copyOf(curr, size+other.size);
}
System.arraycopy(other.curr, 0, curr, size, other.size);
size+=other.size;
}

public float[] toArray() {
if(size!=curr.length){
curr=Arrays.copyOf(curr, size);
}
return curr;
}
}
@@ -0,0 +1,246 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.fxyz.collections;

import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.NoSuchElementException;

/**
* This is an immutable list of some arbitrary size backed by a single element.
* @author brian
* @param <E> The type of element in the list
*/
public class ListOfOne<E> implements List<E> {

private final int size;
private final E element;

public ListOfOne(E element, int size) {
if (element == null) {
throw new IllegalArgumentException("A null element is not allowed.");
}
if (size <= 0) {
throw new IllegalArgumentException("The list must contain at least one element");
}
this.element = element;
this.size = size;
}


@Override
public int size() {
return size;
}

@Override
public boolean isEmpty() {
return false;
}

@Override
public boolean contains(Object o) {
return element.equals(o);
}

@Override
public Iterator<E> iterator() {
return new Iterator<E>() {

private int n = 0;

@Override
public boolean hasNext() {
return n < (size - 1);
}

@Override
public E next() {
if (!hasNext()) {
throw new NoSuchElementException();
}
n++;
return element;
}

};
}

@Override
public Object[] toArray() {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public <T> T[] toArray(T[] a) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public boolean add(E e) {
throw new UnsupportedOperationException("Adding elements is not allowed");
}

@Override
public boolean remove(Object o) {
throw new UnsupportedOperationException("Removing elements is not allowed");
}

@Override
public boolean containsAll(Collection<?> c) {
boolean yes = true;
for (Object item : c) {
if (!item.equals(element)) {
yes = false;
break;
}
}
return yes;
}

@Override
public boolean addAll(Collection<? extends E> c) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public boolean addAll(int index, Collection<? extends E> c) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public boolean removeAll(Collection<?> c) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public boolean retainAll(Collection<?> c) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public void clear() {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public E get(int index) {
if (index < size) {
return element;
}
else {
throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + size);
}
}

@Override
public E set(int index, E element) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public void add(int index, E element) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public E remove(int index) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public int indexOf(Object o) {
int v = -1;
if (element.equals(o)) {
v = 0;
}
return v;
}

@Override
public int lastIndexOf(Object o) {
int v = -1;
if (element.equals(o)) {
v = size - 1;
}
return v;
}

@Override
public ListIterator<E> listIterator() {
return listIterator(0);
}

@Override
public ListIterator<E> listIterator(int index) {
return new ListIterator<E>() {

private final int s = size - index;
private int n = 0;

@Override
public boolean hasNext() {
return n < (s - 1);
}

@Override
public E next() {
if (!hasNext()) {
throw new NoSuchElementException();
}
n++;
return element;
}

@Override
public boolean hasPrevious() {
return n >= 0;
}

@Override
public E previous() {
if (!hasPrevious()) {
throw new NoSuchElementException();
}
n--;
return element;
}

@Override
public int nextIndex() {
return n + 1;
}

@Override
public int previousIndex() {
return n - 1;
}

@Override
public void remove() {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public void set(E e) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public void add(E e) {
throw new UnsupportedOperationException("Not supported yet.");
}
};
}

@Override
public List<E> subList(int fromIndex, int toIndex) {
return new ListOfOne<>(element, toIndex - fromIndex);
}

}
@@ -0,0 +1,14 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.fxyz.collections;

/**
* a Soon to be general utility class for mesh arrays
* @author Jason Pollastrini aka jdub1581
*/
public class MeshStream {

}
@@ -0,0 +1,34 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.fxyz.event;

import javafx.event.Event;
import static javafx.event.Event.ANY;
import javafx.event.EventTarget;
import javafx.event.EventType;

/**
*
* @author sphillips
*/
public class CloseCutawayEvent extends Event {
public Object eventObject;
public static final EventType<CloseCutawayEvent> CLOSE_CUTAWAY = new EventType(ANY, "CLOSE_CUTAWAY");

public CloseCutawayEvent(Object t) {
this(CLOSE_CUTAWAY);
eventObject = t;
}

public CloseCutawayEvent(EventType<? extends Event> arg0) {
super(arg0);
}

public CloseCutawayEvent(Object arg0, EventTarget arg1, EventType<? extends Event> arg2) {
super(arg0, arg1, arg2);
eventObject = arg0;
}
}
Oops, something went wrong.

0 comments on commit 9a7e13c

Please sign in to comment.
You can’t perform that action at this time.