Overview  Package   Class  Tree  Index 

be.lassi.ui.color
Class ColorWheelLayout

java.lang.Object
  extended by be.lassi.ui.color.ColorWheelLayout

public class ColorWheelLayout
extends java.lang.Object


Field Summary
static int GAP
           
 
Constructor Summary
ColorWheelLayout(javax.swing.JPanel panel, ColorWheel wheel)
           
 
Method Summary
 java.awt.Point getImageOrigin()
           
 java.awt.Point getPanelCoordinates(java.awt.Point wheelPoint)
          Translates wheel coordinates to panel coordinates.
 java.awt.Point getWheelCoordinates(java.awt.Point panelPoint)
          Translates panel coordinates to wheel coordinates.
 void resized()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GAP

public static final int GAP
See Also:
Constant Field Values
Constructor Detail

ColorWheelLayout

public ColorWheelLayout(javax.swing.JPanel panel,
                        ColorWheel wheel)
Method Detail

getImageOrigin

public java.awt.Point getImageOrigin()

getPanelCoordinates

public java.awt.Point getPanelCoordinates(java.awt.Point wheelPoint)
Translates wheel coordinates to panel coordinates.

Parameters:
point - with wheel coordinates
Returns:
point with panel coordinates

getWheelCoordinates

public java.awt.Point getWheelCoordinates(java.awt.Point panelPoint)
Translates panel coordinates to wheel coordinates.

Parameters:
point - with panel coordinates
Returns:
point with wheel coordinates

resized

public void resized()

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2