Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.modama.gui.viewer.rule
Class HorizontalTopRuleRenderer  view HorizontalTopRuleRenderer download HorizontalTopRuleRenderer.java

java.lang.Object
  extended byorg.modama.gui.viewer.rule.RuleRenderer
      extended byorg.modama.gui.viewer.rule.HorizontalTopRuleRenderer

public class HorizontalTopRuleRenderer
extends RuleRenderer

the renderer for a horizontal rule


Field Summary
 
Fields inherited from class org.modama.gui.viewer.rule.RuleRenderer
biggeststring, g2D, image, invert, numbergap, props, size
 
Constructor Summary
HorizontalTopRuleRenderer()
           
 
Method Summary
 int getImageHeight()
          get the height of the ruleimage, this depends on, wether its a horizontal or vertical one
 int getImageWidth()
          get the width of the ruleimage, this depends on, wether its a horizontal or vertical one
 java.awt.Point getNumberPosition(java.awt.Point pointtonumber, java.awt.Dimension stringsize)
          this code depends on wether its a horizontal or vertical rule
gets the startpoint for the drawString method
 java.awt.Point getPoint(double position, int height)
          this code depends on wether its a horizontal or vertical 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
 

Constructor Detail

HorizontalTopRuleRenderer

public HorizontalTopRuleRenderer()
Method Detail

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