|
JHotDraw 7.0.9 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Constrainer
Interface to constrain a Point2D.Double. This can be used to implement different kinds of grids.
Method Summary | |
---|---|
java.awt.geom.Point2D.Double |
constrainPoint(java.awt.geom.Point2D.Double p)
Constrains the given point. |
java.awt.geom.Point2D.Double |
constrainPoint(java.awt.geom.Point2D.Double p,
Direction dir)
Constrains the given point towards the specified direction. |
void |
draw(java.awt.Graphics2D g,
DrawingView view)
Draws the constrainer grid for the specified drawing view. |
boolean |
isVisible()
Returns true if the Constrainer grid is visible. |
Method Detail |
---|
java.awt.geom.Point2D.Double constrainPoint(java.awt.geom.Point2D.Double p)
p
- A point on the drawing.
java.awt.geom.Point2D.Double constrainPoint(java.awt.geom.Point2D.Double p, Direction dir)
p
- A point on the drawing.dir
- A direction.
boolean isVisible()
void draw(java.awt.Graphics2D g, DrawingView view)
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |