Package kiyut.sketsa.canvas
Interface CanvasGrid
-
- All Known Implementing Classes:
DefaultCanvasGrid
public interface CanvasGridCanvas Grid Interface- Author:
- KIYUT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetGridSize()Return Grid size in pixel eg: 50, 100.booleanisVisible()Return true or falsevoidpaint(Graphics2D g2d)Render this GridvoidsetVectorCanvas(VectorCanvas canvas)Sets the canvas associated with this CanvasSelection.voidsetVisible(boolean visible)Shows or hides depending on the value of parameter.
-
-
-
Method Detail
-
paint
void paint(Graphics2D g2d)
Render this Grid- Parameters:
g2d- Graphics2D
-
setVectorCanvas
void setVectorCanvas(VectorCanvas canvas)
Sets the canvas associated with this CanvasSelection.- Parameters:
canvas- the Canvas
-
setVisible
void setVisible(boolean visible)
Shows or hides depending on the value of parameter.- Parameters:
visible- true or false- See Also:
isVisible()
-
isVisible
boolean isVisible()
Return true or false- Returns:
- true or false
- See Also:
setVisible(boolean)
-
getGridSize
int getGridSize()
Return Grid size in pixel eg: 50, 100. It is the Grid Line size- Returns:
- Grid Size in pixel
-
-