|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart2D.engine.SimpleProjector2D
public class SimpleProjector2D extends java.lang.Object implements Projector2D, java.io.Serializable
2D which maps Point2D objects into the specified projection area by scaling.
| Constructor and Description |
|---|
SimpleProjector2D()
Constructs a new SimpleProjector2D. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a copy o the projector. |
Rectangle2D |
getProjectionArea()
Returns a projection area of this projector. |
Rectangle2D |
getProjectionAreaReference()
Returns a reference to projection area of this projector. |
Rectangle2D |
getViewableArea()
Returns viewable area for projector. |
void |
prepare()
Prepares the projector. |
GeneralPoint |
project(GeneralPoint point)
Projects the specified normalized point into projection area of the projector. |
GeneralPoint |
project(GeneralPoint point,
GeneralPoint pt)
Projects the specified normalized point into projection area of the projector. |
Polygon2D |
project(Rectangle2D r)
Projects a rectangle into polygon. |
Point2D |
projectBack(java.awt.Point pt)
Projects the specified 2-dimensional point back into normalized point. |
Point2D |
projectBack(java.awt.Point pt,
Point2D pt2D)
Projects the specified 2-dimensional point back into normalized point. |
void |
setProjectionArea(Rectangle2D r)
Sets the projection area for this projector. |
void |
setViewableArea(Rectangle2D viewableArea)
Sets viewable area for projector: (0.0, 0.0, 1.0, 1.0) visible full chart. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleProjector2D()
SimpleProjector2D.
| Method Detail |
|---|
public void setProjectionArea(Rectangle2D r)
setProjectionArea in interface Projectorr - the Rectangle that specifies projection area for this projectorpublic Rectangle2D getProjectionArea()
getProjectionArea in interface Projectorpublic Rectangle2D getProjectionAreaReference()
getProjectionAreaReference in interface Projectorpublic GeneralPoint project(GeneralPoint point)
project in interface Projectorpoint - the normalized point to project
public GeneralPoint project(GeneralPoint point,
GeneralPoint pt)
Point template to avoid unnecessary object creation.
project in interface Projectorpoint - the normalized point to projectpt - the Point templatepublic Point2D projectBack(java.awt.Point pt)
projectBack in interface Projector2Dpt - the point to project
public Point2D projectBack(java.awt.Point pt,
Point2D pt2D)
Point2D
template is used to avoid unnecessary object creation.
projectBack in interface Projector2Dpt - the point to projectpt2D - Point2D template to write back-projection results topublic void prepare()
prepare in interface Projectorpublic java.lang.Object clone()
clone in interface Projectorclone in class java.lang.Objectpublic Polygon2D project(Rectangle2D r)
Projector
project in interface Projectorr - 2D rectanglepublic void setViewableArea(Rectangle2D viewableArea)
Projector2D
setViewableArea in interface Projector2DviewableArea - projector viewable areapublic Rectangle2D getViewableArea()
Projector2D
getViewableArea in interface Projector2D
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||