|
|||||||||||
| 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.CurlySymbol
The curly bracket.
| Constructor Summary | |
CurlySymbol(boolean isLeftBracket,
int heightExtremities,
java.awt.image.ImageObserver observer)
The constructor. |
|
| Method Summary | |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of the display. |
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 CurlySymbol(boolean isLeftBracket,
int heightExtremities,
java.awt.image.ImageObserver observer)
isLeftBracket - true if the instance represents a left bracket. false
otherwise.heightExtremities - the height of the extremities of the bracket.observer - the object to be notified as more of the image is converted.| Method Detail |
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 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 to
be stored, but only specific and usefull data.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||