be.lassi.ui.color
Class ColorWheelLayout
java.lang.Object
be.lassi.ui.color.ColorWheelLayout
public class ColorWheelLayout
- extends java.lang.Object
Field Summary |
static int |
GAP
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GAP
public static final int GAP
- See Also:
- Constant Field Values
ColorWheelLayout
public ColorWheelLayout(javax.swing.JPanel panel,
ColorWheel wheel)
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()