|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.gauger.Needle
public class Needle
Component defining and rendering the needle.
Field Summary | |
---|---|
protected ScaleTransform |
transform
|
Constructor Summary | |
---|---|
Needle(Gauger gauger)
Needle constructor comment. |
Method Summary | |
---|---|
protected void |
calculatePolygon()
Updates the polygon representation of the needle. |
java.awt.Rectangle |
getBounds()
Returns bounding rectangle of needle. |
boolean |
isChangeSignificant()
Returns true if needle has moved enough to require immediate redraw. |
boolean |
isOutOfBounds()
NOT IMPLEMENTED! Returns true if value is out of bounds. |
void |
render(java.awt.Graphics2D g)
Renders needle. |
void |
setPosition(double proportionalPosition)
Sets position of needle in scale space coordinates. |
void |
setTransform(ScaleTransform transform)
Sets transform defining the gauger. |
protected void |
updatePosition(double x)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ScaleTransform transform
Constructor Detail |
---|
public Needle(Gauger gauger)
gauger
- on which the needle will be rendered.Method Detail |
---|
protected void calculatePolygon()
public java.awt.Rectangle getBounds()
getBounds
in interface ActiveElement
public boolean isChangeSignificant()
isChangeSignificant
in interface ActiveElement
protected void updatePosition(double x)
public void setPosition(double proportionalPosition)
proportionalPosition
- New position of needle.public void render(java.awt.Graphics2D g)
render
in interface ActiveElement
g
- Graphics object to draw to.ActiveElement.render(Graphics2D)
public void setTransform(ScaleTransform transform)
setTransform
in interface ActiveElement
ActiveElement.setTransform(ScaleTransform)
public boolean isOutOfBounds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |