NTPointStyleBuilder
@interface NTPointStyleBuilder : NTStyleBuilder
A builder class for PointStyle.
-
Constructs a PointStyleBuilder object with all parameters set to defaults.
Declaration
Objective-C
- (id)init; -
Returns the bitmap of the point.
Declaration
Objective-C
- (NTBitmap *)getBitmap;Return Value
The bitmap of the point.
-
Sets the bitmap that will be used for drawing the point. The default is “default_point.png”.
Declaration
Objective-C
- (void)setBitmap:(NTBitmap *)bitmap;Parameters
bitmapThe new bitmap for the point.
-
Returns the size of the point used for click detection.
Declaration
Objective-C
- (float)getClickSize;Return Value
The size of the point used for click detection.
-
Sets the size for the point that will be used for click detection. Units are screen density independent pixels (DP or DIP). If set to -1 the click size will be calculated automatically. The default is -1.
Declaration
Objective-C
- (void)setClickSize:(float)size;Parameters
sizeThe new point size in dp.
-
Returns the size of the point.
Declaration
Objective-C
- (float)getSize;Return Value
The size of the point.
-
Sets the size for the point in screen density independent pixels (DP or DIP). The default is 20.
Declaration
Objective-C
- (void)setSize:(float)size;Parameters
sizeThe new point size in dp.
-
Builds a new instance of the PointStyle object using previously set parameters.
Declaration
Objective-C
- (NTPointStyle *)buildStyle;Return Value
A new PointStyle object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTPointStyleBuilder Class Reference