com.datamessenger.awt
Class RulerContext


java.lang.Object

  |

  +--java.awt.geom.RectangularShape

        |

        +--java.awt.geom.Rectangle2D

              |

              +--java.awt.Rectangle

                    |

                    +--com.datamessenger.awt.BarContext

                          |

                          +--com.datamessenger.awt.RulerContext


public class RulerContext
extends BarContext

Copyright (c) 1999-2000 Produx House, Corp. All rights reserved.

Version:
1.0, September 30 2000
Author:
Jon L. Boynton
See Also:
Serialized Form

Inner classes inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Fields inherited from class com.datamessenger.awt.BarContext
barlength, barpos, bounds, HORIZONTAL, length, offset, VERTICAL
 
Fields inherited from class java.awt.Rectangle
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
RulerContext(long offset, long length, long hashpos, long hashlength, int orientation, int inset)
          A new blank BarContext.
 
Method Summary
 int getHashCount()
          The number of full hash marks inside this rulers range.
 int getHashIndex(float index)
           
 
Methods inherited from class com.datamessenger.awt.BarContext
getBounds, getInset, getOrientation, isHorizontal, setBounds, updateBarValues, updateShapeValues
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RulerContext


public RulerContext(long offset,

                    long length,

                    long hashpos,

                    long hashlength,

                    int orientation,

                    int inset)
A new blank BarContext.
Method Detail

getHashIndex


public int getHashIndex(float index)

getHashCount


public int getHashCount()
The number of full hash marks inside this rulers range.
Returns:
int - number of hash marks.


Comments, suggestions, and bug reports are welcomed and encouraged.
Please refer them to our support page. Thank you.

Copyright © 1999-2000 Produx House, Corp. All rights reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc.