Package KeyBoard
Class ShapeAdapter
java.lang.Object
KeyBoard.ShapeAdapter
public class ShapeAdapter
extends java.lang.Object
access the global constants in the Shapes enums in order to activate user changes
- Author:
- Itay Finci
-
Field Summary
Fields Modifier and Type Field Description static intSLIDER_STEP -
Constructor Summary
Constructors Constructor Description ShapeAdapter() -
Method Summary
Modifier and Type Method Description java.lang.ObjectchangeCircle(java.lang.Object p)set the new selected shape to circlejava.lang.ObjectchangeFill(java.lang.Object o)set the new fill method selectedjava.lang.ObjectchangeFreeDraw(java.lang.Object o)set the new selected shape to pen tooljava.lang.ObjectchangeLine(java.lang.Object p)set the new selected shape to linejava.lang.ObjectchangeOval(java.lang.Object o)set the new selected shape to ovaljava.lang.ObjectchangeRectangle(java.lang.Object p)set the new selected shape to rectanglejava.lang.ObjectchangeRoundedRectangle(java.lang.Object p)set the new selected shape to rounded rectanglejava.lang.ObjectdecreaseLineThickness(java.lang.Object o)decrease the line thicknessjava.lang.ObjectincreaseLineThickness(java.lang.Object o)increase the line thickness
-
Field Details
-
SLIDER_STEP
public static final int SLIDER_STEP- See Also:
- Constant Field Values
-
-
Constructor Details
-
ShapeAdapter
public ShapeAdapter()
-
-
Method Details
-
changeRectangle
public java.lang.Object changeRectangle(java.lang.Object p)set the new selected shape to rectangle- Parameters:
p- for compatibility with :: expressions- Returns:
- null
-
changeRoundedRectangle
public java.lang.Object changeRoundedRectangle(java.lang.Object p)set the new selected shape to rounded rectangle- Parameters:
p- for compatibility with :: expressions- Returns:
- null
-
changeCircle
public java.lang.Object changeCircle(java.lang.Object p)set the new selected shape to circle- Parameters:
p- for compatibility with :: expressions- Returns:
- null
-
changeOval
public java.lang.Object changeOval(java.lang.Object o)set the new selected shape to oval- Parameters:
o- for compatibility with :: expressions- Returns:
- null
-
changeLine
public java.lang.Object changeLine(java.lang.Object p)set the new selected shape to line- Parameters:
p- for compatibility with :: expressions- Returns:
- null
-
changeFreeDraw
public java.lang.Object changeFreeDraw(java.lang.Object o)set the new selected shape to pen tool- Parameters:
o- for compatibility with :: expressions- Returns:
- null
-
changeFill
public java.lang.Object changeFill(java.lang.Object o)set the new fill method selected- Parameters:
o- for compatibility with :: expressions- Returns:
- null
-
increaseLineThickness
public java.lang.Object increaseLineThickness(java.lang.Object o)increase the line thickness- Parameters:
o- for compatibility with :: expressions- Returns:
- null
-
decreaseLineThickness
public java.lang.Object decreaseLineThickness(java.lang.Object o)decrease the line thickness- Parameters:
o- for compatibility with :: expressions- Returns:
- null
-