fr.ove.openmath.jome.ctrlview.bidim
Interface Displayable

All Superinterfaces:
Localisable, Sizable
All Known Implementing Classes:
Display, DisplayableImpl

public interface Displayable
extends Localisable, Sizable

An implementation of the Displayable interface.

Version:
2.0 29/06/1999
Author:
© 1999 DIRAT Laurent

Method Summary
 int getAscent()
          Returns the ascent.
 int getDescent()
          Returns the descent.
 GraphicContext getGraphicContext()
          Returns the graphic context of the instance.
 int getShiftX()
          Returns the horizontal shift.
 int getShiftY()
          Returns the vertical shift.
 void paint(java.awt.Graphics g)
          The paint method of the object to display.
 void setAscent(int ascent)
          Sets the ascent.
 void setAttributes(int ascent, int descent, int shiftX, int shiftY)
          Sets all the attributes.
 void setDescent(int descent)
          Sets the descent.
 void setGraphicContext(GraphicContext graphicContext)
          Sets the graphic context of the instance.
 void setShiftX(int shiftX)
          Sets the horizontal shift.
 void setShiftY(int shiftY)
          Sets the vertical shift.
 
Methods inherited from interface fr.ove.openmath.jome.ctrlview.bidim.Localisable
getLocation, getX, getY, setLocation, setLocation, setX, setY
 
Methods inherited from interface fr.ove.openmath.jome.ctrlview.bidim.Sizable
getHeight, getPreferredSize, getSize, getWidth, setHeight, setSize, setSize, setWidth
 

Method Detail

setAscent

public void setAscent(int ascent)
Sets the ascent.

Parameters:
ascent - the new ascent value.

getAscent

public int getAscent()
Returns the ascent.

Returns:
the ascent.

setDescent

public void setDescent(int descent)
Sets the descent.

Parameters:
descent - the new descent value.

getDescent

public int getDescent()
Returns the descent.

Returns:
the descent.

setShiftX

public void setShiftX(int shiftX)
Sets the horizontal shift.


getShiftX

public int getShiftX()
Returns the horizontal shift.

Returns:
the horizontal shift.

setShiftY

public void setShiftY(int shiftY)
Sets the vertical shift.

Parameters:
shiftY - the new vertical shift value.

getShiftY

public int getShiftY()
Returns the vertical shift.

Returns:
the vertical shift.

setAttributes

public void setAttributes(int ascent,
                          int descent,
                          int shiftX,
                          int shiftY)
Sets all the attributes.

Parameters:
ascent - the new ascent value.
descent - the new descent value.
shiftX - the new horizontal shift value.
shiftY - the new vertical shift value.

setGraphicContext

public void setGraphicContext(GraphicContext graphicContext)
Sets the graphic context of the instance.

Parameters:
graphicContext - the graphic context.

getGraphicContext

public GraphicContext getGraphicContext()
Returns the graphic context of the instance.


paint

public void paint(java.awt.Graphics g)
The paint method of the object to display.

Parameters:
g - the drawing area of the symbol.


Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.