|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjchrest.gui.Size
public class Size
Method Summary | |
---|---|
void |
drawText(java.awt.Graphics2D g,
float x,
float y,
java.lang.String str)
Display given text at coordinates. |
java.awt.Font |
getFont()
|
int |
getHeight(java.lang.String str,
java.awt.Graphics2D g)
|
int |
getHorizontalSeparator(jchrest.gui.Orientation orientation)
|
int |
getMargin()
|
int |
getSmallSize()
Size of box for small size. |
java.awt.geom.Rectangle2D |
getTextBounds(java.lang.String str,
java.awt.Graphics2D g)
Return the bounding box for given string drawn at this size |
java.awt.font.TextLayout |
getTextLayout(java.lang.String str,
java.awt.Graphics2D g)
Return the TextLayout for given string at this size |
static java.util.List<Size> |
getValues()
|
int |
getVerticalSeparator(jchrest.gui.Orientation orientation)
|
int |
getWidth(java.lang.String str,
java.awt.Graphics2D g)
|
boolean |
isSmall()
Return true if this size should be drawn as a box rather than with text and graphics. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.awt.Font getFont()
public int getMargin()
public int getHorizontalSeparator(jchrest.gui.Orientation orientation)
public int getVerticalSeparator(jchrest.gui.Orientation orientation)
public boolean isSmall()
public int getSmallSize()
public static java.util.List<Size> getValues()
public java.awt.font.TextLayout getTextLayout(java.lang.String str, java.awt.Graphics2D g)
public java.awt.geom.Rectangle2D getTextBounds(java.lang.String str, java.awt.Graphics2D g)
public int getHeight(java.lang.String str, java.awt.Graphics2D g)
public int getWidth(java.lang.String str, java.awt.Graphics2D g)
public void drawText(java.awt.Graphics2D g, float x, float y, java.lang.String str)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |