org.grinvin.gred.guides

Class AbstractGuides

Implemented Interfaces:
Guides
Known Direct Subclasses:
BullsEye, GridLines, VerticalIsometricGrid

public abstract class AbstractGuides
extends java.lang.Object
implements Guides

Abstract implementation of Guides. Contains common functionality for Guides.

Nested Class Summary

protected class
AbstractGuides.ButtonIcon

Field Summary

protected static Color
GUIDE_COLOR
protected static Stroke
GUIDE_STROKE
protected Icon
buttonIcon

Constructor Summary

AbstractGuides()

Method Summary

Icon
getButtonIcon()
Return an icon for a button representing this kind of guide.
abstract void
paint(Graphics2D g2, double scale, double maxX, double maxY)
abstract void
snap(double[] coords)

Field Details

GUIDE_COLOR

protected static final Color GUIDE_COLOR

GUIDE_STROKE

protected static final Stroke GUIDE_STROKE

buttonIcon

protected Icon buttonIcon

Constructor Details

AbstractGuides

protected AbstractGuides()

Method Details

getButtonIcon

public Icon getButtonIcon()
Return an icon for a button representing this kind of guide.
Specified by:
getButtonIcon in interface Guides

paint

public abstract void paint(Graphics2D g2,
                           double scale,
                           double maxX,
                           double maxY)
Specified by:
paint in interface Guides

snap

public abstract void snap(double[] coords)
Specified by:
snap in interface Guides