|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--manifold.base.Glyph
|
+--flatscape.FGlyph
|
+--flatscape.glyph.GeometricFigure
|
+--flatscape.glyph.Line
Glyph to render lines.
Copyright (c) 2001 Rutgers, The State University of New Jersey
| Field Summary | |
protected double |
x1_
Copy of x1 property. |
protected double |
x2_
Copy of x2 property. |
protected double |
y1_
Copy of y1 property. |
protected double |
y2_
Copy of y2 property. |
| Fields inherited from class flatscape.glyph.GeometricFigure |
fillColor_, height_, lineColor_, lineWidth_, width_ |
| Fields inherited from class flatscape.FGlyph |
curInteractionPoint, DEFAULT, interactionPoints, POINTSIZE, selected_ |
| Fields inherited from class manifold.base.Glyph |
model_, TRANSFORM, viewer_, visible_ |
| Constructor Summary | |
Line()
|
|
| Method Summary | |
void |
draw(Traversal t)
FGlyphs can not be drawed - Does nothing. |
protected java.awt.Shape |
getBoundingShape()
Gets the bounding shape of the glyph. |
protected java.awt.Shape |
getShape()
|
java.lang.Object |
moveInteractionPoint(java.awt.geom.Point2D newPos)
Redefines the moveInteractionPOint method to match the values of (x1,y1) or(x2,y2) |
void |
pick(Traversal t)
Default pick method, which uses getBoundingShape to determine if a glyph has been picked. |
protected void |
updateInteractionPoints()
Defines the interaction points as the endpoints of the line |
protected void |
updateProperties()
Updates the local copies of the properties from the model. |
| Methods inherited from class flatscape.glyph.GeometricFigure |
getLimits, getShape, propertyChange |
| Methods inherited from class flatscape.FGlyph |
addInteractionPoint, children, config, constructGlyph, drawSelectionBox, getAllowsChildren, getChildAt, getChildCount, getIndex, getInteractionPoint, getParent, getTransform, getTransform, insert, isLeaf, pickInteractionPoint, remove, remove, removeFromParent, setInteractionPoint, setModel, setParent, setSelected, setUserObject, toString, traverse, validTypes |
| Methods inherited from class manifold.base.Glyph |
getModel, getViewer, isVisible, setViewer, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected double x1_
protected double y1_
protected double x2_
protected double y2_
| Constructor Detail |
public Line()
| Method Detail |
public void draw(Traversal t)
FGlyph
draw in class GeometricFiguret - keeps the state of the traversalpublic void pick(Traversal t)
FGlyphgetBoundingShape to determine if a glyph has been picked.
pick in class FGlypht - keeps the state of the traversalprotected java.awt.Shape getShape()
getShape in class GeometricFigureLine2D shape.protected java.awt.Shape getBoundingShape()
FGlyphpick(Traversal t) method
of FGlyph is to be used
getBoundingShape in class GeometricFiguregetShape()protected void updateProperties()
updateProperties in class GeometricFigureprotected void updateInteractionPoints()
updateInteractionPoints in class FGlyphpublic java.lang.Object moveInteractionPoint(java.awt.geom.Point2D newPos)
moveInteractionPoint in class FGlyph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||