diff --git a/.gitignore b/.gitignore index 5795603..1a934ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,10 @@ -*.class -*.ctxt -*.sh +**/*.class +**/*.ctxt +**/*.sh repo.adoc +repo_subtree.adoc *.~lock /alt +/hide Gemfile Gemfile.lock diff --git a/Quellcodes/alg_gr_6er_wuerfeln/.gitignore b/Quellcodes/alg_gr_6er_wuerfeln/.gitignore new file mode 100644 index 0000000..661d056 --- /dev/null +++ b/Quellcodes/alg_gr_6er_wuerfeln/.gitignore @@ -0,0 +1,6 @@ +*.sh +*.class +*.ctxt +repo.adoc +repo_subtree.adoc +/alt diff --git a/Quellcodes/alg_gr_6er_wuerfeln/01_6er_Wuerfeln_Loes/.gitignore b/Quellcodes/alg_gr_6er_wuerfeln/01_6er_Wuerfeln_Loes/.gitignore new file mode 100644 index 0000000..661d056 --- /dev/null +++ b/Quellcodes/alg_gr_6er_wuerfeln/01_6er_Wuerfeln_Loes/.gitignore @@ -0,0 +1,6 @@ +*.sh +*.class +*.ctxt +repo.adoc +repo_subtree.adoc +/alt diff --git a/Quellcodes/alg_gr_6er_wuerfeln/01_6er_Wuerfeln_Loes/Dokumentation/Spieler.html b/Quellcodes/alg_gr_6er_wuerfeln/01_6er_Wuerfeln_Loes/Dokumentation/Spieler.html new file mode 100644 index 0000000..51c5fc3 --- /dev/null +++ b/Quellcodes/alg_gr_6er_wuerfeln/01_6er_Wuerfeln_Loes/Dokumentation/Spieler.html @@ -0,0 +1,333 @@ + + + +
+ +public class Spieler
+extends java.lang.Object
+| Modifier and Type | +Method and Description | +
|---|---|
void |
+aufhoeren()
+Der Spieler beendet den aktuellen Durchgang.
+ |
+
int |
+getGesamtsumme()
+Liefert die Gesamtsumme aller Durchgänge.
+ |
+
int |
+getSumme()
+Liefert die Summe der Augenzahlen des aktuellen Durchgangs.
+ |
+
void |
+setWuerfel(Wuerfel wuerfel)
+Dem Spieler wird ein Würfel-Objekt übergeben.
+ |
+
int |
+wuerfeln()
+Der Spieler würfelt 1x.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic int getSumme()+
public int getGesamtsumme()+
public int wuerfeln()+
public void aufhoeren()+
public void setWuerfel(Wuerfel wuerfel)+
wuerfel - Würfel, den der Spieler benutzen soll.public class Wuerfel
+extends java.lang.Object
+| Constructor and Description | +
|---|
Wuerfel()
+Erzeugt einen Würfeln.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
int |
+getWurf()
+Liefert die Augenzahl des letzten Würfelwurfs.
+ |
+
void |
+wuerfeln()
+Der Würfel wird geworfen.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitEach package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The <a href="constant-values.html">Constant Field Values</a> page lists the static final fields and their values.
+public class DrawIt3DGUI
+extends javax.swing.JFrame
+javax.swing.JFrame.AccessibleJFramejava.awt.Frame.AccessibleAWTFramejava.awt.Window.AccessibleAWTWindow, java.awt.Window.Typejava.awt.Container.AccessibleAWTContainerjava.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategyaccessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | +
|---|
DrawIt3DGUI(java.lang.String title) |
+
| Modifier and Type | +Method and Description | +
|---|---|
static void |
+main(java.lang.String[] args) |
+
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic class Gerade
+extends java.lang.Object
+| Constructor and Description | +
|---|
Gerade(Punkt p1,
+ Punkt p2)
+Erzeugt eine Gerade aus zwei Punkten.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
Vektor |
+getRichtungsvektor()
+Liefert den Richtungsvektor der Gerade
+ |
+
Punkt |
+getSchnittpunktXYEbene()
+Liefert den Schnittpunkt der Gerade mit der XY-Ebene (d.h. z-Koordinate = 0)
+ Die Gerade, die bei der Berechnung vorkommen können nicht in der XY-Ebene liegen, da
+ der Augenpunkt immer ein Punkt der Gerade ist und außerhalb der Ebene liegt.
+ |
+
Punkt |
+getStuetzpunkt()
+Liefert den Stützpunkt der Gerade
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic Vektor getRichtungsvektor()+
public Punkt getStuetzpunkt()+
public Punkt getSchnittpunktXYEbene()+
public class Punkt
+extends java.lang.Object
+| Modifier and Type | +Method and Description | +
|---|---|
double |
+getX()
+liefert die x-Koordinate des Ortsvektors des Punktes
+ |
+
double |
+getY()
+liefert die y-Koordinate des Ortsvektors des Punktes
+ |
+
double |
+getZ()
+liefert die z-Koordinate des Ortsvektors des Punktes
+ |
+
void |
+verschiebe(Vektor v)
+Verschiebt den Punkt um einen Vektor v.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic double getX()+
public double getY()+
public double getZ()+
public void verschiebe(Vektor v)+
v - Verschiebevektorpublic class Strecke
+extends java.lang.Object
+| Constructor and Description | +
|---|
Strecke(Punkt point1,
+ Punkt point2)
+Erzeugt eine neue Strecken
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+draw(java.awt.Graphics g,
+ Punkt viewpoint) |
+
Punkt |
+getPunkt(int i)
+Liefert Start- oder Endpunkt der Strecke
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic class Vektor
+extends java.lang.Object
+| Constructor and Description | +
|---|
Vektor(double x,
+ double y,
+ double z)
+Erzeugt einen neuen Vektor mit den angegebenen Koordinaten
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+add(Vektor v)
+Addiert den übergebenen Vektor.
+ |
+
double |
+getX()
+Liefert die x-Koordinate des Vektors
+ |
+
double |
+getY()
+Liefert die y-Koordinate des Vektors
+ |
+
double |
+getZ()
+Liefert die z-Koordinate des Vektors
+ |
+
void |
+setX(double x)
+Setzt die x-Koordinate des Vektors
+ |
+
void |
+setY(double y)
+Setzt die y-Koordinate des Vektors
+ |
+
void |
+setZ(double z)
+Setzt die z-Koordinate des Vektors
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic Vektor(double x, + double y, + double z)+
x - x-Koordinatey - y-Koordinatez - z-Koordinatepublic void add(Vektor v)+
v - Vektor, der addiert werden soll.public double getX()+
public void setX(double x)+
x-Koordinate - public double getY()+
public void setY(double y)+
y-Koordinate - public double getZ()+
public void setZ(double z)+
z - z-KoordinateEach package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The <a href="constant-values.html">Constant Field Values</a> page lists the static final fields and their values.
+| Class | +Description | +
|---|---|
| DrawIt3DGUI | +
+ GUI zum Zeichnen einer 3D-Szene
+ |
+
| Gerade | +
+ Speichert die Informationen über eine Gerade im Raum.
+ |
+
| Punkt | +
+ Speichert die Informationen über eine Punkt im Raum.
+ |
+
| Strecke | +
+ Speichert die notwendigen Informationen (Start- und Endpunkt) zu einer
+ Strecke.
+ |
+
| Vektor | +
+ Speichert die Information über einen Vektor im dreidimensionalen Raum.
+ |
+
Board3D board1+