|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.property.Property net.nexttext.property.StrokeProperty
public class StrokeProperty
A stroke property for a TextObject (using the BasicStroke implementation). Allows to draw outlines of glyphs in NextText.
The stroke is centered on the control points of a glyph, which means that for larger strokes, the control points will be inside of the stroke. Thus, large strokes will exceed the bounding polygon.
Constructor Summary | |
---|---|
StrokeProperty()
Creates a new StrokeProperty using a stroke of width 1. |
|
StrokeProperty(java.awt.BasicStroke stroke)
Creates a new StrokeProperty from the java.awt.BasicStroke object. |
Method Summary | |
---|---|
java.awt.BasicStroke |
get()
Do not modify the returned value, use set() to make changes instead. |
java.awt.BasicStroke |
getOriginal()
Returns the original stroke. |
boolean |
isInherited()
Returns the inherited status of this StrokeProperty. |
void |
reset()
Reset interface from superclass. |
void |
set(java.awt.BasicStroke newStroke)
Sets the Stroke property to the specified value. |
void |
setInherited(boolean inherited)
Setting inherited to true on a StrokeProperty will cause it to bypass it's current stroke value in favor of the stroke value of its parent. |
void |
setOriginal(java.awt.BasicStroke newStroke)
Modifies the original stroke value. |
Methods inherited from class net.nexttext.property.Property |
---|
addChangeListener, clone, getName, setName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StrokeProperty()
The stroke property is inherited by default.
public StrokeProperty(java.awt.BasicStroke stroke)
The stroke property is not inherited by default.
Method Detail |
---|
public java.awt.BasicStroke get()
public void set(java.awt.BasicStroke newStroke)
public java.awt.BasicStroke getOriginal()
public void setOriginal(java.awt.BasicStroke newStroke)
public void setInherited(boolean inherited)
public boolean isInherited()
public void reset()
reset
in class Property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |