| Modifier and Type | Field and Description |
|---|---|
| private final DecimalFormat |
| Access | Constructor and Description |
|---|---|
| public | |
| public | LineNumberDecorator(DecimalFormat
the format)DecimalFormat to useCreates an instance using the specified |
| Modifier and Type | Method and Description |
|---|---|
| private Node | |
| public Node | getMeasurementNode(int index)
Implements jfx. Returns the special measurement node to use for sizing the pane that holds the side decorations. |
| public Node | getNode(int index)
Implements jfx. Creates a Node to be added to the layout to the right or to the left of the given paragraph. |
| public double | getPrefWidth(double viewWidth)
Implements jfx. Returns the width to size the pane which hosts the side decoration |
| format | back to summary |
|---|---|
| private final DecimalFormat format | |
| LineNumberDecorator | back to summary |
|---|---|
| public LineNumberDecorator() Creates an instance with the Western-style group separator (comma). | |
| LineNumberDecorator | back to summary |
|---|---|
| public LineNumberDecorator(DecimalFormat format) Creates an instance using the specified
| |
| createNode | back to summary |
|---|---|
| private Node createNode(String text) | |
| getMeasurementNode | back to summary |
|---|---|
| public Node getMeasurementNode(int index) Implements jfx. Doc from jfx. Returns the special measurement node to use for sizing the pane that holds the side decorations.
This method will only be called if
| |
| getNode | back to summary |
|---|---|
| public Node getNode(int index) Implements jfx. Doc from jfx. Creates a Node to be added to the layout to the right or to the left of the given paragraph.
This method may return
| |
| getPrefWidth | back to summary |
|---|---|
| public double getPrefWidth(double viewWidth) Implements jfx. Doc from jfx. Returns the width to size the pane which hosts the side decoration
When return value is 0 or negative, an alternative method to size the side pane hosting the decoration
will be used: a special measurement
| |