|
JClass 4.5.0 API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.swing.gauge.RadialConstraint
A RadialConstraint
is one that provides layout
information for a component that needs to be placed on
a circular gauge. It provides information to the layout
by giving a distance from the center and an angle from
the horizontal of the specified circular gauge.
Field Summary | |
protected double |
angle
The angle at which to place this label |
protected double |
extent
The ratio of the radius away from the center at which to place this label |
protected JCGauge |
gauge
The gauge |
Constructor Summary | |
RadialConstraint(JCGauge gauge,
double extent,
double angle)
Constructor for RadialConstraint using a JComponent as the component. |
Method Summary | |
double |
getAngle()
Returns the angle at which this component will be placed. |
double |
getExtent()
Returns the extent at which this component will be placed. |
JCGauge |
getGauge()
|
void |
setAngle(double angle)
Sets the angle at which this component will be placed. |
void |
setExtent(double extent)
Sets the extent at which this component will be placed. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected double extent
protected double angle
protected JCGauge gauge
Constructor Detail |
public RadialConstraint(JCGauge gauge, double extent, double angle)
RadialConstraint
using a JComponent
as the component.extent
- The distance from the center of circle as a proportion
of the radiusangle
- The angle at which this component will be placed, and at "extent" distance
from the centerMethod Detail |
public double getExtent()
return
- the extent at which this component will be placedpublic void setExtent(double extent)
extent
- The extent at which to place this componentpublic double getAngle()
public void setAngle(double angle)
angle
- The angle at which this component will be placedpublic JCGauge getGauge()
public String toString()
|
Copyright© 1999-2000 KL Group Inc. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |