JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.swing.gauge
Class RadialConstraint

java.lang.Object
  |
  +--com.klg.jclass.swing.gauge.GaugeConstraint
        |
        +--com.klg.jclass.swing.gauge.RadialConstraint
All Implemented Interfaces:
Serializable

public class RadialConstraint
extends GaugeConstraint
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
 
Fields inherited from class com.klg.jclass.swing.gauge.GaugeConstraint
extent, gauge
 
Constructor Summary
RadialConstraint(com.klg.jclass.swing.gauge.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.
 void setAngle(double angle)
          Sets the angle at which this component will be placed.
 String toString()
          Return a string version of this constraint
 
Methods inherited from class com.klg.jclass.swing.gauge.GaugeConstraint
getExtent, getGauge, setExtent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

angle

protected double angle
The angle at which to place this label

Constructor Detail

RadialConstraint

public RadialConstraint(com.klg.jclass.swing.gauge.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

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

toString

public String toString()
Return a string version of this constraint

Overrides:
toString in class Object
Returns:
A string version of this constraint

Copyright © 2004 Quest Software Inc..
All rights reserved.