Polygon

org.nlogo.shape.Polygon
class Polygon(color: Color) extends Curve, Polygon, Cloneable

Attributes

Source
Polygon.scala
Graph
Supertypes
trait Polygon
class Curve
class Element
trait Cloneable
trait Serializable
trait Element
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(xcoords: List[Int], ycoords: List[Int], c: Color)

Attributes

Source
Polygon.scala
def this(start: Point, color: Color)

Attributes

Source
Polygon.scala
def this(color: Color, filled: Boolean, marked: Boolean, points: List[Point])

Attributes

Source
Polygon.scala

Concrete methods

def addNewPoint(newPoint: Point): Unit

Attributes

Source
Polygon.scala
override def bounds: Rectangle

Attributes

Definition Classes
Source
Polygon.scala
override def clone: AnyRef

Create a copy of the receiver object.

Create a copy of the receiver object.

The default implementation of the clone method is platform dependent.

Attributes

Returns

a copy of the receiver object.

Note

not specified by SLS as a member of AnyRef

Definition Classes
Element -> Object
Source
Polygon.scala
def contains(p: Point): Boolean

Attributes

Source
Polygon.scala
override def draw(g: GraphicsInterface, turtleColor: Color, scale: Double, angle: Double): Unit

Attributes

Definition Classes
Source
Polygon.scala
def finishUp(): Unit

Attributes

Source
Polygon.scala
def getHandles: Array[Point]

Attributes

Source
Polygon.scala
override def modify(start: Point, end: Point): Unit

Attributes

Definition Classes
Source
Polygon.scala
def modifyPoint(newPoint: Point): Unit

Attributes

Source
Polygon.scala
def moveElement(xOffset: Int, yOffset: Int): Unit

Attributes

Source
Polygon.scala
override def points: Seq[(Int, Int)]

Attributes

Definition Classes
Source
Polygon.scala
def reshapeElement(oldPoint: Point, newPoint: Point): Unit

Attributes

Source
Polygon.scala
def selfClose(): Unit

Attributes

Source
Polygon.scala
override def setModifiedPoint(modified: Point): Unit

Attributes

Definition Classes
Source
Polygon.scala
override def toReadableString: String

Attributes

Definition Classes
Source
Polygon.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Polygon.scala

Inherited methods

def deselect(): Unit

Attributes

Inherited from:
Element
Source
Element.scala
def displayColor(turtleColor: Color): Color

Attributes

Inherited from:
Element
Source
Element.scala

Attributes

Inherited from:
Curve
Source
Curve.scala

Attributes

Inherited from:
Curve
Source
Curve.scala
def rotateLeft(): Unit

Attributes

Inherited from:
Curve
Source
Curve.scala
def rotateRight(): Unit

Attributes

Inherited from:
Curve
Source
Curve.scala
def select(): Unit

Attributes

Inherited from:
Element
Source
Element.scala
def xCoords: Seq[Int]

Attributes

Inherited from:
Polygon
Source
Shape.scala
def yCoords: Seq[Int]

Attributes

Inherited from:
Polygon
Source
Shape.scala

Concrete fields

Attributes

Source
Polygon.scala

Inherited fields

var awtColor: Color

Attributes

Inherited from:
Element
Source
Element.scala

Attributes

Inherited from:
Element
Source
Element.scala

Attributes

Inherited from:
Element
Source
Element.scala
var xcoords: Array[Int]

Attributes

Inherited from:
Curve
Source
Curve.scala
var ycoords: Array[Int]

Attributes

Inherited from:
Curve
Source
Curve.scala