|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.render.AbstractShapeRenderer
prefuse.render.AxisRenderer
public class AxisRenderer
Renderer for drawing an axis tick mark and label.
| Field Summary |
|---|
| Fields inherited from class prefuse.render.AbstractShapeRenderer |
|---|
m_manageBounds, m_transform, RENDER_TYPE_DRAW, RENDER_TYPE_DRAW_AND_FILL, RENDER_TYPE_FILL, RENDER_TYPE_NONE |
| Fields inherited from interface prefuse.render.Renderer |
|---|
DEFAULT_GRAPHICS |
| Constructor Summary | |
|---|---|
AxisRenderer()
Create a new AxisRenderer. |
|
AxisRenderer(int xalign,
int yalign)
Create a new AxisRenderer. |
|
| Method Summary | |
|---|---|
protected java.awt.Shape |
getRawShape(VisualItem item)
Return a non-transformed shape for the visual representation of the item. |
boolean |
locatePoint(java.awt.geom.Point2D p,
VisualItem item)
Returns true if the Point is located inside the extents of the item. |
void |
render(java.awt.Graphics2D g,
VisualItem item)
Render item into a Graphics2D context. |
void |
setBounds(VisualItem item)
Calculates and sets the bounding rectangle for an item. |
void |
setHorizontalAlignment(int xalign)
Set the horizontal alignment of axis labels. |
void |
setVerticalAlignment(int yalign)
Set the vertical alignment of axis labels. |
| Methods inherited from class prefuse.render.AbstractShapeRenderer |
|---|
drawShape, getRenderType, getShape, getStroke, getTransform, setManageBounds, setRenderType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AxisRenderer()
public AxisRenderer(int xalign,
int yalign)
xalign - the horizontal alignment for the axis label. One of
Constants.LEFT, Constants.RIGHT,
or Constants.CENTER.yalign - the vertical alignment for the axis label. One of
Constants.TOP, Constants.BOTTOM,
or Constants.CENTER.| Method Detail |
|---|
public void setHorizontalAlignment(int xalign)
xalign - the horizontal alignment for the axis label. One of
Constants.LEFT, Constants.RIGHT,
or Constants.CENTER.public void setVerticalAlignment(int yalign)
yalign - the vertical alignment for the axis label. One of
Constants.TOP, Constants.BOTTOM,
or Constants.CENTER.protected java.awt.Shape getRawShape(VisualItem item)
AbstractShapeRenderer
getRawShape in class AbstractShapeRendereritem - the VisualItem being drawn
AbstractShapeRenderer.getRawShape(prefuse.visual.VisualItem)
public void render(java.awt.Graphics2D g,
VisualItem item)
Renderer
render in interface Rendererrender in class AbstractShapeRendererg - the Graphics2D contextitem - the visual item to drawRenderer.render(java.awt.Graphics2D, prefuse.visual.VisualItem)
public boolean locatePoint(java.awt.geom.Point2D p,
VisualItem item)
Renderer
locatePoint in interface RendererlocatePoint in class AbstractShapeRendererp - the point to test for containmentitem - the item to test containment against
Renderer.locatePoint(java.awt.geom.Point2D, prefuse.visual.VisualItem)public void setBounds(VisualItem item)
Renderer
setBounds in interface RenderersetBounds in class AbstractShapeRendereritem - the item to compute the bounding box forRenderer.setBounds(prefuse.visual.VisualItem)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||