public void _drawPull(Graphics nGraphics) { if (default(int) != mPullPoint._getX() || default(int) != mPullPoint._getY()) { return; } Point2I beg_ = mLine._getBegPoint(); Point2I end_ = mLine._getEndPoint(); Line2I line_ = new Line2I(beg_, end_); Point2I beg0_ = line_._begPoint(3); Point2I beg1_ = line_._begPoint(6); Point2I end0_ = line_._endPoint(3); Point2I end1_ = line_._endPoint(6); ShapeDescriptorSingleton shapeDescriptorSingleton_ = __singleton<ShapeDescriptorSingleton>._instance(); Graphicsos._drawEllipse(beg0_, nGraphics, shapeDescriptorSingleton_._selectRGB()); Graphicsos._drawEllipse(end0_, nGraphics, shapeDescriptorSingleton_._selectRGB()); Line2I line0_ = new Line2I(beg1_, end1_); string name_ = mLine._getName(); Graphicsos._runDraw(line0_, nGraphics, mLineStream._getMoveDraw(), mLineStream._getStyleName(), 1, mLineStream._getImage(), name_, mLineStream._getFont()); }
public void _drawSelect(Graphics nGraphics) { Point2I beg_ = mLine._getBegPoint(); Point2I end_ = mLine._getEndPoint(); Line2I line_ = new Line2I(beg_, end_); Point2I beg0_ = line_._begPoint(3); Point2I beg1_ = line_._begPoint(6); Point2I end0_ = line_._endPoint(3); Point2I end1_ = line_._endPoint(6); ShapeDescriptorSingleton shapeDescriptorSingleton_ = __singleton<ShapeDescriptorSingleton>._instance(); Graphicsos._fillRectangle(beg0_, nGraphics, shapeDescriptorSingleton_._selectRGB()); Graphicsos._fillRectangle(end0_, nGraphics, shapeDescriptorSingleton_._selectRGB()); Line2I line0_ = new Line2I(beg1_, end1_); string name_ = mLine._getName(); Graphicsos._runDraw(line0_, nGraphics, mLineStream._getDraw(), mLineStream._getStyleName(), 1, mLineStream._getImage(), name_, mLineStream._getFont()); }
public bool _isPull(Point2I nPoint) { Point2I beg_ = mLine._getBegPoint(); Point2I end_ = mLine._getEndPoint(); Line2I line_ = new Line2I(beg_, end_); Point2I beg0_ = line_._begPoint(3); if (beg0_._isSelect(nPoint)) { return true; } Point2I end0_ = line_._endPoint(3); if (end0_._isSelect(nPoint)) { return true; } return false; }