public class VisualEditFragment extends java.lang.Object implements IFragment, ISelectable, IInteractable, IThemeSwitcher
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 |
javafx.scene.control.MenuButton |
uiMenuFlyout |
javafx.scene.control.MenuItem |
uiMenuFlyoutDelete |
javafx.scene.control.CheckMenuItem |
uiMenuFlyoutRename |
java.util.ArrayList<OperationFragment> |
uiOperationFragments |
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) |
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.
|
void |
toDarkMode()
Switch fragment to dark mode appearance.
|
void |
toLightMode()
Switch fragment to white mode appearance.
|
public javafx.scene.paint.Color color
public java.lang.String name
public final javafx.scene.layout.BorderPane uiBorderPane
public final javafx.scene.layout.HBox uiBottomBar
public final javafx.scene.layout.VBox uiCenterStack
public javafx.scene.control.MenuButton uiMenuFlyout
public final javafx.scene.control.MenuItem uiMenuFlyoutDelete
public final javafx.scene.control.CheckMenuItem uiMenuFlyoutRename
public final java.util.ArrayList<OperationFragment> uiOperationFragments
public final javafx.scene.control.TextField uiTitleField
public final java.util.ArrayList<ToolboxFragment> uiToolboxFragments
public final javafx.scene.layout.HBox uiTopBar
public VisualEditFragment()
public void addOperationFragment(ToolboxFragment toolboxFragment)
private void build()
public void deselect()
deselect
in interface ISelectable
public void exit()
exit
in interface IInteractable
public javafx.scene.Node getFragment()
getFragment
in interface IFragment
public OperationFragment getLastOperationFragment()
public SelectionType getType()
getType
in interface ISelectable
public void hover()
hover
in interface IInteractable
public void removeOperationFragment(OperationFragment operationFragment)
public void select()
select
in interface ISelectable
public void toDarkMode()
toDarkMode
in interface IThemeSwitcher
public void toLightMode()
toLightMode
in interface IThemeSwitcher