public class SqrtView extends AbstractView
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROOT_PARAMETER |
m_margin
Constructor and Description |
---|
SqrtView() |
Modifier and Type | Method and Description |
---|---|
ViewIF |
copy()
Creates and returns a copy of this view.
|
double |
getBaseline(java.awt.Graphics g)
Returns the baseline of this view.
|
java.awt.Dimension |
getPreferredSize(java.awt.Graphics context)
Returns the preferred size of this view.
|
void |
paint(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints this view onto the given graphics context with the defined coordinates and size.
|
addChild, getAttribute, getAttribute, getAttributes, getBackground, getChild, getChildCount, getFont, getForeground, getHorizontalAlignment, getInsets, getMaximumSize, getParameter, getSize, isOpaque, setAttribute, setAttributes, setMaximumSize, setParameter, setSize, updateView
public static final java.lang.String ROOT_PARAMETER
public ViewIF copy()
ViewIF
public double getBaseline(java.awt.Graphics g)
AbstractView
getBaseline
in interface ViewIF
getBaseline
in class AbstractView
g
- a graphics contextpublic java.awt.Dimension getPreferredSize(java.awt.Graphics context)
ViewIF
context
- a graphics contextpublic void paint(java.awt.Graphics g, int x, int y, int width, int height)
AbstractView
paint
in interface ViewIF
paint
in class AbstractView
g
- a graphics contextx
- horizontal starting positiony
- vertical starting positionwidth
- horizontal extentheight
- vertical extentFurther documentation and examples can be found under www.mathletfactory.de.