|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jeuclid.elements.support.ElementListSupport
public final class ElementListSupport
Class to support Lists of MathElements.
This class can be used by all elements that have some kinf of a list of children that they need to handle in a row-like manner.
| Method Summary | |
|---|---|
static List<JEuclidElement> |
createListOfChildren(Node parent)
Creates a list of children for the given MathElement. |
static void |
fireChangeForSubTree(List<JEuclidElement> elements)
Calls ChangeTrackingInterface.fireChangeForSubTree() on all the
given elements. |
static float |
getAscentHeight(Graphics2D g,
List<JEuclidElement> elements)
Retrieve the maximum ascent height of the list. |
static float |
getDescentHeight(Graphics2D g,
List<JEuclidElement> elements)
Retrieve the maximum descent height of the list. |
static float |
getHeight(Graphics2D g,
List<JEuclidElement> elements)
Retrieve the total height of the list. |
static float |
getWidth(Graphics2D g,
List<JEuclidElement> elements)
Retrieve the total witdth of the list. |
static void |
paint(Graphics2D g,
float posX,
float posY,
List<JEuclidElement> elements)
Paint all elements in a row-like fashion. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static List<JEuclidElement> createListOfChildren(Node parent)
parent - the parent element.
public static float getAscentHeight(Graphics2D g,
List<JEuclidElement> elements)
g - Graphics2D context to use.elements - List of elements.
public static float getDescentHeight(Graphics2D g,
List<JEuclidElement> elements)
g - Graphics2D context to use.elements - List of elements.
public static float getHeight(Graphics2D g,
List<JEuclidElement> elements)
g - Graphics2D context to use.elements - List of elements.
public static float getWidth(Graphics2D g,
List<JEuclidElement> elements)
g - Graphics2D context to use.elements - List of elements.
public static void paint(Graphics2D g,
float posX,
float posY,
List<JEuclidElement> elements)
g - Graphics2D context to use.elements - List of elements.posX - x-origin to use for painting.posY - y-origin to use for painting.public static void fireChangeForSubTree(List<JEuclidElement> elements)
ChangeTrackingInterface.fireChangeForSubTree() on all the
given elements.
elements - a list of elements to fire the change on.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||