sexi.gui.graph
Class TreePainter
java.lang.Object
|
+--sexi.gui.graph.TreePainter
- public class TreePainter
- extends java.lang.Object
Paint the tree
Method Summary |
static void |
drawCrownSide(java.awt.Graphics2D g2,
int x,
int y,
float scale,
CrownFigure c,
int fillType)
|
static void |
drawCrownSide(java.awt.Graphics2D g2,
int x,
int y,
float scale,
float horWeight,
float verWeight,
CrownFigure c,
int fillType)
|
(package private) static void |
drawEllipsoidCrownSide(java.awt.Graphics2D g2,
int x,
int y,
float scale,
float horLength,
float verRadius,
float botVerLength,
float horWeight,
float verWeight,
java.awt.Color color,
int fillType)
|
static void |
drawTop(java.awt.Graphics2D g2,
float x_relatif,
float y_relatif,
float scale,
TreeBasic t,
int fillType,
int infoType)
|
static void |
drawTop(java.awt.Graphics2D g2,
java.awt.geom.Point2D center,
float scale,
CrownFigure c,
int fillType)
|
static void |
drawTop(java.awt.Graphics2D g2,
java.awt.geom.Point2D center,
float scale,
float horWeight,
CrownFigure c,
int fillType)
|
static void |
drawTreeSide(java.awt.Graphics2D g2,
int x,
int y,
float scale,
TreeBasic t,
int fillType)
|
(package private) static float |
getHalfBotomGapAngle(float scale,
float horLength,
float verRadius,
float botVerLength)
|
static float |
getZ(float x,
float y,
float verRadius,
float horRadius)
|
(package private) static float |
getZCrown(float x,
float y,
float h,
float r,
float a)
|
(package private) static float |
getZEllipse(float x,
float y,
float verRadius,
float horRadius)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OUTLINE_FILL
public static final int OUTLINE_FILL
OPAQUE_FILL
public static final int OPAQUE_FILL
TRANSPARENT_FILL
public static final int TRANSPARENT_FILL
REALISTIC_FILL
public static final int REALISTIC_FILL
INFO_NONE
public static final int INFO_NONE
INFO_ID
public static final int INFO_ID
INFO_LABEL
public static final int INFO_LABEL
INFO_CP
public static final int INFO_CP
INFO_CF
public static final int INFO_CF
TreePainter
public TreePainter()
drawTreeSide
public static void drawTreeSide(java.awt.Graphics2D g2,
int x,
int y,
float scale,
TreeBasic t,
int fillType)
drawCrownSide
public static void drawCrownSide(java.awt.Graphics2D g2,
int x,
int y,
float scale,
CrownFigure c,
int fillType)
drawCrownSide
public static void drawCrownSide(java.awt.Graphics2D g2,
int x,
int y,
float scale,
float horWeight,
float verWeight,
CrownFigure c,
int fillType)
drawEllipsoidCrownSide
static void drawEllipsoidCrownSide(java.awt.Graphics2D g2,
int x,
int y,
float scale,
float horLength,
float verRadius,
float botVerLength,
float horWeight,
float verWeight,
java.awt.Color color,
int fillType)
getZ
public static float getZ(float x,
float y,
float verRadius,
float horRadius)
getZEllipse
static float getZEllipse(float x,
float y,
float verRadius,
float horRadius)
getZCrown
static float getZCrown(float x,
float y,
float h,
float r,
float a)
getHalfBotomGapAngle
static float getHalfBotomGapAngle(float scale,
float horLength,
float verRadius,
float botVerLength)
drawTop
public static void drawTop(java.awt.Graphics2D g2,
java.awt.geom.Point2D center,
float scale,
CrownFigure c,
int fillType)
drawTop
public static void drawTop(java.awt.Graphics2D g2,
java.awt.geom.Point2D center,
float scale,
float horWeight,
CrownFigure c,
int fillType)
drawTop
public static void drawTop(java.awt.Graphics2D g2,
float x_relatif,
float y_relatif,
float scale,
TreeBasic t,
int fillType,
int infoType)