|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.umd.cs.jazz.scenegraph.ZRenderContext
ZRenderContext stores information relevant to the current render as it occurs. The ZRenderContext lives with the scenegraph because this way the scenegraph can be queried about how it is currently being rendered (if at all). The ZRenderContext stores information about what cameras are being rendered (there could be more than one if a portal is being recursively rendered).
ZCamera| Field Summary | |
protected boolean |
accurateSpacing
accurateSpacing causes strings to be rendered one character at a time: slower, but characters are positioned more accurately in a line. |
protected float |
cameraMagnification
|
protected java.util.Stack |
cameraMagStack
|
protected java.util.Stack |
cameras
List of (recursive) cameras currently rendering the scenegraph |
protected java.awt.Graphics2D |
g2
|
protected boolean |
greekText
greekText specifies that text should be rendered as "greek" rather than actual characters |
protected ZSurface |
surface
|
protected java.util.Stack |
transforms
List of (recursive) transforms that are the transform that the camera started with before it started painting. |
protected ZArea |
visibleArea
|
| Constructor Summary | |
ZRenderContext(java.awt.Graphics2D aG2,
ZArea aVisibleArea,
ZSurface aSurface,
int qualityRequested)
Constructs a new ZRenderContext. |
|
| Method Summary | |
boolean |
getAccurateSpacing()
Determine if strings should be rendered with accurate (but slower) character spacing. |
float |
getCameraMagnification()
Returns the magnification of the current camera being rendered within. |
float |
getCompositeMagnification()
Returns the total current magnification that is currently being used for rendering. |
java.awt.Graphics2D |
getGraphics2D()
|
boolean |
getGreekText()
Determine if text should be rendered "greeked" |
ZCamera |
getRenderingCamera()
|
java.awt.geom.AffineTransform |
getRenderingTransform()
|
ZSurface |
getSurface()
|
ZArea |
getVisibleArea()
|
void |
popCamera()
|
void |
pushCamera(ZCamera camera)
|
void |
setAccurateSpacing(boolean b)
Specify if strings should be rendered one character at a time with slower, but more accurate spacing. |
void |
setGreekText(boolean b)
Specify if strings should be rendered as "greek" blobs rather than actual text. |
protected void |
setRenderingHints(java.awt.Graphics2D g2,
int quality)
Sets the rendering hints of the specified graphics to either or high or low. |
void |
setVisibleArea(ZArea area)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected java.util.Stack cameras
protected java.util.Stack transforms
protected ZSurface surface
protected java.awt.Graphics2D g2
protected ZArea visibleArea
protected java.util.Stack cameraMagStack
protected float cameraMagnification
protected boolean accurateSpacing
protected boolean greekText
| Constructor Detail |
public ZRenderContext(java.awt.Graphics2D aG2,
ZArea aVisibleArea,
ZSurface aSurface,
int qualityRequested)
| Method Detail |
public java.awt.Graphics2D getGraphics2D()
public void setVisibleArea(ZArea area)
public ZArea getVisibleArea()
public ZSurface getSurface()
public void setAccurateSpacing(boolean b)
b - True turns on accurate spacing, false turns it off.public boolean getAccurateSpacing()
public void setGreekText(boolean b)
b - True turns on greek text.public boolean getGreekText()
protected void setRenderingHints(java.awt.Graphics2D g2,
int quality)
public ZCamera getRenderingCamera()
public java.awt.geom.AffineTransform getRenderingTransform()
public void pushCamera(ZCamera camera)
public void popCamera()
public float getCameraMagnification()
getCompositeMagnification()public float getCompositeMagnification()
getCameraMagnification()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||