kcl.waterloo.swing.layout
Class GraphicConstraint
- java.lang.Object
-
- kcl.waterloo.swing.layout.GraphicConstraint
-
public class GraphicConstraint extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description GraphicConstraint()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetAlignX()intgetAlignY()java.awt.ComponentgetComponent()doublegetX()doublegetY()voidsetAlignX(int alignX)voidsetAlignY(int alignY)voidsetComponent(java.awt.Component component)voidsetX(double x)voidsetY(double y)
-
-
-
Method Detail
-
getX
public double getX()
- Returns:
- the x-value (in graph units).
-
setX
public void setX(double x)
- Parameters:
x- sets the x-value (in graph units).
-
getY
public double getY()
- Returns:
- the y-value (in graph units).
-
setY
public void setY(double y)
- Parameters:
y- sets the x-value (in graph units).
-
getAlignX
public int getAlignX()
- Returns:
- the x-alignment as a
SwingConstant-defined int.
-
setAlignX
public void setAlignX(int alignX)
- Parameters:
alignX- the alignX to set
-
getAlignY
public int getAlignY()
- Returns:
- the y-alignment as a
SwingConstant-defined int.
-
setAlignY
public void setAlignY(int alignY)
- Parameters:
alignY- the alignY to set
-
getComponent
public java.awt.Component getComponent()
- Returns:
- the component
-
setComponent
public void setComponent(java.awt.Component component)
- Parameters:
component- the component to set
-
-
DMelt 3.0 © DataMelt by jWork.ORG