|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectStyle
public abstract class Style
Base class for resolved styles. Styles are resolved according a particular rendering context.
The base class make no assumption about the output device (AWT, SWT, etc.). However, a
particular output device may need to be choosen for concrete subclasses, for example Style2D
for targeting Java2D.
Field Summary | |
---|---|
protected double |
maxScale
Maximum scale at which the geometry has to be painted with this style |
protected double |
minScale
Minimum scale at which the geometry has to be painted with this style |
Constructor Summary | |
---|---|
Style()
|
Method Summary | |
---|---|
Style |
clone()
|
double |
getMaxScale()
Gets the maximum scale at which the geometry has to be painted with this style (inclusive) |
double |
getMinScale()
Gets the minimum scale at which the geometry has to be painted with this style (inclusive) |
boolean |
isScaleInRange(double scale)
Checks whethere the style should be used for painting at scale scale |
void |
setMinMaxScale(double minScale,
double maxScale)
Sets minimum and maximum scale, and performs integrity checks on these value (will throw and IllegalArgumentException in minScale > maxScale) |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double maxScale
protected double minScale
Constructor Detail |
---|
public Style()
Method Detail |
---|
public double getMaxScale()
public double getMinScale()
public void setMinMaxScale(double minScale, double maxScale)
minScale
- maxScale
-
IllegalArgumentException
- DOCUMENT ME!public boolean isScaleInRange(double scale)
scale
- Parameters:
scale
- The scale queried
- Returns:
- True if
scale
is whithin the scale range of this style (false
otherwise)
public Style clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |