JClass 4.5.0 API
Documentation

com.klg.jclass.swing.gauge
Class RadialConstraint

java.lang.Object
  |
  +--com.klg.jclass.swing.gauge.RadialConstraint

public class RadialConstraint
extends Object
implements Serializable

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.

See Also:
Serialized Form

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

extent

protected double extent
The ratio of the radius away from the center at which to place this label

angle

protected double angle
The angle at which to place this label

gauge

protected JCGauge gauge
The gauge
Constructor Detail

RadialConstraint

public RadialConstraint(JCGauge gauge,
                        double extent,
                        double angle)
Constructor for RadialConstraint using a JComponent as the component.
Parameters:
extent - The distance from the center of circle as a proportion of the radius
angle - The angle at which this component will be placed, and at "extent" distance from the center
Method Detail

getExtent

public double getExtent()
Returns the extent at which this component will be placed.
Parameters:
return - the extent at which this component will be placed

setExtent

public void setExtent(double extent)
Sets the extent at which this component will be placed.
Parameters:
extent - The extent at which to place this component

getAngle

public double getAngle()
Returns the angle at which this component will be placed.
Returns:
The angle at which this component will be placed

setAngle

public void setAngle(double angle)
Sets the angle at which this component will be placed.
Parameters:
angle - The angle at which this component will be placed

getGauge

public JCGauge getGauge()

toString

public String toString()
Overrides:
toString in class Object

Copyright© 1999-2000 KL Group Inc.
All rights reserved.