Package jpicedt.graphic.toolkit
Interface MouseTransformFactory
-
- All Known Implementing Classes:
AbstractMouseTransformFactory,EditElementMouseTransformFactory,EditPointMouseTransformFactory
public interface MouseTransformFactoryA factory that produces MouseTransform's to be used by the SelectionTool mouse-tool.- Since:
- jPicEdt 1.4
- Version:
- $Id: MouseTransformFactory.java,v 1.6.2.1 2007/09/02 11:56:28 reynal Exp $
- Author:
- Sylvain Reynal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MouseTransformcreateMouseTransform(PEMouseEvent e)Return a MouseTransform whose type is adequate with the given mouse-event.voidflush()called when the associated SelectionTool is being deactivated in the hosting EditorKit.voidinit()called when the associated SelectionTool is being activated in the hosting EditorKit.voidpaint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)Allows the MouseTransformFactory to do specific graphic rendering when it's installed in a hosting SelectionTool.
-
-
-
Method Detail
-
createMouseTransform
MouseTransform createMouseTransform(PEMouseEvent e)
Return a MouseTransform whose type is adequate with the given mouse-event. This can be null if no MouseTransform matches the given event.
-
paint
void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)Allows the MouseTransformFactory to do specific graphic rendering when it's installed in a hosting SelectionTool.- Since:
- jpicedt 1.4
-
init
void init()
called when the associated SelectionTool is being activated in the hosting EditorKit. Initialization work required before any mouse-event occurs should be done here. Other initialization work may be carried out in the MouseTransform's themselves.
-
flush
void flush()
called when the associated SelectionTool is being deactivated in the hosting EditorKit. This provides a way for the factory to do some final clean-up, e.g. local buffers, graphic context,...
-
-