|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.extension.gui.dock.theme.eclipse.stack.tab.Arch
public class Arch
An arch is a mathematical description of a curve, the curve is within a given rectangle, starting at the top left and ending at the bottom right edge. The curve is horizontal at the beginning and at the end. The curve is within a discrete space, and there is exactly one y-value for each given x-value.
| Constructor Summary | |
|---|---|
Arch(int width,
int height)
Creates a new arch. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getHeight()
Gets the height of the arch. |
int |
getValue(int x)
Gets the position of the arch at x. |
int |
getWidth()
Gets the width of the arch. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Arch(int width,
int height)
width - the width of the archheight - the height of the arch
IllegalArgumentException - if either of width or
height is smaller than 1| Method Detail |
|---|
public int getWidth()
public int getHeight()
public int getValue(int x)
x. x must
be between 0 (incl.) and width (excl.). The result
will be between 0 (incl.) and height (excl.).
x - the x component
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||