|
||||||||||
| 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 |
| Fields inherited from interface prefuse.render.Renderer |
|---|
DEFAULT_GRAPHICS |
| Constructor Summary | |
|---|---|
AxisRenderer()
Create a new AxisRenderer. |
|
AxisRenderer(Alignment xalign,
Alignment yalign)
Create a new AxisRenderer. |
|
| Method Summary | |
|---|---|
void |
calculateBounds(VisualItem<?> item,
java.awt.geom.Rectangle2D bounds)
Calculates the bounding rectangle for an item. |
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 |
setHorizontalAlignment(Alignment xalign)
Set the horizontal alignment of axis labels. |
void |
setVerticalAlignment(Alignment yalign)
Set the vertical alignment of axis labels. |
| Methods inherited from class prefuse.render.AbstractShapeRenderer |
|---|
drawShape, getFillColor, getRenderType, getShape, getStroke, getStrokeColor, getTransform, managesBounds, 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(Alignment xalign,
Alignment yalign)
xalign - the horizontal alignment for the axis label. One of
Alignment.LEFT, Alignment.RIGHT,
or Alignment.CENTER.yalign - the vertical alignment for the axis label. One of
Alignment.TOP, Alignment.BOTTOM,
or Alignment.CENTER.| Method Detail |
|---|
public void setHorizontalAlignment(Alignment xalign)
xalign - the horizontal alignment for the axis label. One of
Alignment.LEFT, Alignment.RIGHT,
or Alignment.CENTER.public void setVerticalAlignment(Alignment yalign)
yalign - the vertical alignment for the axis label. One of
Alignment.TOP, Alignment.BOTTOM,
or Alignment.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 calculateBounds(VisualItem<?> item,
java.awt.geom.Rectangle2D bounds)
Renderer
calculateBounds in interface RenderercalculateBounds in class AbstractShapeRendereritem - the item to compute the bounding box forbounds - the rectangle to populate with the bounding boxRenderer.calculateBounds(VisualItem,Rectangle2D)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||