Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ====================================================================
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
 
        http://www.apache.org/licenses/LICENSE-2.0
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
==================================================================== */
package org.apache.poi.hslf.model.textproperties;
Definition of the indent level of some text. Defines how many characters it applies to, and what indent level they share. This is defined by the slightly confusingly named MasterTextPropRun
public class IndentProp  {
    private int charactersCovered;
    private short indentLevel;

Generate the definition of a given text indent
	public IndentProp(int charactersCoveredshort indentLevel) {
	    this. = charactersCovered;
	    this. = indentLevel;
	}

    
Fetch the number of characters this styling applies to
    public int getCharactersCovered() { return ; }
    
    public int getIndentLevel() {
        return (int);
    }
    
    
Sets the indent level, which can be between 0 and 4
    public void setIndentLevel(int indentLevel) {
        if (indentLevel >= . ||
            indentLevel < 0) {
            throw new IllegalArgumentException("Indent must be between 0 and 4");
        }
        this. = (short)indentLevel;
    }

    
Update the size of the text that this set of properties applies to
    public void updateTextSize(int textSize) {
         = textSize;
    }
New to GrepCode? Check out our FAQ X