public abstract class Cell<TCell extends Cell<TCell,TCellPane>,TCellPane extends CellPane<TCellPane,TCell>> extends Object
Modifier and Type | Class and Description |
---|---|
class |
Cell.CellContentPane |
static class |
Cell.CellCoordinates |
class |
Cell.CellInteractionPane |
static class |
Cell.MouseEventType |
Modifier and Type | Field and Description |
---|---|
javafx.beans.property.BooleanProperty |
animate |
static javafx.scene.input.DataFormat |
CELL_COORDINATES_DATA_FORMAT |
protected TCellPane |
cellPane |
javafx.beans.binding.ObjectBinding<IntPair> |
contentCoordinates |
javafx.beans.property.ObjectProperty<Cell.CellContentPane> |
contentPane |
javafx.scene.paint.Color |
dehighlightColor |
javafx.beans.property.ReadOnlyObjectProperty<IntPair> |
gridCoordinates |
javafx.beans.property.DoubleProperty |
height |
javafx.beans.property.BooleanProperty |
highlight |
javafx.beans.property.ReadOnlyLongProperty |
id |
protected javafx.beans.property.ObjectProperty<Cell.CellInteractionPane> |
interactionPane |
javafx.beans.property.DoubleProperty |
opacity |
protected javafx.collections.ObservableList<IntPair> |
scrollDeltaCoordinatesQueue |
protected javafx.beans.binding.ObjectBinding<IntPair> |
snapToCoordinates |
javafx.beans.property.StringProperty |
textContent |
javafx.beans.property.IntegerProperty |
textSize |
javafx.beans.binding.StringBinding |
textStyle |
javafx.beans.property.DoubleProperty |
width |
Constructor and Description |
---|
Cell(TCellPane cellPane,
int gridRow,
int gridColumn,
javafx.geometry.Pos alignment,
javafx.scene.text.TextAlignment textAlignment,
boolean rotated,
javafx.event.EventHandler<javafx.event.ActionEvent> onFinishedEventHandler,
boolean createTextSizeListener) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
boolean |
equals(Object obj) |
Cell.CellContentPane |
getContentPane() |
Cell.CellInteractionPane |
getInteractionPane() |
int |
hashCode() |
protected void |
resetGridPosition() |
protected void |
toFront() |
protected abstract void |
updateContent()
Abstract method to update textual content (and possibly other properties) based on e.g.
|
public static final javafx.scene.input.DataFormat CELL_COORDINATES_DATA_FORMAT
public javafx.scene.paint.Color dehighlightColor
public final javafx.beans.property.ReadOnlyLongProperty id
public final javafx.beans.property.ReadOnlyObjectProperty<IntPair> gridCoordinates
public final javafx.beans.binding.ObjectBinding<IntPair> contentCoordinates
protected final javafx.beans.binding.ObjectBinding<IntPair> snapToCoordinates
protected final javafx.collections.ObservableList<IntPair> scrollDeltaCoordinatesQueue
public final javafx.beans.property.DoubleProperty width
public final javafx.beans.property.DoubleProperty height
public final javafx.beans.property.IntegerProperty textSize
public final javafx.beans.binding.StringBinding textStyle
public final javafx.beans.property.StringProperty textContent
public final javafx.beans.property.DoubleProperty opacity
public final javafx.beans.property.BooleanProperty highlight
public final javafx.beans.property.BooleanProperty animate
protected final javafx.beans.property.ObjectProperty<Cell.CellInteractionPane> interactionPane
public final javafx.beans.property.ObjectProperty<Cell.CellContentPane> contentPane
public final Cell.CellContentPane getContentPane()
public final Cell.CellInteractionPane getInteractionPane()
protected abstract void updateContent()
this.contentCoordinates.get()
. Just call this.textContent.set(String)
within the
implementation body to update the text.public final void dispose()
protected void resetGridPosition()
protected final void toFront()
Copyright © 2010–2023 Francesco Kriegel. All rights reserved.