|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.tmachine.gpg.hue.Document
| Field Summary | |
protected java.util.ArrayList |
shapes
|
| Constructor Summary | |
Document()
|
|
| Method Summary | |
void |
addShape(java.awt.Shape s)
Converts all added shapes to Area instances if they are not already, since Sun's 2D API was badly designed and prevents you from applying AffineTransforms to most shapes. |
java.util.ArrayList |
getAllShapes()
|
java.util.ArrayList |
getShapesAtPoint(int[] point)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.ArrayList shapes
| Constructor Detail |
public Document()
| Method Detail |
public java.util.ArrayList getAllShapes()
public void addShape(java.awt.Shape s)
Without the auto-conversion, it is hard to write decent GUIs because you are not allowed to use the AffineTransform class, so you cannot do rotations etc without implementing it all by hand, and creating large switch statements to deal with all possible shapes (which all have different API's)
s - public java.util.ArrayList getShapesAtPoint(int[] point)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||