dk.vajhoej.model.app
Class Data

java.lang.Object
  extended by dk.vajhoej.model.app.Data

public class Data
extends java.lang.Object

Class Data contains the data from an setup XML file.


Constructor Summary
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
 java.util.List<BoxPalette> getBoxPalette()
          Get all box palettes.
 java.util.List<ComponentPalette> getComponentPalette()
          Get all component palettes.
 AllGraphicConfig getConfig()
          Get all graphic configuration.
 java.util.List<ConnectionPalette> getConnectionPalette()
          Get all connection palettes.
 int getHeight()
          Get height.
 AppLookAndFeel getLaf()
          Get L&F.
 ExtModel getModel()
          Get the model.
 Persister getPersist()
          Get persister.
 java.util.Map<java.lang.String,java.lang.Boolean> getShowPalette()
          Get show palettes.
 int getWidth()
          Get width.
 boolean isReadonly()
          Get readonly status.
 void setHeight(int height)
          Set height.
 void setModel(ExtModel model)
          Set the model.
 void setReadonly(boolean readonly)
          Set readonly status.
 void setWidth(int width)
          Set width.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 - persister
laf - L&F
config - all graphic configurations
boxPalette - all box palettes
componentPalette - all component palettes
connectionPalette - all connection palettes
showPalette - show palettes
model - 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:
toString in class java.lang.Object