|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 kind of a list of children that they need to handle in a row-like manner.
Method Summary | |
---|---|
static void |
addBackground(Color backgroundColor,
LayoutInfo info,
boolean useCeil)
Add a background Rectangle for the given background color. |
static List<Node> |
createListOfChildren(Node parent)
Creates a list of children for the given Element. |
static List<LayoutableNode> |
createListOfLayoutChildren(Node parent)
Creates a list of layoutable children for the given Element. |
static void |
fillInfoFromChildren(LayoutView view,
LayoutInfo info,
Node parent,
LayoutStage stage,
Dimension2D borderLeftTop,
Dimension2D borderRightBottom)
|
static void |
layoutSequential(LayoutView view,
LayoutInfo info,
List<LayoutableNode> children,
LayoutStage stage)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List<Node> createListOfChildren(Node parent)
parent
- the parent element.
public static List<LayoutableNode> createListOfLayoutChildren(Node parent)
parent
- the parent element.
public static void fillInfoFromChildren(LayoutView view, LayoutInfo info, Node parent, LayoutStage stage, Dimension2D borderLeftTop, Dimension2D borderRightBottom)
view
- View Objectinfo
- Info to fillparent
- Current Nodestage
- Stage to load Info FromborderLeftTop
- border around element.borderRightBottom
- border around element.public static void layoutSequential(LayoutView view, LayoutInfo info, List<LayoutableNode> children, LayoutStage stage)
view
- View Objectinfo
- Info to fillchildren
- Children to layoutstage
- Stage to load Info Frompublic static void addBackground(Color backgroundColor, LayoutInfo info, boolean useCeil)
backgroundColor
- background color (may be null)info
- LayoutInfo object to add to. Must already be completely
rendered (stage 2)useCeil
- if true, the Math.ceil(double)
will be used to avoid
anti-aliasing artifacts.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |