com.datamessenger.awt
Class BarContext
java.lang.Object
|
+--java.awt.geom.RectangularShape
|
+--java.awt.geom.Rectangle2D
|
+--java.awt.Rectangle
|
+--com.datamessenger.awt.BarContext
- Direct Known Subclasses:
- RulerContext
- public class BarContext
- extends java.awt.Rectangle
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 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 |
BarContext(int orientation)
A new blank BarContext. |
BarContext(long offset,
long length,
long barpos,
long barlength,
int orientation,
int inset)
|
| 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 |
HORIZONTAL
public static final int HORIZONTAL
VERTICAL
public static final int VERTICAL
offset
public long offset
length
public long length
barpos
public long barpos
barlength
public long barlength
bounds
protected java.awt.Rectangle bounds
BarContext
public BarContext(int orientation)
- A new blank BarContext.
BarContext
public BarContext(long offset,
long length,
long barpos,
long barlength,
int orientation,
int inset)
getBounds
public java.awt.Rectangle getBounds()
- Overrides:
- getBounds in class java.awt.Rectangle
setBounds
public void setBounds(int x,
int y,
int width,
int height)
- Overrides:
- setBounds in class java.awt.Rectangle
getInset
public int getInset()
getOrientation
public int getOrientation()
isHorizontal
public boolean isHorizontal()
updateBarValues
public void updateBarValues()
- Resets bar length and/or position to correspond with changes
in the shape of this context. This method should be called
after modifiying x, y, width, or height fields.
updateShapeValues
public void updateShapeValues()
- Resets context shape to correspond with changes
in bar length and/or position. This method should be called
after modifiying offset, length, barpos, or barlength fields.
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.