java.lang.Object
org.modama.gui.viewer.rule.RuleRenderer
org.modama.gui.viewer.rule.HorizontalTopRuleRenderer
- public class HorizontalTopRuleRenderer
- extends RuleRenderer
the renderer for a horizontal rule
| Methods inherited from class org.modama.gui.viewer.rule.RuleRenderer |
calcBiggestString, createImage, drawNumber, drawNumberStroke, drawSmallStroke, drawStoke, getImage, getImageForString, getStringForNumber, getStringSize, isInvert, setInvert |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HorizontalTopRuleRenderer
public HorizontalTopRuleRenderer()
getPoint
public java.awt.Point getPoint(double position,
int height)
- Description copied from class:
RuleRenderer
- this code depends on wether its a horizontal or vertical rule
- Specified by:
getPoint in class RuleRenderer
getNumberPosition
public java.awt.Point getNumberPosition(java.awt.Point pointtonumber,
java.awt.Dimension stringsize)
- Description copied from class:
RuleRenderer
- this code depends on wether its a horizontal or vertical rule
gets the startpoint for the drawString method
- Specified by:
getNumberPosition in class RuleRenderer
getImageWidth
public int getImageWidth()
- Description copied from class:
RuleRenderer
- get the width of the ruleimage, this depends on, wether its a horizontal or vertical one
- Specified by:
getImageWidth in class RuleRenderer
getImageHeight
public int getImageHeight()
- Description copied from class:
RuleRenderer
- get the height of the ruleimage, this depends on, wether its a horizontal or vertical one
- Specified by:
getImageHeight in class RuleRenderer