WarpPI/src/main/java/org/warp/picalculator/gui/GraphicalElement.java

31 lines
598 B
Java
Executable File

package org.warp.picalculator.gui;
public interface GraphicalElement {
/**
* Recompute element's dimension parameters, like <strong>width</strong>,
* <strong>height</strong>, <strong>line</strong> or
* <strong>length</strong>.
*/
public void recomputeDimensions();
/**
*
* @return Width of the element.
*/
public int getWidth();
/**
*
* @return Height of the element.
*/
public int getHeight();
/**
*
* @return Position of the vertical alignment line of the element, relative
* to itself.
*/
public int getLine();
}