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 int SLIDER_STEP  
  • Constructor Summary

    Constructors 
    Constructor Description
    ShapeAdapter()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object changeCircle​(java.lang.Object p)
    set the new selected shape to circle
    java.lang.Object changeFill​(java.lang.Object o)
    set the new fill method selected
    java.lang.Object changeFreeDraw​(java.lang.Object o)
    set the new selected shape to pen tool
    java.lang.Object changeLine​(java.lang.Object p)
    set the new selected shape to line
    java.lang.Object changeOval​(java.lang.Object o)
    set the new selected shape to oval
    java.lang.Object changeRectangle​(java.lang.Object p)
    set the new selected shape to rectangle
    java.lang.Object changeRoundedRectangle​(java.lang.Object p)
    set the new selected shape to rounded rectangle
    java.lang.Object decreaseLineThickness​(java.lang.Object o)
    decrease the line thickness
    java.lang.Object increaseLineThickness​(java.lang.Object o)
    increase the line thickness

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • 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