Inheritance diagram for CanvasPoint::
Public Methods | |
CanvasPoint (double x, double y) | |
CanvasPoint (double x, double y, Color color) | |
CanvasPoint (double x, double y, Color color, double ccs_scale) | |
CanvasPoint (double x, double y, int mode, Color color, float trans, double ccs_scale) | |
void | draw (Graphics g) |
Draw CanvasObject on 'g', using internal CCS values. More... | |
Object | clone () |
Return an identical copy of this CanvasObject. More... | |
boolean | isInside (double x, double y) |
boolean | isNear (double x, double y) |
void | setDimension (double w, double h) |
Resize CanvasObject to width 'w' and height 'h'. More... | |
void | doPixelFit (double zoomFactor) |
Round internal ICS values to nearest natural number. More... | |
CanvasPoint (int x, int y, int mode, Color color, double ccs_scale) | |
boolean | isInsideCcs (int x, int y) |
To be removed. More... | |
boolean | isNearCcs (int x, int y) |
To be removed. More... | |
void | setDimension (int w, int h) |
Static Public Attributes | |
final double | STD_SIZE = 1.0 |
Protected Methods | |
void | initPoint () |
|
|
|
|
|
|
|
|
|
00133 { 00134 super(x, y, 1, 1, mode, color, ccs_scale); 00135 initPoint(); 00136 } |
|
Draw CanvasObject on 'g', using internal CCS values.
Reimplemented from CanvasObject.
00060 { 00061 setupDrawMode(g); 00062 if (!getTransformOK()) { 00063 transformICStoCCS(); 00064 } 00065 g.fillRect(getX1Ccs(), getY1Ccs(), getWidthCcs(), getHeightCcs()); 00066 } |
|
Return an identical copy of this CanvasObject.
Reimplemented from CanvasObject.
00070 { 00071 Color color = drawColor; 00072 if (hasNoColor) { 00073 color = NO_COLOR; 00074 } 00075 return (new CanvasPoint(getX1()+0.5, getY1()+0.5, getDrawMode(), 00076 color, transparency, getZoomFactor())); 00077 } |
|
00081 { 00082 return inBoundingBox(x, y); 00083 } |
|
|
|
Resize CanvasObject to width 'w' and height 'h'. Parameters are assumed Image Coordinate System values. Reimplemented from ScribbleObject.
00097 { 00098 // overrule super.setDimension(w, h), and do nothing 00099 00100 return; 00101 } |
|
Round internal ICS values to nearest natural number. Although the ICS values are changed, they are not converted to 'integer' internally. Reimplemented from ScribbleObject.
|
|
To be removed.
Reimplemented from CanvasObject.
00140 { 00141 return inBoundingBoxCcs(x, y); 00142 } |
|
To be removed.
Reimplemented from CanvasObject.
00146 { 00147 if (!getTransformOK()) { 00148 transformICStoCCS(); 00149 } 00150 00151 if ((x >= getX1Ccs() - SPHERE) && (x < getX1Ccs() + getWidthCcs() + SPHERE) && 00152 (y >= getY1Ccs() - SPHERE) && (y < getY1Ccs() + getHeightCcs() + SPHERE)) { 00153 return true; 00154 } 00155 return false; 00156 } |
|
Reimplemented from ScribbleObject.
00160 { 00161 // overrule super.setDimension(w, h), and do nothing 00162 00163 return; 00164 } |
|
00178 { 00179 resizeable = false; 00180 hasLineWidth = false; 00181 00182 setWidth(STD_SIZE); 00183 setHeight(STD_SIZE); 00184 00185 transformICStoCCS(); 00186 } |
|
|