|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.jome.ctrlview.bidim.DisplayableImpl
fr.ove.openmath.jome.ctrlview.bidim.ImageSymbol
The Displayable implementation of an image symbol.
| Constructor Summary | |
ImageSymbol(java.lang.String imgId,
java.awt.image.ImageObserver observer)
The constructor. |
|
| Method Summary | |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of the display. |
java.awt.Image |
getSymbol()
Returns the image of the symbol. |
void |
paint(java.awt.Graphics g)
The paint method of the object to display. |
void |
setGraphicContext(GraphicContext graphicContext)
Sets the graphic context in which the object is. |
| Methods inherited from class fr.ove.openmath.jome.ctrlview.bidim.DisplayableImpl |
getAscent, getDescent, getGraphicContext, getHeight, getLocation, getShiftX, getShiftY, getSize, getWidth, getX, getY, setAscent, setAttributes, setDescent, setHeight, setLocation, setLocation, setShiftX, setShiftY, setSize, setSize, setWidth, setX, setY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageSymbol(java.lang.String imgId,
java.awt.image.ImageObserver observer)
imgId - the image identifier of the symbol.observer - the object to be notified as more of the image is converted.| Method Detail |
public void setGraphicContext(GraphicContext graphicContext)
setGraphicContext in interface DisplayablesetGraphicContext in class DisplayableImplgraphicContext - the object graphic context.
Actually, this methods gives information to the object, notably when its preferred
size is required. If the context has changed, the displayable object must be informed.
However, in the most part of the time, the whole graphic context won't be necessary
stored, but only specific and usefull data.public void paint(java.awt.Graphics g)
g - the drawing area of the symbol.public java.awt.Dimension getPreferredSize()
getPreferredSize in interface SizablegetPreferredSize in class DisplayableImplpublic java.awt.Image getSymbol()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||