|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart2D.engine.PolarProjector
public class PolarProjector extends java.lang.Object implements Projector2D, java.io.Serializable
2D projector which maps PolarPoint objects into the specified projection area.
| Constructor and Description |
|---|
PolarProjector()
Constructs a new PolarProjector. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates and returns a copy of this projector. |
Rectangle2D |
getProjectionArea()
Returns a projection area of the projector. |
Rectangle2D |
getProjectionAreaReference()
Returns a projection area of the projector reference. |
Rectangle2D |
getViewableArea()
Returns viewable area for projector. |
void |
prepare()
Prepares the projector. |
GeneralPoint |
project(GeneralPoint point)
Projects the specified PolarPoint to the projection area. |
GeneralPoint |
project(GeneralPoint point,
GeneralPoint pt)
Projects the specified PolarPoint to the projection area. |
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 the projector. |
void |
setRoundingEnabled(boolean rounding)
Enables or disables projection results rounding. |
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 PolarProjector()
PolarProjector.
| Method Detail |
|---|
public void setRoundingEnabled(boolean rounding)
int.
rounding - true to enable rounding, false - to disablepublic void setProjectionArea(Rectangle2D r)
setProjectionArea in interface Projectorr - the Rectangle defining projection areapublic Rectangle2D getProjectionAreaReference()
getProjectionAreaReference in interface ProjectorRectangle representing current projection area of the projectorpublic Rectangle2D getProjectionArea()
getProjectionArea in interface ProjectorRectangle representing current projection area of the projectorpublic GeneralPoint project(GeneralPoint point)
PolarPoint to the projection area. If rounding is
enabled, projection results are rounded before returning. Otherwise results are simply casted
to int numbers.
project in interface Projectorpoint - the PolarPoint to project
public GeneralPoint project(GeneralPoint point,
GeneralPoint pt)
PolarPoint to the projection area. If rounding is
enabled, projection results are rounded before returning. Otherwise results are simply casted
to int numbers. A 2D point is template is used to avoid unnecessary object
creation.
project in interface Projectorpoint - the PolarPoint to projectpt - Point template to write 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 Point2D projectBack(java.awt.Point pt)
Projector2D
projectBack in interface Projector2Dpt - the point to project
public Point2D projectBack(java.awt.Point pt,
Point2D pt2D)
Projector2DPoint2D 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 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 | ||||||||