|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActiveElement
Interface specifies a graphical element, that needs is relatively small in size and needs to be drawn very often over the prerendered scale. The methods specified are sufficied for the Gauger to perform optimized rendering when the location of the element changes.
Method Summary | |
---|---|
java.awt.Rectangle |
getBounds()
Returns the extents of this object. |
boolean |
isChangeSignificant()
Returns whether the element has changed significantly since it was last redrawn. |
void |
render(java.awt.Graphics2D g)
Performs the rendering of the element. |
void |
setTransform(ScaleTransform transform)
Notifies the element that the transformation used to draw this scale has changed. |
Method Detail |
---|
java.awt.Rectangle getBounds()
void render(java.awt.Graphics2D g)
g
- Graphics object to draw to.transform
- transformation defining the scale.boolean isChangeSignificant()
void setTransform(ScaleTransform transform)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |