目录

Shape

Class Info

public class Shape implements Parcelable

基础形状。

Public Constructor Summary

Constructor Name

Shape(Type t)

构造方法,使用形状类型值进行初始化Shape。

Shape(Shape other)

构造方法,使用其他形状进行初始化Shape。

Public Method Summary

Qualifier and Type

Method Name and Description

Type

getType()

获取形状类型。

Public Constructors

[h2]Shape(Type t)

Constructor

public Shape(Type t)

使用形状类型值进行初始化。

Parameters

Name

Description

t

形状类型:

  • CIRCLE:圆形。
  • EDGE: 边界线。
  • POLYGON:多边形。
  • INVALID:无效值。

[h2]Shape(Shape other)

Constructor

public Shape(Shape other)

使用其他形状初始化。

Parameters

Name

Description

other

形状。

Public Methods

[h2]getType

Method

public Type getType()

获取形状类型。

Returns

Type

Description

Type

形状类型:

  • CIRCLE:圆形。
  • POLYGON:多边形。
  • EDGE:边界线。
  • INVALID:无效值。