|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DisplayableNode
Any node that can be displayed on screen. This is the start of a generic interface that should support all types of Nodes.
| Method Summary | |
|---|---|
float |
getAscentHeight(Graphics2D g)
Returns the current height of the upper part of this component from the baseline. |
float |
getDescentHeight(Graphics2D g)
Returns the current height of the lower part of this component from the baseline. |
float |
getHeight(Graphics2D g)
Return the current height of this element. |
float |
getPaintedPosX()
Returns the last X position this node was painted on. |
float |
getPaintedPosY()
Returns the last Y position this node was painted on. |
float |
getWidth(Graphics2D g)
Returns the current width of this element. |
float |
getXCenter(Graphics2D g)
Returns the center X coordinate of the content. |
void |
paint(Graphics2D g,
float posX,
float posY)
Paints this element. |
| Method Detail |
|---|
void paint(Graphics2D g,
float posX,
float posY)
g - The graphics context to use for paintingposX - The first left position for paintingposY - The position of the baselinefloat getAscentHeight(Graphics2D g)
g - Graphics2D context to use.
float getDescentHeight(Graphics2D g)
g - Graphics2D context to use.
float getHeight(Graphics2D g)
g - Graphics2D context to use.
float getWidth(Graphics2D g)
g - Graphics2D context to use.
float getXCenter(Graphics2D g)
g - X-offset of the horizontal center of the actual content.
float getPaintedPosX()
float getPaintedPosY()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||