org.jplot2d.interaction
Interface InteractiveComp
-
- All Known Implementing Classes:
- SwingInteractiveComp
public interface InteractiveCompA generic interface for awt component and swt composite, to provide visual feedback.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static classInteractiveComp.CursorStyle
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voiddrawLine(java.lang.Object g, int rgb, int x1, int y1, int x2, int y2)Draws a line with the given graphics object and rgb color.voiddrawRectangle(java.lang.Object g, int rgb, int x, int y, int width, int height)Draws a rectangle with the given graphics object and rgb color.voiddrawShape(java.lang.Object g, int rgb, java.awt.Shape shape)Draws a shape with the given graphics object and rgb color.voiddrawTooltip(java.lang.Object g, java.lang.String s, int x, int y)Draws a tooltip on the given location.InteractiveComp.CursorStylegetCursor()Gets the cursor.java.awt.PointgetCursorLocation()voidrepaint()Repaints this component.voidsetCursor(InteractiveComp.CursorStyle cursorStyle)Sets the cursor.
-
-
-
Method Detail
-
getCursorLocation
java.awt.Point getCursorLocation()
-
repaint
void repaint()
Repaints this component.
-
getCursor
InteractiveComp.CursorStyle getCursor()
Gets the cursor.- Parameters:
cursorStyle- the style of cursor
-
setCursor
void setCursor(InteractiveComp.CursorStyle cursorStyle)
Sets the cursor.- Parameters:
cursorStyle- the style of cursor
-
drawLine
void drawLine(java.lang.Object g, int rgb, int x1, int y1, int x2, int y2)Draws a line with the given graphics object and rgb color.- Parameters:
g- the graphics objectrgb- the color valuex1-y1-x2-y2-
-
drawRectangle
void drawRectangle(java.lang.Object g, int rgb, int x, int y, int width, int height)Draws a rectangle with the given graphics object and rgb color.- Parameters:
g- the graphics objectrgb- the color valuex-y-width-height-
-
drawShape
void drawShape(java.lang.Object g, int rgb, java.awt.Shape shape)Draws a shape with the given graphics object and rgb color.- Parameters:
g- the graphics objectrgb- the color valueshape- the shape to draw
-
drawTooltip
void drawTooltip(java.lang.Object g, java.lang.String s, int x, int y)Draws a tooltip on the given location.- Parameters:
g- the graphics objects- the stringx-y-
-
-
DMelt 3.0 © DataMelt by jWork.ORG