|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjpicedt.graphic.view.DefaultHighlighterFactory
public class DefaultHighlighterFactory
This is the default factory used to create a Highlighter for a given Element.
| Nested Class Summary | |
|---|---|
class |
DefaultHighlighterFactory.AbstractCurveHighlighter
a Highlighter for any concrete implementation of jpicedt.graphic.model.AbstractCurve. |
class |
DefaultHighlighterFactory.CircleHighlighter
a Highlighter for rendering circles. |
class |
DefaultHighlighterFactory.CompositeHighlighter
an Highlighter for a BranchElement |
class |
DefaultHighlighterFactory.DefaultHighlighter
Default implementation of the Highlighter interface. |
class |
DefaultHighlighterFactory.EllipseHighlighter
a Highlighter for PicEllipse's. |
class |
DefaultHighlighterFactory.PsCurveHighlighter
a Highlighter for PsCurve. |
class |
DefaultHighlighterFactory.SmoothPolygonHighlighter
a Highlighter for SmoothPolygon. |
class |
DefaultHighlighterFactory.TextHighlighter
a Highlighter for TextEditable's. |
| Field Summary | |
|---|---|
static Color |
GLOBAL_HIGHLIGHTING_COLOR
|
static Color |
LOCAL_HIGHLIGHTING_COLOR
|
| Fields inherited from interface jpicedt.graphic.view.ViewConstants |
|---|
BARBELL_SIZE, CLICK_DISTANCE |
| Constructor Summary | |
|---|---|
DefaultHighlighterFactory()
|
|
| Method Summary | |
|---|---|
Highlighter |
createHighlighter(Element element)
|
protected Stroke |
createStroke(double scale)
Returns a Stroke object suited for painting hightlighter's stroke, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Color LOCAL_HIGHLIGHTING_COLOR
public static final Color GLOBAL_HIGHLIGHTING_COLOR
| Constructor Detail |
|---|
public DefaultHighlighterFactory()
| Method Detail |
|---|
public Highlighter createHighlighter(Element element)
createHighlighter in interface HighlighterFactoryprotected Stroke createStroke(double scale)
scale - The current scale factor from model to screen for the Graphics2D context ;
this may be used to scale down line thickess, etc... so that lines/rectangle/... appear with the
same length on the screen whatever the scale factor that's set to the graphic context.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||