Package dk.vajhoej.model.app
Class Data
- java.lang.Object
-
- dk.vajhoej.model.app.Data
-
public class Data extends java.lang.ObjectClass Data contains the data from an setup XML file.
-
-
Constructor Summary
Constructors Constructor Description Data(Persister persist, AppLookAndFeel laf, int width, int height, AllGraphicConfig config, java.util.List<BoxPalette> boxPalette, java.util.List<ComponentPalette> componentPalette, java.util.List<ConnectionPalette> connectionPalette, java.util.Map<java.lang.String,java.lang.Boolean> showPalette, ExtModel model)Create instance of Data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<BoxPalette>getBoxPalette()Get all box palettes.java.util.List<ComponentPalette>getComponentPalette()Get all component palettes.AllGraphicConfiggetConfig()Get all graphic configuration.java.util.List<ConnectionPalette>getConnectionPalette()Get all connection palettes.intgetHeight()Get height.AppLookAndFeelgetLaf()Get L∧F.ExtModelgetModel()Get the model.PersistergetPersist()Get persister.java.util.Map<java.lang.String,java.lang.Boolean>getShowPalette()Get show palettes.intgetWidth()Get width.booleanisReadonly()Get readonly status.voidsetHeight(int height)Set height.voidsetModel(ExtModel model)Set the model.voidsetReadonly(boolean readonly)Set readonly status.voidsetWidth(int width)Set width.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Data
public Data(Persister persist, AppLookAndFeel laf, int width, int height, AllGraphicConfig config, java.util.List<BoxPalette> boxPalette, java.util.List<ComponentPalette> componentPalette, java.util.List<ConnectionPalette> connectionPalette, java.util.Map<java.lang.String,java.lang.Boolean> showPalette, ExtModel model)
Create instance of Data.- Parameters:
persist- persisterlaf- L∧Fwidth- widthheight- heightconfig- all graphic configurationsboxPalette- all box palettescomponentPalette- all component palettesconnectionPalette- all connection palettesshowPalette- show palettesmodel- the model
-
-
Method Detail
-
getPersist
public Persister getPersist()
Get persister.- Returns:
- persister.
-
getLaf
public AppLookAndFeel getLaf()
Get L∧F.- Returns:
- L∧F
-
getWidth
public int getWidth()
Get width.- Returns:
- width
-
setWidth
public void setWidth(int width)
Set width.- Parameters:
width- width
-
getHeight
public int getHeight()
Get height.- Returns:
- height
-
setHeight
public void setHeight(int height)
Set height.- Parameters:
height- height
-
getConfig
public AllGraphicConfig getConfig()
Get all graphic configuration.- Returns:
- all graphic configuration
-
getBoxPalette
public java.util.List<BoxPalette> getBoxPalette()
Get all box palettes.- Returns:
- all box palettes
-
getComponentPalette
public java.util.List<ComponentPalette> getComponentPalette()
Get all component palettes.- Returns:
- all component palettes
-
getConnectionPalette
public java.util.List<ConnectionPalette> getConnectionPalette()
Get all connection palettes.- Returns:
- all connection palettes
-
getShowPalette
public java.util.Map<java.lang.String,java.lang.Boolean> getShowPalette()
Get show palettes.- Returns:
- show palettes
-
getModel
public ExtModel getModel()
Get the model.- Returns:
- the model
-
setModel
public void setModel(ExtModel model)
Set the model.- Parameters:
model- the model
-
isReadonly
public boolean isReadonly()
Get readonly status.- Returns:
- readonly status
-
setReadonly
public void setReadonly(boolean readonly)
Set readonly status.- Parameters:
readonly- readonly status
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-