net.sf.latexdraw.glib.models.interfaces
Interface Dottable

All Known Subinterfaces:
IDot, IGroup
All Known Implementing Classes:
LDot, LDrawing, LGroup

public interface Dottable

Defines an interface for shapes that support dot styles and dot radius.

This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw 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.
LaTeXDraw 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.

07/03/2009

Since:
3.0
Version:
3.0
Author:
Arnaud BLOUIN

Method Summary
 java.awt.Color getDotFillingCol()
           
 IDot.DotStyle getDotStyle()
           
 double getRadius()
           
 boolean hasDot()
           
 boolean isFillable()
           
 void setDotFillingCol(java.awt.Color fillingCol)
          Sets the filling colour of the dottable.
 void setDotStyle(IDot.DotStyle style)
          Defines the style of the dot.
 void setRadius(double radius)
          Defines the radius of the dot.
 

Method Detail

getDotStyle

IDot.DotStyle getDotStyle()
Returns:
The style of the dot.
Since:
3.0

setDotStyle

void setDotStyle(IDot.DotStyle style)
Defines the style of the dot.

Parameters:
style - The new style.
Since:
3.0

getRadius

double getRadius()
Returns:
the radius of the dot.
Since:
3.0

setRadius

void setRadius(double radius)
Defines the radius of the dot.

Parameters:
radius - the radius to set. Must be greater than 0.
Since:
3.0

hasDot

boolean hasDot()
Returns:
True if the dottable has or is a dot.
Since:
3.0

getDotFillingCol

java.awt.Color getDotFillingCol()
Returns:
The filling colour of the dottable or null if not fillable.
Since:
3.0

isFillable

boolean isFillable()
Returns:
True if the dot can be filled.
Since:
3.0

setDotFillingCol

void setDotFillingCol(java.awt.Color fillingCol)
Sets the filling colour of the dottable.

Parameters:
fillingCol - its new colour.
Since:
3.0