|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.gauger.ScaleTransformRenderer
public class ScaleTransformRenderer
ScaleTransformRenderer renders the gauger component defined by ScaleTransform. This class is responsible for interpreting the transform and rendering background, scale and ticks. Renderer will render custom defined scale segments.
Constructor Summary | |
---|---|
ScaleTransformRenderer(Gauger gauger)
Creates a new ScaleTransformRenderer object. |
Method Summary | |
---|---|
void |
render(ScaleTransform transform,
java.awt.Graphics2D g)
Render entire gauger. |
void |
renderArcSegment(java.awt.Graphics2D g,
ScaleTransform.ArcSegment segment,
int n,
int i)
Renders borders and background of an arc segment. |
void |
renderBackground(java.awt.Graphics2D g)
Renders background of gauger. |
protected void |
renderRectangleSegment(java.awt.Graphics2D g,
ScaleTransform.RectangleSegment segment,
int n,
int i)
|
void |
renderScale(java.awt.Graphics2D g)
Renders scale. |
void |
renderTicks(java.awt.Graphics2D g)
Renders ticks and tick labels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScaleTransformRenderer(Gauger gauger)
gauger
- Gauger which this transform will render.Method Detail |
---|
public void renderBackground(java.awt.Graphics2D g)
g
- Context to render to.protected void renderRectangleSegment(java.awt.Graphics2D g, ScaleTransform.RectangleSegment segment, int n, int i)
public void renderScale(java.awt.Graphics2D g)
g
- Graphic context to render to.public void renderArcSegment(java.awt.Graphics2D g, ScaleTransform.ArcSegment segment, int n, int i)
g
- Graphic context to render to.segment
- Segment to render.n
- Total number of segments.i
- Current segment index.public void renderTicks(java.awt.Graphics2D g)
g
- Graphic context to render to.public void render(ScaleTransform transform, java.awt.Graphics2D g)
transform
- Transform used for rendering.g
- Graphic context to render to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |