org.malai.picking
Interface Pickable
- All Known Subinterfaces:
- ICanvas, IHandler, IViewArc, IViewBezierCurve, IViewDot, IViewModifiablePtsShape, IViewRectangle, IViewShape, IViewText
- All Known Implementing Classes:
- ArcAngleHandler, CloseButton, CtrlPointHandler, Handler, LArcView, LAxesView, LBezierCurveView, LCanvas, LCircleArcView, LCircleView, LDotView, LEllipseView, LFreeHandView, LGridView, LGroupView, LModifiablePointsShapeView, LPictureView, LPolygonView, LPolylineView, LRectangleView, LRectangularView, LRhombusView, LShapeView, LSquareView, LStandardGridView, LTextView, LTriangleView, MButton, MCheckBox, MCheckBoxMenuItem, MColorButton, MComboBox, MMenu, MMenuItem, MovePtHandler, MRadioButton, MSlider, MSpinner, MTextArea, MTextField, MToggleButton, RotationHandler, ScaleHandler, ScaleRuler, TextAreaAutoSize, XScaleRuler, YScaleRuler
public interface Pickable
Defines an interface for objects that can be picked. A pickable object must be contained by a picker object.
This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN
Malai is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
05/10/2010
- Since:
- 0.1
- Version:
- 0.1
- Author:
- Arnaud BLOUIN
Method Summary |
boolean |
contains(double x,
double y)
Tests if the given point is into the pickable object. |
Picker |
getPicker()
|
contains
boolean contains(double x,
double y)
- Tests if the given point is into the pickable object.
- Parameters:
x
- The x-coordinate of the point to test.y
- The y-coordinate of the point to test.
- Returns:
- True if the given point is into the pickable object.
- Since:
- 0.1
getPicker
Picker getPicker()
- Returns:
- The picker object that contains the pickable object.
- Since:
- 0.2