|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGraphGridLayer
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener listener)
Subscribes to change events. |
void |
draw(GCTransformer transformer)
Draws the grid. |
org.eclipse.swt.graphics.Color |
getColor()
Gets the line color for the grid. |
CoordinateType |
getCoordinateType()
Gets the coordinate type for x/y increments. |
java.lang.Double |
getXInterval()
Gets the X interval. |
int |
getXLineMultiplier()
Gets the x line multiplier. |
int |
getXLineMultiplierWidth()
Gets the with of lines that match the x multiplier. |
LineStyle |
getXLineStyle()
Gets the line style for horizontal lines. |
int |
getXLineWidth()
Gets the horizontal line width in pixels. |
java.lang.Double |
getYInterval()
Gets the Y interval. |
int |
getYLineMultiplier()
Gets the y line multiplier. |
int |
getYLineMultiplierWidth()
Gets the with of lines that match the x multiplier. |
LineStyle |
getYLineStyle()
Gets the line style for vertical lines. |
int |
getYLineWidth()
Gets the vertical line width in pixels. |
java.lang.Boolean |
isVisible()
Checks if the grid is visible. |
void |
removeChangeListener(ChangeListener listener)
Removes subscription to change events. |
void |
setColor(org.eclipse.swt.graphics.Color color)
Sets the line color. |
void |
setCoordinateType(CoordinateType type)
Sets the coordinate type of the x/y intervals. |
void |
setVisible(java.lang.Boolean visible)
Sets the visibility flag for the grid. |
void |
setXInterval(java.lang.Double interval)
Sets the X interval (vertical line spacing). |
void |
setXLineMultiplier(int multiplier)
Sets the new x line multiplier. |
void |
setXLineMultiplierWidth(int width)
Sets the width of lines that match the y multiplier. |
void |
setXLineStyle(LineStyle lineStyle)
Sets the line style for horizontal lines. |
void |
setXLineWidth(int width)
Sets the width (in pixels) of horizontal lines. |
void |
setYInterval(java.lang.Double interval)
Sets the Y interval (horizontal line spacing). |
void |
setYLineMultiplier(int multiplier)
Sets the new y line multiplier. |
void |
setYLineMultiplierWidth(int width)
Sets the width of lines that match the y multiplier. |
void |
setYLineStyle(LineStyle lineStyle)
Sets the line style for vertical lines. |
void |
setYLineWidth(int width)
Sets the width (in pixels) of vertical lines. |
Method Detail |
---|
void draw(GCTransformer transformer)
transformer
- Transformer that contains the GC to draw on.
java.lang.IllegalArgumentException
- If transformer is null.org.eclipse.swt.graphics.Color getColor()
CoordinateType getCoordinateType()
java.lang.Boolean isVisible()
java.lang.Double getXInterval()
LineStyle getXLineStyle()
int getXLineWidth()
int getXLineMultiplier()
void setXLineMultiplier(int multiplier)
multiplier
- New multiplier.int getXLineMultiplierWidth()
void setXLineMultiplierWidth(int width)
width
- New multiplier.
java.lang.IllegalArgumentException
- If width <= 0.int getYLineMultiplier()
void setYLineMultiplier(int multiplier)
multiplier
- New multiplier.int getYLineMultiplierWidth()
void setYLineMultiplierWidth(int width)
width
- New multiplier.
java.lang.IllegalArgumentException
- If width <= 0.java.lang.Double getYInterval()
LineStyle getYLineStyle()
int getYLineWidth()
void setColor(org.eclipse.swt.graphics.Color color)
color
- New color to use for grid.
java.lang.IllegalArgumentException
- If color is null.void setCoordinateType(CoordinateType type)
type
- New coordinate system type.
java.lang.IllegalArgumentException
- If type is null.void setVisible(java.lang.Boolean visible)
visible
- Flag to indicate if grid is visible.
java.lang.IllegalArgumentException
- If visible is null.void setXInterval(java.lang.Double interval)
interval
- Distance between vertical lines.
java.lang.IllegalArgumentException
- If interval is null or interval <= 0.void setXLineStyle(LineStyle lineStyle)
lineStyle
- Line style for horizontal lines.
java.lang.IllegalArgumentException
- If lineStyle is null.void setXLineWidth(int width)
width
- Width (in pixels) of horizontal lines.
java.lang.IllegalArgumentException
- If width <= 0.void setYInterval(java.lang.Double interval)
interval
- Distance between horizontal lines.
java.lang.IllegalArgumentException
- If interval <= 0 or null.void setYLineStyle(LineStyle lineStyle)
lineStyle
- Line style for vertical lines.
java.lang.IllegalArgumentException
- If lineStyle is null.void setYLineWidth(int width)
width
- Width (in pixels) of vertical lines.
java.lang.IllegalArgumentException
- If width <= 0.void removeChangeListener(ChangeListener listener)
listener
- Listener to unregister.
java.lang.IllegalArgumentException
- If listener is null.void addChangeListener(ChangeListener listener)
listener
- Listener to call when a change occurs.
java.lang.IllegalArgumentException
- If listener is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |