public class VisualEditFragment extends java.lang.Object implements IFragment, ISelectable, IInteractable
Modifier and Type | Field and Description |
---|---|
javafx.scene.paint.Color |
color |
java.lang.String |
name |
javafx.scene.layout.BorderPane |
uiBorderPane |
javafx.scene.layout.HBox |
uiBottomBar |
javafx.scene.layout.VBox |
uiCenterStack |
java.util.ArrayList<OperationFragment> |
uiOperationFragments |
javafx.scene.control.Button |
uiSettingsButton |
javafx.scene.control.TextField |
uiTitleField |
java.util.ArrayList<ToolboxFragment> |
uiToolboxFragments |
javafx.scene.layout.HBox |
uiTopBar |
Constructor and Description |
---|
VisualEditFragment()
Constructs a VisualEditFragment View.
|
Modifier and Type | Method and Description |
---|---|
void |
addOperationFragment(ToolboxFragment toolboxFragment) |
void |
addOperationFragment2(ToolboxFragment toolboxFragment) |
private void |
build()
Helper method to build the view and keep constructor more clear.
|
void |
deselect()
Is called when item is deselected, changes look.
|
void |
exit()
Is called on mouse exit, changes look.
|
javafx.scene.Node |
getFragment()
Get main view fragment
|
OperationFragment |
getLastOperationFragment() |
SelectionType |
getType()
Specifies what kind of SelectionType this object is.
|
void |
hover()
Is called on mouse hover, changes look.
|
void |
removeOperationFragment(OperationFragment operationFragment) |
void |
select()
Is called when item is selected, changes look.
|
public final javafx.scene.layout.BorderPane uiBorderPane
public final javafx.scene.layout.HBox uiTopBar
public final javafx.scene.layout.VBox uiCenterStack
public final javafx.scene.layout.HBox uiBottomBar
public final javafx.scene.control.Button uiSettingsButton
public final javafx.scene.control.TextField uiTitleField
public final java.util.ArrayList<ToolboxFragment> uiToolboxFragments
public final java.util.ArrayList<OperationFragment> uiOperationFragments
public java.lang.String name
public javafx.scene.paint.Color color
public VisualEditFragment()
private void build()
public void removeOperationFragment(OperationFragment operationFragment)
public OperationFragment getLastOperationFragment()
public void addOperationFragment2(ToolboxFragment toolboxFragment)
public void addOperationFragment(ToolboxFragment toolboxFragment)
public javafx.scene.Node getFragment()
getFragment
in interface IFragment
public void hover()
hover
in interface IInteractable
public void exit()
exit
in interface IInteractable
public void select()
select
in interface ISelectable
public void deselect()
deselect
in interface ISelectable
public SelectionType getType()
getType
in interface ISelectable