|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.gui.components.DialKnob.Renderer
protected class DialKnob.Renderer
Utility class that rendering of the component
| Constructor Summary | |
|---|---|
protected |
DialKnob.Renderer()
|
| Method Summary | |
|---|---|
void |
checkValue()
|
void |
clearBuffer()
Clears all buffered image resources, so they all have to be created during the next repaint. |
void |
clearScale()
Clears scale image, so it has to be reconstructed on the next repaint. |
java.lang.String |
formatNumber(double x)
Formats the input value to a specific print format. |
void |
initialize(java.awt.Graphics2D g2d)
Gathers vital information about this component such as width, height, font metrics and where to place the knob. |
int |
measureTick(double position,
java.lang.String text)
Returns size of tick label in pixels. |
void |
paintKnob(java.awt.Graphics2D g2d)
Paints the Round shape representing the dial knob. |
void |
paintMarker(java.awt.Graphics2D g2d)
Paints the marker of the DialKnob denoting the value set by the user. |
void |
paintTicks(java.awt.Graphics2D g2d)
Paints the ticks of the DialKnob. |
void |
paintTitleLabel(java.awt.Graphics2D g2d)
Paints the title title on the top of the dial knob. |
void |
paintValueLabel(java.awt.Graphics2D g2d)
Paints the value title in the middle of the dial knob. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DialKnob.Renderer()
| Method Detail |
|---|
public void checkValue()
public void clearBuffer()
public void clearScale()
public void initialize(java.awt.Graphics2D g2d)
g2d - graphics representing this component
public int measureTick(double position,
java.lang.String text)
TickParameters
measureTick in interface TickParametersposition - relative position of the tick on 0..1.text - label to display, may be empty string or null.
public void paintKnob(java.awt.Graphics2D g2d)
g2d - graphics representing this componentpublic void paintMarker(java.awt.Graphics2D g2d)
g2d - graphics representing this componentpublic void paintTicks(java.awt.Graphics2D g2d)
g2d - graphics representing this componentpublic void paintTitleLabel(java.awt.Graphics2D g2d)
g2d - graphics representing this componentpublic void paintValueLabel(java.awt.Graphics2D g2d)
g2d - graphics representing this componentpublic java.lang.String formatNumber(double x)
TickParameters
formatNumber in interface TickParametersx - double to be formatted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||