Home | History | Annotate | Download | only in ui
      1 /*
      2  * Copyright 2012 AndroidPlot.com
      3  *
      4  *    Licensed under the Apache License, Version 2.0 (the "License");
      5  *    you may not use this file except in compliance with the License.
      6  *    You may obtain a copy of the License at
      7  *
      8  *        http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  *    Unless required by applicable law or agreed to in writing, software
     11  *    distributed under the License is distributed on an "AS IS" BASIS,
     12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  *    See the License for the specific language governing permissions and
     14  *    limitations under the License.
     15  */
     16 
     17 package com.androidplot.ui;
     18 
     19 /**
     20  * SizeLayoutType is an enumeration of algorithms available for calculating an arbitrary dimension of a widget.
     21  * Each algorithm also takes a single value called "val" in this doc.
     22  * ABSOLUTE - Val is treated as absolute.  If val is 5 then the size of the widget along the associated axis is 5 pixels.
     23  *
     24  * RELATIVE - Val represents the percentage of the display that the widget should fill along the associated axis.  For example,
     25  * if the total size of the owning plot is 120 pixels and val is set to 50 then the size of the widget along the associated axis
     26  * is 60; 50% of 120 = 60.
     27  *
     28  * FILL - Widget completely fills along the associated axis, minus
     29  */
     30 public enum SizeLayoutType {
     31     ABSOLUTE,
     32     RELATIVE,
     33     FILL
     34 }